Skip to content
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

Merged
merged 10 commits into from
Oct 26, 2023

Conversation

kpcraig
Copy link
Contributor

@kpcraig kpcraig commented Oct 24, 2023

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.

@kpcraig kpcraig changed the title Vault 21196/ldap new user rotation param add configuration parameters to skip password rotation on import Oct 24, 2023
PasswordPolicy string `json:"password_policy,omitempty"`
LDAP *client.Config
PasswordPolicy string `json:"password_policy,omitempty"`
SkipStaticRoleImportRotation bool `json:"skip_static_role_import_rotation"`
Copy link
Contributor

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?

Copy link
Contributor Author

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

path_static_roles.go Show resolved Hide resolved
@kpcraig kpcraig merged commit 4b4c930 into main Oct 26, 2023
@fairclothjm
Copy link
Contributor

Should we add a changelog entry for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants