Repository navigation
Controller: store, certificate authority and Join - #1
Merged
Merged
Conversation
- internal/controller/store: PostgreSQL with embedded migrations (applied under an advisory lock) and sqlc queries for workers and join tokens - internal/controller/ca: built-in CA for worker client certificates and the controller's server certificate - internal/controller/workers: single-use join tokens (only a hash is stored) and Join, which consumes the token, records the worker and signs its CSR in one transaction; the pool comes from the token, never the worker - pkg/worker: PinnedCAConfig, so a joining worker verifies the controller against the CA fingerprint printed with the token - controller serve (TLS) and controller token create - pgtest: per-test databases; CI runs them against PostgreSQL and fails instead of skipping when no database is available - docs/ROADMAP.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First part of milestone M1 (see docs/ROADMAP.md): a build machine can now join the controller.
controller token create -pool trustedprints a single-use token and the CA fingerprint.Joinconsumes the token, records the worker and signs its CSR in one transaction. The pool comes from the admin's token, never from the worker.worker.PinnedCAConfiglets a worker verify the controller against the pinned CA fingerprint before it has the CA bundle.Not yet: the
Connectstream, requiring mTLS on it, and certificate renewal.🤖 Generated with Claude Code