Skip to content

localca: Rotation support part 1 - #971

Open
Taahir Ahmed (ahmedtd) wants to merge 1 commit into
agent-substrate:mainfrom
ahmedtd:ca-rotation
Open

localca: Rotation support part 1#971
Taahir Ahmed (ahmedtd) wants to merge 1 commit into
agent-substrate:mainfrom
ahmedtd:ca-rotation

Conversation

@ahmedtd

Copy link
Copy Markdown
Collaborator

This commit fleshes out localca's rotation support by changing the interface so that signing operations should always go through a pool. All existing in-tree callers are converted over to this pattern. This ensures that signing can properly continue as a CA pool is rotated, without requiring any process restarts.

The pool is periodically reloaded from disk in the course of signing operations, with the loaded data being cached for up to a minute.

Some code for storing the CA state using PEM files was removed because it seemed to be dead.

Follow-on changes will give localjwt a similar treatment, and add administrative commands for running rotations on pools.

This commit fleshes out localca's rotation support by changing the
interface so that signing operations should always go through a pool.
All existing in-tree callers are converted over to this pattern.  This
ensures that signing can properly continue as a CA pool is rotated,
without requiring any process restarts.

The pool is periodically reloaded from disk in the course of signing
operations, with the loaded data being cached for up to a minute.

Some code for storing the CA state using PEM files was removed because
it seemed to be dead.

Follow-on changes will give localjwt a similar treatment, and add
administrative commands for running rotations on pools.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant