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

Work around Vault DB static creds TTL rollover bug #730

Merged

Conversation

benashz
Copy link
Collaborator

@benashz benashz commented May 8, 2024

When syncing database static credentials role configured with scheduled rotation, the TTL is incorrectly rolled over within the same rotation period. Since, VSO relies on the TTL for its sync scheduling, an invalid TTL results in syncing stale credentials.

This fix, attempts to detect the TTL rollover bug, and ensure that current rotated creds are properly synced.

@benashz benashz requested a review from a team as a code owner May 8, 2024 14:45
@benashz benashz force-pushed the VAULT-26529/vds-work-around-scheduled-static-creds-ttl-rollover branch from 498d725 to 0115e07 Compare May 8, 2024 14:48
When syncing database static credentials role configured with scheduled
rotation, the TTL is incorrectly rolled over within the same rotation
period. Since, VSO relies on the TTL for its sync scheduling, an invalid
TTL results in syncing stale credentials.

This fix, attempts to detect the TTL rollover bug, and ensure that
current rotated creds are properly synced.
@benashz benashz force-pushed the VAULT-26529/vds-work-around-scheduled-static-creds-ttl-rollover branch from 0115e07 to 5d6bb40 Compare May 8, 2024 14:52
controllers/registry_test.go Outdated Show resolved Hide resolved
controllers/vaultdynamicsecret_controller.go Show resolved Hide resolved
controllers/vaultdynamicsecret_controller.go Outdated Show resolved Hide resolved
controllers/vaultdynamicsecret_controller.go Outdated Show resolved Hide resolved
@benashz benashz force-pushed the VAULT-26529/vds-work-around-scheduled-static-creds-ttl-rollover branch from fa31cba to 145b47a Compare May 22, 2024 18:25
@benashz benashz force-pushed the VAULT-26529/vds-work-around-scheduled-static-creds-ttl-rollover branch from 3a4ba37 to 3ae0af3 Compare June 6, 2024 23:06
@benashz benashz force-pushed the VAULT-26529/vds-work-around-scheduled-static-creds-ttl-rollover branch from 3ae0af3 to cd70823 Compare June 7, 2024 02:36
@benashz benashz added this to the v0.8.0 milestone Jun 7, 2024
@benashz benashz merged commit b1cf1e7 into main Jun 7, 2024
42 checks passed
@benashz benashz deleted the VAULT-26529/vds-work-around-scheduled-static-creds-ttl-rollover branch June 7, 2024 13:28
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.

2 participants