-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Track barrier encryptions and rotate when an operation threshold or time limit is reached. #10774
Conversation
This pull request is being automatically deployed with Vercel (learn more). vault-storybook – ./ui🔍 Inspect: https://vercel.com/hashicorp/vault-storybook/kb61e5yrg [Deployment for 9779f47 canceled] |
…n_tracking # Conflicts: # internalshared/configutil/barrier.go
…mes up in replicated settings
Just a note to review this on the ENT branch. This will be updated with the OSS portions after review feedback/change iteration. |
One note on the design here: Checking when to rotate is done as encryptions
happen, to avoid needing a goroutine whose lifecycle we'd need to manage.
But as a result, this requires the AESGCMBarrier have access to the random
generator. I did this via a factory pattern, but it's in contrast to the
existing SecurityBarrier interface which passes in the random reader to all
calls that need it.