-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add ability to cancel PKI tidy operations, pause between tidying certs #16958
Commits on Aug 31, 2022
-
Allow tidy operations to be cancelled
When tidy operations take a long time to execute (and especially when executing them automatically), having the ability to cancel them becomes useful to reduce strain on Vault clusters (and let them be rescheduled at a later time). To this end, we add the /tidy-cancel write endpoint. Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for 699a2d1 - Browse repository at this point
Copy the full SHA 699a2d1View commit details -
Add missing auto-tidy synopsis / description
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for 3287cbe - Browse repository at this point
Copy the full SHA 3287cbeView commit details -
Add a pause duration between tidying certificates
By setting pause_duration, operators can have a little control over the resource utilization of a tidy operation. While the list of certificates remain in memory throughout the entire operation, a pause is added between processing certificates and the revocation lock is released. This allows other operations to occur during this gap and potentially allows the tidy operation to consume less resources per unit of time (due to the sleep -- though obviously consumes the same resources over the time of the operation). Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for 3c86926 - Browse repository at this point
Copy the full SHA 3c86926View commit details -
Add tests for cancellation, pause
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for 3bf6f24 - Browse repository at this point
Copy the full SHA 3bf6f24View commit details -
Add API docs on pause_duration, /tidy-cancel
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for f2aa1a6 - Browse repository at this point
Copy the full SHA f2aa1a6View commit details -
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for f9ba5d7 - Browse repository at this point
Copy the full SHA f9ba5d7View commit details -
Add lock releasing around tidy pause
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for 33fdbf5 - Browse repository at this point
Copy the full SHA 33fdbf5View commit details -
Reset cancel guard, return errors
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Configuration menu - View commit details
-
Copy full SHA for 1fc1773 - Browse repository at this point
Copy the full SHA 1fc1773View commit details