Convert webdav etc group to use render_ctx

Description

PR: https://github.com/truenas/middleware/pull/8444

Apart from having shared context (which is probably of negligable
benefit here). This also makes several changes to how webdav
config files are generated.

We now always ensure that password hashes are owned by webdav user and
permissions are 0o600 and use secrets.choice() rather than
random.choice() for generating hashes. A subprocess call to change
owner has also been replaced with shutil.chown(). Futher investigation
may be required in order to determine whether this chown call is
actually needed.

Problem/Justification

None

Impact

None

Activity

Bug Clerk 
March 4, 2022 at 9:46 PM

Bug Clerk 
March 4, 2022 at 9:46 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Priority

Katalon Platform

Created March 4, 2022 at 7:58 PM
Updated April 19, 2022 at 2:07 PM
Resolved March 8, 2022 at 3:29 PM