Repository navigation
perf: store upstream client certs once per gateway - #10669
Merged
zhaohuabing merged 9 commits intoNov 28, 2026
Merged
Conversation
The EnvoyProxy backendTLS client certificate lands on every TLS destination, so each deep copy of the IR copied its bytes once per destination. Store each client cert once in the IR, keyed by its Secret name, and leave a name-only reference on the destination, the same way envoyproxy#10072 handled CA bundles. The xDS output is unchanged. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
✅ Deploy Preview for cerulean-figolla-1f9435 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10669 +/- ##
==========================================
+ Coverage 82.81% 82.83% +0.02%
==========================================
Files 278 279 +1
Lines 44658 44687 +29
==========================================
+ Hits 36984 37018 +34
+ Misses 7673 7668 -5
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
zirain
approved these changes
Nov 23, 2026
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
rudrakhp
approved these changes
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10069
This is the client cert half of #10069, following the same approach as #10072 for CA bundles. The EnvoyProxy backendTLS client cert is attached to every TLS destination, so each deep copy of the IR held one copy of its cert and key per destination.
-Each client cert is now stored once in the gateway IR and destinations keep a name-only reference. It's keyed by Secret name rather than a content digest, since the name is already the xDS secret name and this avoids hashing private keys.
With 1000 mTLS destinations and the CA already shared, one IR deep copy drops from 5.07 MB and 0.81 ms to 1.23 MB and 0.30 ms.