docs: issue the mTLS quick-start certificate for the name the operator verifies #772
All Vouch review confidence checks passed
Residual risk 0.38 = Change Risk (0.71) × (1 − Review Confidence (0.46)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 486 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 96% · 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.370
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #772"
general
weight: 0.35
coderabbitai[bot]
This PR closes #771.
Summary
The mTLS quick start issued its server certificate for a different name from the one the operator verifies. With
networking.tls.serverNameunset, the operator verifies the headless Service name,valkey-<cluster>.<namespace>.svc.<clusterDomain>(see TLS indocs/valkeycluster.md). With the doc's certificate every handshake to a node failed, so the cluster never formed. The page has read this way since it was added in 0f06979 (#242).docs/mtls.md: the server certificate and thevalkey-cli -hexample now use the Service's DNS name. After the cert-manager example, a new paragraph says the server certificate'sdnsNamesmust includeserverName, or its default when it is unset. The "Operator-managed connections" section no longer calls the server certificate's CN the node FQDN.docs/valkeycluster.md: the TLS section says the server certificate must list that name, and the TLS tip says its wildcard SAN does not cover the name itself, which fails the same way.docs/using-modules.md: thekubectl execexample now names the pod the operator creates,valkey-my-cluster-0-0-0.Features / Behaviour Changes
None. It's docs only, so nothing rolls on upgrade.
Implementation
The names now match what the e2e TLS specs already issue and dial. The two mTLS specs also add
localhostto the server certificate; the plain TLS spec runs the exporter with only the Service name and passes, so the quick start leaveslocalhostout.Limitations
I haven't applied the quick start to a cluster.
Testing
docs/mtls.mdand builds the operator's TLS config withnodeTLSFromClusterandgetTLSConfig. Then it dials a local TLS server that presents a certificate with the doc's names and requires a client certificate, asclientAuth.mode: Requireddoes. Onmainthe handshake fails withx509: certificate is valid for valkeycluster-mtls.default.svc.cluster.local, not valkey-valkeycluster-mtls.default.svc.cluster.local. With this change it succeeds. The same test compares the-hhost withheadlessServiceFQDNand theusing-modules.mdpod with the StatefulSet pod name fromvalkeyNodeResourceName. Both differ onmainand match here.TestTLSServerNameandTestNodeTLSFromClusterpin the default name the doc now uses. They pass with or without this change, since no code changed.make lint,make testandhack/check-copyright.shpass locally. No Go code, manifest or chart changed.securityjob of themaine2e run at f9959bf. The CN mTLS spec issues the server certificate forvalkey-<cluster>.default.svc.cluster.localand connectsvalkey-cliwith a client certificate to that name. TheclientAuth.caspec runsmode: Requiredwithout adefaultuser, as the quick start does.Checklist
Before submitting the PR make sure the following are checked:
pre-commit run --all-filesor hooks on commit). pre-commit isn't installed here. For a docs-only change only its merge-conflict check applies, andgit diff --checkis clean.