Repository navigation
Conversation
caBundleSecretRef appeared only inside the mTLS example on the Vault configuration page, with no prose saying what it is or how it relates to caBundle, so searching the site for it turned up nothing but a release note. Document both fields where caBundle is first introduced: they are mutually exclusive, both are ignored for plain HTTP, caBundleSecretRef defaults to reading ca.crt when no key is given, and the controller container's own CA bundle is used when neither is set. Signed-off-by: m-altaifi <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for cert-manager ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🟢 Approval recommended
The changes are documentation-only and look correct overall, with only minor wording precision suggestions.
Pull request overview
This PR updates the Vault Issuer documentation to explicitly describe caBundleSecretRef alongside caBundle, clarifying how cert-manager sources the CA bundle for HTTPS connections and making the mTLS example’s reference more discoverable.
Changes:
- Adds a dedicated “Trusting the Vault server’s CA” section describing
caBundlevscaBundleSecretRef, including mutual exclusivity and HTTP/HTTPS behavior. - Adds a YAML example showing
caBundleSecretRefusage plus the fallback behavior when neither field is set. - Mirrors the same documentation change into both the main docs and the v1.19 versioned docs.
File summaries
| File | Description |
|---|---|
| content/docs/configuration/vault.md | Documents caBundleSecretRef and how CA trust is configured for Vault Issuers. |
| content/v1.19-docs/configuration/vault.md | Same documentation update applied to the v1.19 docs snapshot for consistency. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| - `caBundle`: a base64-encoded bundle of PEM CAs, inlined in the issuer as in the example above. | ||
| - `caBundleSecretRef`: a reference to a `Secret` holding a bundle of PEM-encoded CAs. If you do not | ||
| set `key`, cert-manager reads `ca.crt` from that `Secret`. |
| - `caBundle`: a base64-encoded bundle of PEM CAs, inlined in the issuer as in the example above. | ||
| - `caBundleSecretRef`: a reference to a `Secret` holding a bundle of PEM-encoded CAs. If you do not | ||
| set `key`, cert-manager reads `ca.crt` from that `Secret`. |
Fixes #1425.
caBundleSecretRefwas only ever visible on this page inside the mTLS example, with no prose saying what it is or how it relates tocaBundle— which is why @wallrj's search of cert-manager.io turned up nothing but a release note.This documents both fields where
caBundleis first introduced, taken from the API definitions inpkg/apis/certmanager/v1/types_issuer.go:caBundleSecretRefdefaults to readingca.crtwhen nokeyis given;The
caBundleSecretRefexample in the mTLS section further down now has something to point back to.Per the repo README ("add it to
docs/and possibly to the specific version of cert-manager that's latest"), this changescontent/docs/andcontent/v1.19-docs/, whosevault.mdfiles were identical.Testing
npm ci, then against both changed files:cspell0 issues,remark --frailexit 0,markdown-link-check17 links checked with no errors.