-
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
Structure of ACME Tidy #20494
Structure of ACME Tidy #20494
Conversation
builtin/logical/pki/path_tidy.go
Outdated
TidyAcme: false, | ||
SafetyBuffer: 72 * time.Hour, | ||
IssuerSafetyBuffer: 365 * 24 * time.Hour, | ||
AcmeAccountSafetyBuffer: 48 * time.Hour, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that certbot doesn't gracefully handle account removal, I'd maybe make this 30 days perhaps by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. I've done that. Did you want this to apply to time after order/cert expiry as well, if certbot doesn't handle that well?
builtin/logical/pki/path_tidy.go
Outdated
} | ||
|
||
for _, thumbprint := range list { | ||
b.tidyAcmeAccountByThumbprint(b.acmeState, acmeCtx, thumbprint, config.SafetyBuffer, config.AcmeAccountSafetyBuffer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this returns an error, should it be handled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking that an error on any particular account shouldn't stop the tidy, but I probably should log it, so thank you. Logging added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, looking good @kitography!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
-- Track Creation Date of Account
-- Configure Account Safety Buffer on Tidy (Read, Write)
-- Configure Account Safety Buffer on Auto-Tidy
-- Revoke after safety-period (Date stored to ensure this)
-- Delete safety-period after revocation
More Testing to Come