Repository navigation
fix: keep universe domain from source credentials in impersonated credentials - #3304
Merged
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request ensures that an impersonated service account credential correctly inherits the universe domain from its source credential when the top-level universe domain is null, empty, or whitespace. This is achieved by updating the check in CredentialFactory.CreateImpersonatedServiceAccountCredential and adding corresponding unit tests and test data. I have no further feedback to provide as the changes are well-implemented and covered by tests.
amanda-tarafa
approved these changes
Nov 24, 2026
amanda-tarafa
left a comment
Contributor
There was a problem hiding this comment.
LGTM as is, but either here or in a follow up PR can you confirm we are covering all bases, with tests:
- Both the inner and outer universe domains are set to the same value. Good.
- Both the inner and outer universe domains are set, but to different values. Fail on credential creation.
- Only the inner one is set, use that one.
- Only the outer one is set, use that one.
- None is set, use default
googleapis.com
efevans
reviewed
Nov 24, 2026
robertvoinescu-work
force-pushed
the
fix/b588886791
branch
from
November 24, 2026 19:39
23c8227 to
7b0d810
Compare
efevans
approved these changes
Nov 24, 2026
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.
b/588886791