Repository navigation
e2e: add test for egress credential injection cujs - #1795
Merged
Bowei Du (bowei) merged 4 commits intoSep 29, 2026
Merged
Conversation
Yufan Su (yufan-su)
force-pushed
the
e2e-cred-injection
branch
from
September 22, 2026 20:08
b154e93 to
ab13375
Compare
Yufan Su (yufan-su)
requested review from
Lior Lieberman (LiorLieberman) and
Bowei Du (bowei)
September 22, 2026 20:08
Yufan Su (yufan-su)
force-pushed
the
e2e-cred-injection
branch
2 times, most recently
from
September 25, 2026 20:52
23c1b49 to
363fcf6
Compare
Collaborator
Author
|
Bowei Du (@bowei) PR is updated according to your comments offline. |
Yufan Su (yufan-su)
force-pushed
the
e2e-cred-injection
branch
from
September 28, 2026 19:05
363fcf6 to
b3bf2d1
Compare
2 tasks done
Yufan Su (yufan-su)
force-pushed
the
e2e-cred-injection
branch
from
September 28, 2026 22:57
6de7bc6 to
35b0d46
Compare
Yufan Su (yufan-su)
force-pushed
the
e2e-cred-injection
branch
from
September 28, 2026 23:01
35b0d46 to
42ab787
Compare
Bowei Du (bowei)
approved these changes
Sep 29, 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.
e2e: add e2e for egress credential injection
Adds the
egresscredinjecte2e suite: an actor fetcheshttps://httpbin.org/headersthrough the sdsmint MITM gateway, and the echoed response proves the injected
Authorizationheader actually reached the upstream.What it asserts
Authorization: Bearer <token>.Authorizationis replaced by the injected one.Authorization.unauthorized namespace → 403.
Additional changes
Probe
/fetchreturns the response body, acceptsheader=<name>:<value>params, and no longer follows redirects (a cross-scheme redirect would hop
between the cleartext and TLS legs). Covered by unit tests; egressmitm rerun green.
New
e2e.EgressInjectHeaderpolicy helper.New
e2e.DeployCredentialProvider+fixtures/credinject: deploys the realprovider manifest with a test Secret and namespace-policy ConfigMap, restarts
the provider so it picks the policy up, cleans up on test end.
CI: new envoy-lane steps after the MITM lanes, gated on
E2E_EGRESS_CREDINJECT=1.Tests pass
Appropriate changes to documentation are included in the PR