← Back to Pull requests

Explain what to do when an application expects ca.crt in the certificate Secret #2271

Closed
unknown closed this pull request without merging on Sep 10, 2026 05:24 UTC
View on GitHub
unknown unknown commented on Sep 07, 2026 06:38 UTC
Author

Rendered preview:

  • Trusting certificates: My application expects ca.crt in the same Secret as the certificate

  • FAQ: Why isn't my certificate's chain in my issued Secret's ca.crt?
  • Fixes: https://github.com/cert-manager/cert-manager/issues/1571
    Fixes: https://github.com/cert-manager/trust-manager/issues/222

    The FAQ and the trust page explain why ca.crt must not be used as a trust store. They do not say what to do when a chart or operator insists on a single Secret with tls.crt, tls.key and ca.crt. That is the recurring question behind cert-manager/cert-manager#1571 and cert-manager/trust-manager#222, and it has kept both issues alive for years.

    This PR adds a section to the trust page, "My application expects ca.crt in the same Secret as the certificate", and links to it from the FAQ entry. The section:

  • explains that ca.crt is usually a trust store for client or peer authentication, so a public CA must never be used there;

  • lists the applications users report and the separate CA option each one already has (OpenSearch operator caSecret.name, RabbitMQ cluster operator caSecretName, Istio Gateway <credentialName>-cacert, ingress-nginx auth-tls-secret, Gateway API BackendTLSPolicy);

  • shows a projected volume that merges the cert-manager Secret and the trust-manager ConfigMap into one directory;

  • explains why writing ca.crt into the cert-manager Secret from another controller is unsafe.
  • <details>
    <summary>Evidence for the claims in the new section</summary>

  • cert-manager only writes ca.crt when the issuer returns a CA: issuing/internal/secret.go#L165-L167.

  • The keystore check treats the presence of ca.crt in the Secret as "issuer provides CA" (policies/checks.go#L107), but truststores are built from the CertificateRequest CA (secret.go#L305, #L363). An injected ca.crt with keystores enabled therefore never satisfies the check.

  • OpenSearch operator caSecret.name: userguide v2.8.0 line 214.

  • RabbitMQ cluster operator caSecretName: rabbitmqcluster_types.go v2.22.5 line 374.

  • Redis tls-ca-cert-file authenticates clients and peers: redis.conf 8.10.1 lines 233-237.
  • </details>

    [Claude Fable 5.1]

    Diff: 410 lines (+307 / -103) across 5 files Reviewer: lunarwhite Review duration: 4245m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 410 lines diff across 5 files
    0.68
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.360
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #2271"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 68% (HIGH) · Higher = larger blast radius
    68%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 26.9% · Safe to merge
    26.9%