-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
db: add fields for skip auto rotation of static roles #2386
db: add fields for skip auto rotation of static roles #2386
Conversation
db6f700
to
d601371
Compare
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.
LGTM! Is the test failing for 1.18 CI because the latest Vault version (which would have the feature enabled) is not yet released? If so, should we wait to merge this PR until the monthly release?
Yep! |
e425d4e
to
357f9ca
Compare
78c4cdd
to
3076681
Compare
Description
Add support for skipping auto rotation of static roles.
We only support the role-level setting
skip_import_rotation
and omit support for the config-level settingskip_static_role_import_rotation
. This is because the config-level setting is always overridden by the role-level setting due to the bug with the Terraform SDK v2 described here. That bug forces the role-level setting to always be sent to Vault as an explicitskip_import_rotation=false
whereas it should be sent as empty. This behavior causes the config-level setting to have no effect. Therefore, we will not support the config-level setting in TFVP because it does not function correctly. This is not ideal, however, the ability to set the feature at the role-level is sufficient for a user to be able to enable the feature.Vault PR: hashicorp/vault#29093
Once the feature is released in Vault 1.18.4 and the build matrix is updated, the failing test will pass.