mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-15 08:09:58 +00:00
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>