-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add enable_password_config #77
Conversation
Fix #62 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the config documentation, password_config is nested, so I'm suggesting to expose password_config and deal with enabling/disabling in the function. I imagine if we want to deal with password configuration in the future, if we go with the current route we would add additional fields, like minimum_length_policy_password_config (to get to password_config.policy.minimum_length and change the min pass length for instance). Another thing to consider is when we render the current password_config to update what we're interested in and the rest should remain unchanged, so if you toggle password_config on and off and you have made changes to the policy (like the min pass length) it does not get lost. It would be clearer to me also that a disable_password_config that takes a password_config object changes the enabled parameter and not enable_password_config. I'm not sure how the function is called though - shouldn't pebble be made aware of that change via the on.config_changed path?
|
Isn't something missing in this PR ? |
I have no idea what happened, maybe it was lost while merging with previous PRs, but now I added to change_config (pebble) the call to this function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, have one nitpicky comment.
Test coverage for 08a39ef
Static code analysis report
|
Overview
Add configuration to change password_config behavior.
Rationale
This way the administrator can disable password login if the user login via SSO, for example.
Juju Events Changes
Module Changes
Library Changes
Checklist
src-docs
urgent
,trivial
,complex
)