feat: Add TLS support #1503
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.75) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 645 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.387
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #1503"
general
weight: 0.35
swift1337
Summary
Adds outbound TLS and mTLS for remote signers, remote attestors and remote provers, with one rule shared by all three clients:
The same code applies the rule to all three, and configs without
https://behave exactly as before.One TLS rule for every client
| | Remote signer | Remote attestor | Remote prover |
|---|---|---|---|
| Address field |
grpc|grpc|params.url|| TLS on |
https://…|https://…|https://…|| Plaintext |
http://…, barehost:port, other gRPC targets |http://…, barehost:port|http://…, barehost:port|| No port with
https://| 443 | 443 | 443 ||
tlsblock | optional, customizes TLS | optional, customizes TLS | optional (params.tls), customizes TLS ||
tlsblock withouthttps://| rejected | rejected | rejected || Without a
tlsblock | system CAs, no client cert | system CAs, no client cert | system CAs, no client cert |The same config shape works for all three:
Address rules
How each client reads an address:
| | Remote signer | Remote attestor | Remote prover |
|---|---|---|---|
| Bare
host:port| passed to gRPC as written | dialed ashttp://host:port| dialed ashttp://host:port||
http(s)://URL becomes | gRPC targethost:port(443 / 80 by default) | used as the request URL | used as the request URL || Host | required | required | required |
| Path | rejected | allowed (e.g. gateway prefix) | allowed (e.g. gateway prefix) |
| Userinfo | rejected | allowed (sent as basic auth) | allowed (sent as basic auth) |
| Query or fragment | rejected | rejected | rejected |
One principle behind the differences: an address is accepted only if the client can use all of it. HTTP clients can use a path and userinfo. A gRPC target is just
host:port, so a signer rejects anything it would silently drop. A query or fragment would swallow the RPC path appended to the URL, so all three reject it. Errors never echo the address, since it can carry credentials.The
tlsblockSame fields, same meaning, for every client:
| Field | Meaning |
|---|---|
|
caFile| Trust servers signed by this CA instead of the system CAs ||
certFile+keyFile| Present this client certificate (mTLS). Set both or neither ||
serverName| Expect this name on the server's certificate ||
insecureSkipVerify| Skip server verification. Development only; logs a warning that names the service, not the URL |Shared behaviour
The same for all three clients:
caFilecan't be combined withinsecureSkipVerify, atlsblock requires anhttps://address, andtlsis rejected on local attestors and signers. The validity check also runs when Go doesn't pre-parse the certificate (GODEBUG=x509keypairleaf=0).tlsblock that can't be loaded is a startup error. An unreachable remote attestor is still skipped with a warning, as before.Compatibility
Every config that works today behaves the same. The changes add things, or reject addresses that could never connect:
grpcnow also accepts anhttp(s)://URL. Previously any scheme was rejected.http(s)://target now works.https://host[:port]becomes the gRPC targethost:portwith TLS. Previously gRPC-Go couldn't resolve it.- a bare
host:porturlis now dialed ashttp://, as for attestors. Previously connect couldn't use it, including the shipped sampleprover.example.com:9090-
https://already meant TLS; the block now adds settingshttp(s)://addresses with userinfo, a path, a query or a fragment. None of these could connect before.config validate --liveare unchanged.Also in this PR
golang.org/x/netv0.59.0 → v0.60.0 (go.modfiles,Dockerfile, Go prerequisites in the docs).