-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Comparing changes
Open a pull request
base repository: coder/coder
base: d5ec26b
head repository: coder/coder
compare: dff598b
- 6 commits
- 18 files changed
- 2 contributors
Commits on Jun 12, 2026
-
feat(coderd/x/nats): add cluster mTLS config builder
Mints an ephemeral IP-SAN leaf certificate from an injected CA for mutually verified TLS on NATS cluster routes. Co-authored-by: Mux <mux@coder.com>
Configuration menu - View commit details
-
Copy full SHA for 33cfa62 - Browse repository at this point
Copy the full SHA 33cfa62View commit details -
feat(coderd/x/nats): wire cluster mTLS into embedded server options
Adds Options.ClusterTLS so buildServerOptions configures the route listener with the minted leaf and a 10s handshake timeout; nil preserves plaintext routes. Co-authored-by: Mux <mux@coder.com>
Configuration menu - View commit details
-
Copy full SHA for a5a5190 - Browse repository at this point
Copy the full SHA a5a5190View commit details -
test(coderd/x/nats): add cluster TLS mesh tests and relay URL constru…
…ctor Adds ClusterTLSOptionsFromRelayURL for deriving the leaf SAN from a replica's relay URL, plus mesh tests covering TLS delivery, wrong-CA rejection, SAN mismatch, and mixed TLS/plaintext. Co-authored-by: Mux <mux@coder.com>
Configuration menu - View commit details
-
Copy full SHA for 274cdcb - Browse repository at this point
Copy the full SHA 274cdcbView commit details -
feat: add nats_ca crypto key feature for NATS cluster mTLS CA
Adds cryptokeys support for a CA that will sign the ephemeral leaf certificates replicas use for NATS cluster mTLS: - New crypto_key_feature enum value nats_ca; the rotator generates a self-signed ECDSA P-256 CA (PEM cert+key bundle in the secret column) and rotates it on the shared key duration with a 30 day token duration matching the maximum leaf lifetime. - FetchNATSCA accessor returns the active CA (parsed cert and signer) plus a trust bundle of all valid CA rows and the active row sequence so callers can detect rotation. It creates the CA on first fetch under an advisory lock since the NATS pubsub is constructed before the rotator starts. - The CA bundle contains a private key and stays excluded from the wsproxy crypto-keys endpoint allowlist and the signing/encryption keycaches. The feature is dormant: nothing fetches the CA until cli/server.go is wired up in a follow-up branch.
Configuration menu - View commit details
-
Copy full SHA for 978710a - Browse repository at this point
Copy the full SHA 978710aView commit details
Commits on Jun 19, 2026
-
Merge remote-tracking branch 'origin/callum/nats-mtls-config' into ca…
…llum/nats-mtls-integration
Configuration menu - View commit details
-
Copy full SHA for 698dbca - Browse repository at this point
Copy the full SHA 698dbcaView commit details -
feat(cli): wire NATS cluster mTLS into server startup
When the NATS pubsub experiment is enabled and a DERP relay URL is configured (HA), enable mutual TLS on inter-replica cluster routes. The per-replica leaf certificate's IP SAN is derived from the relay URL host (the address peers dial), and the cluster CA is fetched from cryptokeys. Adds an integration test that meshes three nodes over TLS using a CA minted by cryptokeys.FetchNATSCA and verifies a cross-route pubsub round-trip. Co-authored-by: Mux <mux@coder.com>
Configuration menu - View commit details
-
Copy full SHA for dff598b - Browse repository at this point
Copy the full SHA dff598bView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff d5ec26b...dff598b