Repository navigation
DEVSDK-3242: Workload Identity Federation - GCP pilot, private preview - #1991
Open
mark-kogan-stripe wants to merge 8 commits into
Open
mark-kogan-stripe wants to merge 8 commits into
mark-kogan-stripe wants to merge 8 commits into
Conversation
mark-kogan-stripe
marked this pull request as ready for review
October 7, 2026 15:31
mark-kogan-stripe
requested review from
jar-stripe
and removed request for
a team
October 7, 2026 15:32
mark-kogan-stripe
force-pushed
the
Oauth-GCP-Separate-Packages
branch
from
October 7, 2026 18:05
cbc9b4a to
73cc08f
Compare
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.
Why?
This PR introduces an alternate way to create a top-level Stripe client, authenticated via GCP instead of a long-lived API key. Rather than relying on a semi-permanent secret that can be leaked or mismanaged, the SDK fetches a short-lived token backed by a public key and the guarantee that the code is running on genuine cloud provider hardware.
The change adds a separate adapter package within this repo that uses the GCECredentials SDK to build an assertion function capable of retrieving web identity tokens. The core stripe package then uses that assertion function to mint an ephemeral key, refreshing it proactively and also on a single 401 as a fallback, for the lifetime of the session. Once constructed, the resulting Stripe client behaves identically to a standard one.
What?
See Also
Original Project Context
Configuration
skip-changefile: This PR is not a user-facing change, so there's no changefile.