This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Fix Impersonation Under Access Token Method - #370
Open
tgoodsell-tempus wants to merge 3 commits into
Open
Conversation
|
Thank you so much @tgoodsell-tempus this fixed my issues after loosing SEVERAL HOURS figuring out what was not working. I have an AWS IAM Role that is impersonating a ServiceAccount using Workload Identity Federation which then impersonates a ServiceAccount that manages Google Workspace so figuring this out was kind of hard until Google pointed me to this PR 🙏 . @SarahFrench @megan07 Can we have this merged, please? |
|
@sheneska do you think we can merge this? Thanks! 🙏 |
|
Just spent a few hours debugging exactly this issue (github wif -> gcp project sa -> workspace access) til I found this PR. Can we please please get this merged? Or is there any active fork fixing this? |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
What: When using the current configurations to do a
impersonated_user_emailusing a definedaccess_token, the call is using the under the hoodsignJwtmethod and improperly setting up the impersonated token. This switches to the better supportedgenerateAccessTokenAPI method.Why: Even with the
iam.serviceAccountTokenCreatorrole applied, thesignJwtmethod is providing a 403 error when attempting this operation. However, using thegenerateAccessTokenmethod succeeds as expected. Ultimately this produces the same access token required for the client.