-
Notifications
You must be signed in to change notification settings - Fork 8
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 configuration parameters to skip password rotation on import #83
Conversation
PasswordPolicy string `json:"password_policy,omitempty"` | ||
LDAP *client.Config | ||
PasswordPolicy string `json:"password_policy,omitempty"` | ||
SkipStaticRoleImportRotation bool `json:"skip_static_role_import_rotation"` |
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.
It would get lengthy, but I wonder if adding some notion of password
would make this more obvious.
skip_static_role_import_password_rotation
. Maybe it's redundant.. thoughts?
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.
i don't mind adding it if people want it - i think rotation implies password in Vault contexts, so i don't think we need it
Should we add a changelog entry for this? |
This adds a new parameter to both the ldap configuration and the static role that will skip the initial password rotation on import. While this means vault won't know the password for the static user (/ldap/static-cred/role-name won't return a password), it does mean that an admin can pre-load users into ldap (say, during an AD->LDAP migration), without immediately changing the passwords.
This setting is off by default to retain backwards compatibility.