← Back to Pull requests

docs: fix TLS passthrough curl CA guidance and troubleshooting #9778

Open
VedantMadane opened this pull request with 58 lines diff across 1 files
View on GitHub
VedantMadane VedantMadane commented on Aug 18, 2026 16:40 UTC
Author

Use the CA cert (not the leaf) with --cacert in both testing tabs, and add a short troubleshooting section for unable to get local issuer certificate under TLS passthrough.

Fixes #5630

Diff: 58 lines (+54 / -4) across 1 files Reviewer: VedantMadane Review duration: 73334m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.72) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.72 · 58 lines diff across 1 files
0.72
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.88 · 5 substantive comment(s)
0.88
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
80%
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.244
Self Review self_review
0.140
Sensitive Paths sensitive_paths
0.072
Real PR Conversation Timeline
16 items
netlify[bot] netlify[bot] commented on Aug 18, 2026 16:40 UTC
Bot

<span aria-hidden="true">✅</span> Deploy Preview for cerulean-figolla-1f9435 ready!

| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | cf2052608849fd17b469553198c0c576bf6dc6c2 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6abe057e7c42dc0008b1d6eb |
|<span aria-hidden="true">😎</span> Deploy Preview | https://deploy-preview-9778--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._

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Aug 18, 2026 16:43 UTC
Code Review
site/content/en/latest/tasks/security/tls-passthrough.md:1
@@ -98,16 +103,52 @@ Port forward to the Envoy service:
 kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 6043:6443 &
 ```
 
-Curl the example app through Envoy proxy:
+Curl the example app through Envoy proxy. As above, `--cacert` must be the
+**CA** (`example.com.crt`), not the leaf `passthrough.example.com.crt`:
 
 ```shell
-curl -v --resolve "passthrough.example.com:6043:127.0.0.1" https://passthrough.example.com:6043 \
---cacert passthrough.example.com.crt
+curl -v --resolve "passthrough.example.com:6043:127.0.0.1" \
+  -HHost:passthrough.example.com \
+  --cacert example.com.crt \
+  https://passthrough.example.com:6043/get
 ```
 
 {{% /tab %}}
 {{< /tabpane >}}
 
+### Troubleshooting certificate verification
+
+If curl reports `unable to get local issuer certificate` or `unknown CA`:
+
+1. Confirm `--cacert` points at `example.com.crt` (the CA that signed the
+   application certificate), not at `passthrough.example.com.crt`.
+2. Confirm the app Secret still holds the keypair created earlier:
+
+   ```shell
+   kubectl get secret server-certs -o yaml
+   ```
+
+3. If you replaced the sample certs with a publicly issued or intermediate-signed
+   certificate, the TLS Secret presented by the **application** must include the
+   full chain the client needs (leaf plus intermediates). Kubernetes `tls.crt`
+   may contain multiple PEM blocks concatenated leaf-first:
+
+   ```shell
+   cat passthrough.example.com.crt intermediate.crt > fullchain.crt
+   kubectl create secret tls server-certs \
+     --key=passthrough.example.com.key \
+     --cert=fullchain.crt \
+     --dry-run=client -o yaml | kubectl apply -f -

<sub><sub>!P2 Badge</sub></sub> Restart the sample server after replacing its certificate

When a user follows this branch after replacing the sample certificates, this pipeline updates the mounted Secret but does not restart the existing passthrough-echoserver Pod. The Deployment in examples/kubernetes/tls-passthrough.yaml runs echo-basic with certificate paths supplied at startup, so its TLS listener continues presenting the previously loaded keypair and the subsequent curl check still fails. Add a rollout restart and wait for the Deployment after applying the replacement Secret.

Useful? React with 👍 / 👎.

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Aug 18, 2026 16:43 UTC
Code Review
site/content/en/latest/tasks/security/tls-passthrough.md:1
@@ -76,7 +76,12 @@ You can also test the same functionality by sending traffic to the External IP o
 export GATEWAY_HOST=$(kubectl get gateway/eg -o jsonpath='{.status.addresses[0].value}')
 ```
 
-Curl the example app through the Gateway, e.g. Envoy proxy:
+Curl the example app through the Gateway, e.g. Envoy proxy.
+
+Use the **CA** certificate (`example.com.crt`) with `--cacert`. That is the
+issuer of `passthrough.example.com.crt`. Passing only the leaf server
+certificate as a CA file will fail verification with errors such as
+`SSL certificate problem: unable to get local issuer certificate`.

<sub><sub>!P2 Badge</sub></sub> Qualify the claim that trusting the leaf always fails

This newly added absolute claim is false for common TLS backends: with the exact certificates generated earlier, the original --cacert passthrough.example.com.crt command succeeds with curl 8.5.0 backed by OpenSSL 3.0.13 because an explicitly trusted leaf can serve as the trust anchor. Using the issuing CA remains better and more portable guidance, but diagnosing the issuer error solely from use of the leaf can send users away from its actual cause; describe this as backend-dependent rather than saying it will fail.

Useful? React with 👍 / 👎.

chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Aug 18, 2026 16:43 UTC
Reviewer

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a52e86ca1f

<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

    </details>

    VedantMadane VedantMadane commented on Aug 19, 2026 08:27 UTC
    Author

    Addressed the review notes: qualified the leaf-as---cacert guidance as backend-dependent (CA remains the portable recommendation), and added a rollout restart + status wait after replacing the sample server-certs Secret so the echoserver reloads the keypair.

    zirain zirain commented on Aug 19, 2026 09:37 UTC
    Contributor

    @codex review

    zirain zirain commented on Aug 19, 2026 09:37 UTC
    Contributor

    please fix DCO

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Aug 19, 2026 09:39 UTC
    Code Review
    site/content/en/latest/tasks/security/tls-passthrough.md:1
    @@ -98,16 +104,61 @@ Port forward to the Envoy service:
     kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 6043:6443 &
     ```
     
    -Curl the example app through Envoy proxy:
    +Curl the example app through Envoy proxy. As above, `--cacert` must be the
    +**CA** (`example.com.crt`), not the leaf `passthrough.example.com.crt`:
     
     ```shell
    -curl -v --resolve "passthrough.example.com:6043:127.0.0.1" https://passthrough.example.com:6043 \
    ---cacert passthrough.example.com.crt
    +curl -v --resolve "passthrough.example.com:6043:127.0.0.1" \
    +  -HHost:passthrough.example.com \
    +  --cacert example.com.crt \
    +  https://passthrough.example.com:6043/get
     ```
     
     {{% /tab %}}
     {{< /tabpane >}}
     
    +### Troubleshooting certificate verification
    +
    +If curl reports `unable to get local issuer certificate` or `unknown CA`:
    +
    +1. Confirm `--cacert` points at `example.com.crt` (the CA that signed the
    +   application certificate), not at `passthrough.example.com.crt`.
    +2. Confirm the app Secret still holds the keypair created earlier:
    +
    +   ```shell
    +   kubectl get secret server-certs -o yaml
    +   ```
    +
    +3. If you replaced the sample certs with a publicly issued or intermediate-signed
    +   certificate, the TLS Secret presented by the **application** must include the
    +   full chain the client needs (leaf plus intermediates). Kubernetes `tls.crt`
    +   may contain multiple PEM blocks concatenated leaf-first:

    <sub><sub>!P2 Badge</sub></sub> Update the client trust anchor for replacement certificates

    When the replacement chain is rooted in a CA other than the sample example.com.crt, installing the leaf and intermediates in the Secret is insufficient because both test commands still pass the unrelated sample CA to --cacert, and step 1 explicitly tells users to keep doing so. The inspected curl 8.5.0 --manual says --cacert uses the specified certificate file to verify the peer and alters the default CA file, so this workflow can continue reporting an unknown issuer after the documented server-side fix. Tell users to omit --cacert for a publicly trusted chain or point it at the replacement chain's root/appropriate CA bundle.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Aug 19, 2026 09:39 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: 644c32475c

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

    </details>

    VedantMadane VedantMadane commented on code on Aug 20, 2026 05:30 UTC
    Code Review
    site/content/en/latest/tasks/security/tls-passthrough.md:1
    @@ -98,16 +104,61 @@ Port forward to the Envoy service:
     kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 6043:6443 &
     ```
     
    -Curl the example app through Envoy proxy:
    +Curl the example app through Envoy proxy. As above, `--cacert` must be the
    +**CA** (`example.com.crt`), not the leaf `passthrough.example.com.crt`:
     
     ```shell
    -curl -v --resolve "passthrough.example.com:6043:127.0.0.1" https://passthrough.example.com:6043 \
    ---cacert passthrough.example.com.crt
    +curl -v --resolve "passthrough.example.com:6043:127.0.0.1" \
    +  -HHost:passthrough.example.com \
    +  --cacert example.com.crt \
    +  https://passthrough.example.com:6043/get
     ```
     
     {{% /tab %}}
     {{< /tabpane >}}
     
    +### Troubleshooting certificate verification
    +
    +If curl reports `unable to get local issuer certificate` or `unknown CA`:
    +
    +1. Confirm `--cacert` points at `example.com.crt` (the CA that signed the
    +   application certificate), not at `passthrough.example.com.crt`.
    +2. Confirm the app Secret still holds the keypair created earlier:
    +
    +   ```shell
    +   kubectl get secret server-certs -o yaml
    +   ```
    +
    +3. If you replaced the sample certs with a publicly issued or intermediate-signed
    +   certificate, the TLS Secret presented by the **application** must include the
    +   full chain the client needs (leaf plus intermediates). Kubernetes `tls.crt`
    +   may contain multiple PEM blocks concatenated leaf-first:

    Updated the troubleshooting section to explicitly distinguish trust anchors:

  • For sample certs: point --cacert at example.com.crt.

  • For publicly trusted certificates (e.g. Let's Encrypt): omit --cacert so curl uses the system trust store.

  • For private/internal CAs: point --cacert at the root CA bundle.
  • zirain zirain commented on Aug 25, 2026 04:43 UTC
    Contributor

    @codex review

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on code on Aug 25, 2026 04:45 UTC
    Code Review
    site/content/en/latest/tasks/security/tls-passthrough.md:1
    @@ -98,16 +104,60 @@ Port forward to the Envoy service:
     kubectl -n envoy-gateway-system port-forward service/${ENVOY_SERVICE} 6043:6443 &
     ```
     
    -Curl the example app through Envoy proxy:
    +Curl the example app through Envoy proxy. As above, `--cacert` must be the
    +**CA** (`example.com.crt`), not the leaf `passthrough.example.com.crt`:

    <sub><sub>!P2 Badge</sub></sub> Keep the leaf-certificate guidance backend-dependent

    The qualification added in the preceding tab is undone here: this still says the CA “must” be used, although the sample request succeeds with --cacert passthrough.example.com.crt on curl 8.5.0 with OpenSSL 3.0.13 because that backend accepts the explicitly trusted leaf as a trust anchor. Users on such backends are therefore told that a working invocation is invalid; fresh evidence in the current revision is this remaining absolute wording in the second tab. Describe the CA as the preferred portable choice rather than mandatory.

    Useful? React with 👍 / 👎.

    chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Aug 25, 2026 04:45 UTC
    Reviewer

    💡 Codex Review

    Here are some automated review suggestions for this pull request.

    Reviewed commit: 45b9eb9b9e

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review

  • Mark a draft as ready

  • Comment "@codex review".
  • If Codex has suggestions, it will comment; otherwise it will react with 👍.

    When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

    </details>

    github-actions[bot] github-actions[bot] commented on Sep 24, 2026 08:08 UTC
    Bot

    This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions!

    VedantMadane VedantMadane commented on Oct 01, 2026 07:02 UTC
    Author

    CI fix: docs-lint broken link

    Root cause (unrelated to this PR's doc change): docs-check-links failed on a site-wide external adopter URL:

    [503] https://presence.decionis.com/developers
    

    from site/data/ecosystem.yaml (Presence adopter). This was a flaky 503 from the external host (returns 200 intermittently); not introduced by the TLS passthrough markdown.

    Fix: Rebased onto current main to pick up #10125 (chore: ignore presence.decionis.com), which already adds presence.decionis.com to LINKINATOR_IGNORE.

  • Head: cf2052608849fd17b469553198c0c576bf6dc6c2

  • Diff vs main remains only site/content/en/latest/tasks/security/tls-passthrough.md
  • Reviewers
    Assignees
    VedantMadane VedantMadane
    Labels
    risk: low confidence: 80.9% 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: 71.6% (HIGH) · Higher = larger blast radius
    71.6%
    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: 80.9% · Lower = rushed or shallow review
    80.9%
    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: 13.7% · Safe to merge
    13.7%