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

Expiration Manager: Handle Presumed Irrevocable Leases Separately #11452

Merged
merged 6 commits into from
Apr 29, 2021

Conversation

swayne275
Copy link
Contributor

Note: this is a copy of pull #11333 (@HridoyRoy @sgmiller the one you already approved). I had to make a new branch/pr for CI to work after the Okta changes

This PR allows leases that are deemed irrevocable to be marked as "zombies", taking them out of the expiration rotation. This is to avoid wasting work on leases that are unlikely to be revoked without manual intervention. This can happen if a backing storage system is removed or misconfigured (e.g. leases stored in a database that cannot be accessed anymore).

Leases are currently only marked as zombies if they fail revocation 6 times. In the future they will also be marked as zombies if the backing systems return an irrevocable error. See VLT-145 for more details.

Question: I don't think zombies need to be included in walkLeases or WalkTokens - these appear to be for metrics, and I don't think zombies should be included in the metrics for potentially valid leases (there are/will be separate zombie metrics - again, see RFC).

Question: for those of you that have worked on this in the past: please let me know if I "missed a spot" - from my analysis it looks like this should do it!

@swayne275
Copy link
Contributor Author

closing to see if i can trigger circle

@swayne275 swayne275 closed this Apr 23, 2021
@swayne275 swayne275 reopened this Apr 23, 2021
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 23, 2021 18:33 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 23, 2021 18:33 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 23, 2021 18:34 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 23, 2021 18:34 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 23, 2021 21:28 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 23, 2021 21:28 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 27, 2021 15:43 Inactive
@vercel vercel bot temporarily deployed to Preview – vault April 27, 2021 15:43 Inactive
@swayne275 swayne275 merged commit aafede4 into master Apr 29, 2021
@swayne275 swayne275 deleted the vault-1977-zombies-copy branch April 29, 2021 15:12
vault/expiration.go Show resolved Hide resolved
vault/expiration.go Show resolved Hide resolved
vault/expiration.go Show resolved Hide resolved
vault/expiration.go Show resolved Hide resolved
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.

None yet

3 participants