Repository navigation
feat(e2e): P2-1b Keycloak federated-login E2E (real upstream, full chain) - #349
Merged
Merged
Conversation
…ain)
- tests/e2e/upstream-oidc/run-e2e.sh: boots Keycloak 26 (start-dev) +
the fulla server against local infra, provisions realm/client/user
via kcadm (runtime-generated throwaway credentials), registers the
provider through the admin CRUD, then drives the complete chain with
curl: authorize dance -> Keycloak login form POST -> code capture ->
POST /api/auth/oidc/{provider}/login -> first-party token pair ->
GET /oauth2/userinfo (claims from Keycloak) -> login-page listing.
PASSes locally end to end (26.7.1 image; KEYCLOAK_IMAGE override for
quay-blocked networks).
- Product fix found by this E2E on its first run: the upstream form
transport used addHeader(content-type) which stacked a second
default header, making Keycloak skip form parsing entirely
(client_not_found); switched to setContentTypeString.
- interop.yml: new upstream-oidc-e2e job (master/release pushes) runs
the script on a fresh runner with its own infra containers.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Purpose
P2-1 batch B: the real-upstream acceptance run for OIDC-in federation — a containerized Keycloak 26 executes the whole registry-driven chain, and the E2E immediately earned its keep by catching a real product bug on its first run.
What lands
tests/e2e/upstream-oidc/run-e2e.sh(+ README): boots Keycloak (start-dev) + fulla-server against local infra, provisions realm/client/user via kcadm (runtime-generated throwaway credentials — nothing credential-like committed), registers the provider through the P2-1a admin CRUD, then drives the complete browser-shaped chain with curl:Local result: PASS end to end (Keycloak 26.7.1;
KEYCLOAK_IMAGEenv for quay-blocked networks; the DB is dropped/re-seeded per run and every upstream secret regenerated from /dev/urandom).Product fix the E2E caught on its first run: the upstream form transport in
IdentityAssemblyusedaddHeader("content-type", ...), which stacked a second default content-type — Keycloak then skipped form parsing entirely (client_not_foundon every token exchange). Switched tosetContentTypeString, which drogon treats as the single authoritative body content type. This is exactly the class of upstream-facing regression the hermetic fakes cannot see.CI: new
upstream-oidc-e2ejob ininterop.yml(master/release pushes): builds the server, starts the script-default infra containers, runs the same script — one green/red signal for the whole federation chain.Verification