-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enforce our 7 day TTL on certificates #50
base: master
Are you sure you want to change the base?
Conversation
message: "renewBefore must be unset of set to 2/3 of duration, which is required to be 168hrs currently (7 days)" | ||
pattern: | ||
spec: | ||
=(renewBefore): "112" |
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.
Not sure if you can reference the duration field & calculate 2/3rds dynamically?
For now as duration is a fixed value, this seemed fine.
Certificates must be issued for 7 days and start renewing 2/3rds of the way through.
7cfa08a
to
4bb8046
Compare
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.
There's no way to keep this policy closer to the resource it's enforcing upon is there? I'm thinking e.g. if someone in the future changes the name of the issuer these policies will silently be checking nothing but it wouldn't be clear anything changed
operator: Equals | ||
value: kafka-shared-selfsigned-issuer | ||
validate: | ||
message: "Duration must be set to 168h (7 days) as per our recommended best practices" |
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.
per our recommended best practices
Where are these best recommendations documented (could we link to that here)?
operator: Equals | ||
value: kafka-shared-selfsigned-issuer | ||
validate: | ||
message: "renewBefore must be unset or set to 2/3 of duration, which is required to be 168hrs currently (7 days)" |
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.
Might help make it very clear where this value comes from
message: "renewBefore must be unset or set to 2/3 of duration, which is required to be 168hrs currently (7 days)" | |
# 2/3 of value defined in ./require-default-duration.yaml | |
message: "renewBefore must be unset or set to 2/3 of duration, which is required to be 168hrs currently (7 days)" |
Certificates must be issued for 7 days and start renewing 2/3rds of the way through.