Skip to content

Commit 07d8aa2

Browse files
committed
Root mTLS trust in signed registry
Bind authorization to the presented client certificate key in Postgres so client CA bundles are no longer a trust root.
1 parent ce63ea3 commit 07d8aa2

15 files changed

Lines changed: 1435 additions & 235 deletions

Cargo.lock

Lines changed: 22 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ opentelemetry-otlp = { version = "0.31", features = ["grpc-tonic"] }
3131
anyhow = "1"
3232
sqlx = { version = "0.8.6", default-features = false, features = ["runtime-tokio-rustls", "postgres", "chrono", "migrate", "macros", "derive"] }
3333
chrono = { version = "0.4.44", features = ["serde"] }
34-
sha2 = "0.11.0"
3534
p256 = { version = "0.13.2", features = ["ecdsa", "pkcs8"] }
3635

3736
[dev-dependencies]

config.example.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
listen_addr = "0.0.0.0:8443"
33
tls_cert_path = "certs/server.pem"
44
tls_key_path = "certs/server-key.pem"
5-
# Concatenated PEM of per-machine client CAs (from connect.sh: machine-client-ca.pem).
6-
# Append one -----BEGIN CERTIFICATE----- block per enrolled machine; restart the gateway to load.
7-
client_ca_path = "certs/client-ca-bundle.pem"
85

96
[observability]
107
log_level = "info"
118
otlp_endpoint = "http://localhost:4317"
12-
139
[policy]
1410
# Custom extension OID to extract from client certs.
1511
client_ext_oid = "1.3.6.1.4.1.57264.1.1"

0 commit comments

Comments
 (0)