test(connector/saml): backport upstream fix for expired OAM test cert - #8
test(connector/saml): backport upstream fix for expired OAM test cert#8Optic00 wants to merge 1 commit into
Conversation
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com> (cherry picked from commit bd5e9b6)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe SAML response fixture was replaced with deterministic Dex OAM values. It now includes fixed timestamps, issuer, identity, audience, email claims, and an assertion-level RSA-SHA256 signature with an embedded certificate. ChangesSAML fixture update
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Overview
Cherry-pick of upstream dexidp/dex commit
bd5e9b6conto this fork's master branch.What this PR does / why we need it
The SAML connector test fixture certificate in
connector/saml/testdataexpired, soTestVerifyUnsignedMessageAndSignedAssertionWithRootXmlNsfails on every run regardless of the change under test.The same failure appears in the fork's last CI run.
This replaces
oam-ca.pemandoam-resp.xmlwith the regenerated fixture from upstream.The new certificate is a self-signed test-only certificate valid until 2125, and the response is re-signed against it.
No connector or production code changes.
Special notes for your reviewer
The commit is a patch-id-equivalent cherry-pick of
bd5e9b6c, with the upstream author'sSigned-off-byand the cherry-pick source line retained.Verified locally: the previously failing test passes, and
go test -race ./...passes for the whole repository.Summary by CodeRabbit