docs: drop kubectl --certificate-authority from the mTLS secret command #10733
<span aria-hidden="true">✅</span> Deploy Preview for cerulean-figolla-1f9435 ready!
Built without sensitive environment variables
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 82002b1da432763b385224569790cb408ace9743 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6b0cbbc003e14dad6e353a3f |
|<span aria-hidden="true">😎</span> Deploy Preview | https://deploy-preview-10733--cerulean-figolla-1f9435.netlify.app |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />!QR Code<br /><br />_Use your smartphone camera to open QR code link._</details> |
---
<!-- cerulean-figolla-1f9435 Preview -->
_To edit notification comments on pull requests, go to your Netlify project configuration._
<!-- codex-pull-request-review-summary -->
<!-- codex-review-state:v1 {"code_review":{"commit_sha":"82002b1da432763b385224569790cb408ace9743","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} -->
<details>
<summary><strong>Codex Review Summary</strong>: ✅ Completed</summary>
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
| --- | --- | --- | --- |
| 📝 Code Review | ✅ Completed <relative-time datetime="2026-11-29T23:57:34.620727Z">2026-11-29T23:57:34.620727Z</relative-time> | 82002b1 | PR opened |
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
</details>
Hi team, could you please review this when you have a moment?
In short: Drop kubectl --certificate-authority from the mTLS secret command.
I think this will be really valuable. You may want to take a look. Thanks!
Hi team, could you please review this when you have a moment?
In short: Drop kubectl --certificate-authority from the mTLS secret command.
I think this will be really valuable. You may want to take a look. Thanks!
Hi team, could you please review this when you have a moment?
In short: Drop kubectl --certificate-authority from the mTLS secret command.
I think this will be really valuable. You may want to take a look. Thanks!
Approved these changes.
zirain
MaxonT
The Mutual TLS guide ending in a certificate error is what caught my eye in #5629, and a patch is attached for the guide.
Fixes #5629
The
kubectl create secret tlscommand in the Mutual TLS task passed--certificate-authority=example.com.crt. That is not a secret option: it is kubectl's global flag for the CA that verifies the API server. With the example CA given there, kubectl stops trusting the cluster's own certificate and fails withx509: certificate signed by unknown authority, which is the error the reporter saw.kubectl create secret tlsonly takes--certand--key.The change removes that flag from the command. The CA is still stored by the next step,
kubectl create secret generic example-ca-cert --from-file=ca.crt=example.com.crt, which the Gateway's client validation already references, so nothing else in the guide changes.Only
site/content/en/latest/tasks/security/mutual-tls.mdchanges (docs, no API or behaviour change, no release note needed). I did not backport it to the versioned docs.Checks
Ran: markdownlint-cli with the repo's
.github/markdown_lint_config.jsonon the changed file, exit 0. The global flag's meaning is from the kubectl reference ("Path to a cert file for the certificate authority", listed under kubectl's global options).Not run: the guide against a live cluster (kubectl is not installed where I worked), the docs site build, and the repository CI on this head. The commit is signed off (DCO).