-
Notifications
You must be signed in to change notification settings - Fork 487
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
server CA persistence support #532
Conversation
- updates memory CA to optionally persist signing keypair to disk. - updates CA manager to skip the initial rotation if there is a good keypair returned by the CA. Signed-off-by: Andrew Harding <azdagron@gmail.com>
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.
LGTM!
if the server is restarted, a new signing authority is generated against the upstream CA. | ||
The `memory` plugin implements an in-memory signing authority. The signing | ||
keypair is optionally persisted to disk. When the server is loaded, if no | ||
keypair has been persisted, or if the keypair is expiring/expired, a new |
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.
how do we determine expiring?
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.
Same way it is done today. Certificate is "expiring" when it is within 1/6th of the ttl left.
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.
👍 🔑 📝
@@ -1,13 +1,15 @@ | |||
# Server plugin: ServerCA "memory" |
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.
Is the name memory
still accurate if the plugin can also persist to disk?
For now I think this is fine, but after upcoming ServerCA refactors we may want to consider making the disk-based functionality a dedicated plugin
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.
Yep, i agree.
⚡️ |
keypair returned by the CA.
Signed-off-by: Andrew Harding azdagron@gmail.com