Skip to content

docs: document the Vault issuer caBundleSecretRef field - #2257

Open
m-altaifi wants to merge 1 commit into
cert-manager:masterfrom
m-altaifi:docs/vault-cabundlesecretref
Open

m-altaifi wants to merge 1 commit into
cert-manager:masterfrom
m-altaifi:docs/vault-cabundlesecretref

Conversation

@m-altaifi

Copy link
Copy Markdown
Contributor

Fixes #1425.

caBundleSecretRef was only ever visible on this page inside the mTLS example, with no prose saying what it is or how it relates to caBundle — which is why @wallrj's search of cert-manager.io turned up nothing but a release note.

This documents both fields where caBundle is first introduced, taken from the API definitions in pkg/apis/certmanager/v1/types_issuer.go:

  • they are mutually exclusive;
  • both are only used for HTTPS and ignored for plain HTTP;
  • caBundleSecretRef defaults to reading ca.crt when no key is given;
  • if neither is set, the CA bundle in the cert-manager controller container is used.

The caBundleSecretRef example 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 changes content/docs/ and content/v1.19-docs/, whose vault.md files were identical.

Testing

npm ci, then against both changed files: cspell 0 issues, remark --frail exit 0, markdown-link-check 17 links checked with no errors.

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]>
@cert-manager-prow cert-manager-prow Bot added the dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. label Sep 1, 2026
@cert-manager-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign hawksight for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cert-manager-prow cert-manager-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 1, 2026
@netlify

netlify Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for cert-manager ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c2fa3f2
🔍 Latest deploy log https://app.netlify.com/projects/cert-manager/deploys/6a975b179676f30008c91de5
😎 Deploy Preview https://deploy-preview-2257--cert-manager.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 caBundle vs caBundleSecretRef, including mutual exclusivity and HTTP/HTTPS behavior.
  • Adds a YAML example showing caBundleSecretRef usage 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.

Comment on lines +56 to +58
- `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`.
Comment on lines +56 to +58
- `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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The issuer.vault.spec.caBundleSecretRef docs are missing

2 participants