Sunil Mohan Adapa 0c91d63bfb
dynamicdns: Don't log password during backup
Closes: #2587.

Tests:

- When adding a users to a group as admin, the log messages don't show
authorization password in clear text. Instead the value is masked as '****'.
This works even when add_user_to_group privileged call uses keyword arguments
instead of positional arguments.

- When taking a backup for dynamicdns app, log message for the dump_settings()
does not show account passwords. Instead the value is masked as '****'.

- When a privileged method contains an annotation 'password: str' an exception
is raised during startup saying that it should be a secret. When the annotation
is 'password: secret_str' it works. When the annotation is 'password:
Annotated[str, Secret]' it works.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-11-02 11:37:32 -05:00
..
…
…
2026-10-08 15:22:01 -07:00
…
…