connector: add gcloud-iap connector for Google Cloud IAP#4751
Open
alessandro-verzicco wants to merge 1 commit intodexidp:masterfrom
Open
connector: add gcloud-iap connector for Google Cloud IAP#4751alessandro-verzicco wants to merge 1 commit intodexidp:masterfrom
alessandro-verzicco wants to merge 1 commit intodexidp:masterfrom
Conversation
Add a new connector that validates Google Cloud Identity-Aware Proxy (IAP) ES256 JWTs from the X-Goog-IAP-JWT-Assertion header. The connector: - Cryptographically verifies the IAP JWT signature via Google's public JWKS - Extracts user identity (email, subject) from verified JWT claims - Optionally resolves Google Workspace group membership via the Admin Directory API using workload identity (no domain-wide delegation required) - Supports glob-based group filtering with case-insensitive matching - Supports transitive (nested) group membership resolution - Works with both single-domain (domain) and multi-domain (customerID) setups Refs dexidp#4567 Signed-off-by: Alessandro Verzicco <alessandro.verzicco@truecaller.com>
Member
|
Hello, thank you for opening the PR. We are currently not accepting new connectors to upstream - we are figuring out the way to implement external connectors #4578 |
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.
Summary
Adds a new
gcloud-iapconnector that validates Google Cloud Identity-Aware Proxy (IAP) JWTs and optionally resolves Google Workspace group membership.What it does
X-Goog-IAP-JWT-Assertionheader against Google's public JWKS, checking issuer, audience, and expiry.sub,email) to a Dex identity.*@example.com,platform-*@example.com, or exact matches. Case-insensitive. Multiple patterns are OR-ed.domainandcustomerIDscoping.Files changed
connector/gcloudiap/gcloudiap.go— connector implementationconnector/gcloudiap/gcloudiap_test.go— unit testsserver/server.go— registergcloud-iaptype inConnectorsConfigdocs/connectors/gcloud-iap.md— documentationHow to test
groupsFilteranddomain/customerID.Unit tests cover JWT verification (valid, expired, wrong audience, missing header), config validation, glob filtering logic, and URL construction.
Refs #4567