Skip to content

Small fixes on UX of Automated Root Rotation parameters - #29685

Merged
vinay-gopalan merged 3 commits into
mainfrom
VAULT-33999/automated-rotation-ux-improvements
Feb 25, 2025
Merged

Small fixes on UX of Automated Root Rotation parameters#29685
vinay-gopalan merged 3 commits into
mainfrom
VAULT-33999/automated-rotation-ux-improvements

Conversation

@vinay-gopalan

Copy link
Copy Markdown
Contributor

Description

Small fixes around the usability of the new automated root rotation parameters added to select Secret and Auth engines for 1.19 Enterprise.

This PR:

  • enables rotation_period and rotation_window to be duration strings instead of just integers to be consistent with static role mechanisms
  • makes it easier to zero out rotation params while setting others in the same call (previously user would have to unset rotation_period — which would first de-register — and then set rotation_schedule in a follow up call to re-register)
  • fixes a bug where if disable_automated_rotation was not passed in a request, it was treated as being set to false, which would cause a de-registration. Now it will only de-register if the param is explicitly set to false
  • removes an extra nested AutomatedRotationParams struct in the DB Config read method
  • 'mutually exclusive' and 'incompatible fields' errors are only dispatched if fields are non-zero (UI sets rotation_period and rotation_window to 0, which was causing unnecessary errors)

@vinay-gopalan
vinay-gopalan requested review from a team as code owners February 21, 2025 01:30
@vinay-gopalan
vinay-gopalan requested a review from pmmukh February 21, 2025 01:30
@github-actions github-actions Bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Feb 21, 2025
@vinay-gopalan vinay-gopalan added pr/no-changelog and removed hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed labels Feb 21, 2025
@vinay-gopalan vinay-gopalan added this to the 1.19.0 milestone Feb 21, 2025
@vinay-gopalan
vinay-gopalan requested review from kpcraig and robmonte and removed request for pmmukh February 21, 2025 01:34
@github-actions

github-actions Bot commented Feb 21, 2025

Copy link
Copy Markdown

CI Results:
All Go tests succeeded! ✅

@github-actions

Copy link
Copy Markdown

Build Results:
All builds succeeded! ✅

@github-actions github-actions Bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Feb 21, 2025
Comment thread builtin/logical/aws/path_config_root_test.go
robmonte
robmonte previously approved these changes Feb 23, 2025
kpcraig
kpcraig previously approved these changes Feb 24, 2025
@vinay-gopalan
vinay-gopalan dismissed stale reviews from kpcraig and robmonte via 0945828 February 25, 2025 05:01

if scheduleOk {
if periodOk {
if periodOk && rotationPeriodSecondsRaw.(int) != 0 && rotationScheduleRaw.(string) != "" {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants