GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Add trust boundary support for external accounts. by nbayati · Pull Request #1809 · googleapis/google-auth-library-python

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@nbayati

@nbayati nbayati commented Aug 22, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Implements the trust boundary feature for external accounts (workforce and workload pool identity, and also authorized user)
Note: The design has changed since the first PR that implemented trust boundary for service accounts, and we are no longer required to send the allowed locations header to IAM or STS requests, only to the google API calls. You can review the most up to date design here: go/trust-boundaries-auth-sdk-v2

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nbayati
feat: Add trust boundary support for external accounts.
28b6ef2
@nbayati
nbayati requested review from a team, lsirac and sai-sunder-s August 22, 2025 22:23
@nbayati
Add trust boundary support to external account authorized users.
81c673e
@nbayati
nbayati requested a review from a team August 26, 2025 21:38
@nbayati
Fix lint issues
3741313
sai-sunder-s
sai-sunder-s reviewed Sep 12, 2025
View reviewed changes
Comment thread tests/test_external_account_authorized_user.py

def test_build_trust_boundary_lookup_url(self):
credentials = self.make_credentials()
expected_url = "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/POOL_ID/allowedLocations"

@sai-sunder-s sai-sunder-s Sep 12, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add few more cases:

  • rep instead of global
  • different universe

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@nbayati nbayati Sep 17, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test for a different universe. I'm waiting to hear from the backend team to see if they even accept a rep or if the url has to be global. Depending on the conversation, we can address it in a feature PR to make this feature more future-proof.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tests/test_external_account_authorized_user.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google/auth/impersonated_credentials.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@nbayati
Implement additional unit tests for external account authorized user.
f1747e5
@nbayati
nbayati requested a review from sai-sunder-s September 17, 2025 21:03
@nbayati
fix formatting issue
2610037
sai-sunder-s
sai-sunder-s previously approved these changes Sep 23, 2025
View reviewed changes
lsirac
lsirac previously approved these changes Sep 24, 2025
View reviewed changes
@nbayati
Add a unit test with invalid audiance
4556d14
@nbayati
nbayati dismissed stale reviews from lsirac and sai-sunder-s via 4556d14 October 2, 2025 01:32
@nbayati
nbayati requested a review from a team October 2, 2025 01:32
@nbayati
add missing unit tests
e773927
sai-sunder-s
sai-sunder-s approved these changes Oct 6, 2025
View reviewed changes
@nbayati
Merge branch 'main' into feat/trust-boundary-external-account
fef2746
@nbayati
nbayati enabled auto-merge (squash) October 6, 2025 19:41
@nbayati nbayati added the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 7, 2025
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 7, 2025
@nbayati
nbayati merged commit 36ecb1d into googleapis:main Oct 7, 2025
@release-please release-please Bot mentioned this pull request Oct 7, 2025
chore(main): release 2.42.0 #1819
Merged
This was referenced Oct 15, 2025
chore: librarian release pull request: 20251015T071556Z #1831
Closed
chore: librarian release pull request: 20251015T074446Z #1832
Closed
chore: librarian release pull request: 20251015T075204Z #1833
Closed
chore: librarian release pull request: 20251015T081758Z #1834
Closed
This was referenced Oct 15, 2025
chore: librarian release pull request: 20251015T215403Z #1835
Closed
chore: librarian release pull request: 20251015T223029Z #1836
Closed
chore: librarian release pull request: 20251015T223454Z #1837
Closed
chore: librarian release pull request: 20251015T225628Z #1839
Closed
chore: librarian release pull request: 20251015T233201Z #1840
Closed
chore: librarian release pull request: 20251022T205426Z #1843
Closed
chore: librarian release pull request: 20251022T211713Z #1844
Closed
chore: librarian release pull request: 20251022T212145Z #1845
Closed
chore: librarian release pull request: 20251022T212339Z #1846
Closed
daniel-sanche pushed a commit that referenced this pull request Oct 28, 2025
@release-please
chore(main): release 2.42.0 (#1819)
2f8826d
🤖 I have created a release *beep* *boop*
---


##
[2.42.0](v2.41.1...v2.42.0)
(2025-10-24)


### Features

* Add trust boundary support for external accounts.
([#1809](#1809))
([36ecb1d](36ecb1d))


### Bug Fixes

* Read scopes from ADC json for impersoanted cred
([#1820](#1820))
([62c0fc8](62c0fc8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@Linchin Linchin mentioned this pull request Nov 5, 2025
chore: librarian release pull request: 20251105T223742Z #1861
Closed
This was referenced Nov 20, 2025
[2.42.0] Bug with impersonated account token refresh #1850
Closed
fix: propagate #1809 to oauth.Credentials #1875
Closed
parthea pushed a commit to googleapis/google-cloud-python that referenced this pull request Nov 26, 2025
@release-please
chore(main): release 2.42.0 (#1819)
ec80b4e
🤖 I have created a release *beep* *boop*
---


##
[2.42.0](googleapis/google-auth-library-python@v2.41.1...v2.42.0)
(2025-10-24)


### Features

* Add trust boundary support for external accounts.
([#1809](googleapis/google-auth-library-python#1809))
([36ecb1d](googleapis/google-auth-library-python@36ecb1d))


### Bug Fixes

* Read scopes from ADC json for impersoanted cred
([#1820](googleapis/google-auth-library-python#1820))
([62c0fc8](googleapis/google-auth-library-python@62c0fc8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@kiraksi kiraksi mentioned this pull request Mar 6, 2024
feat: AsyncClient for async query_and_wait for BQ jobs googleapis/python-bigquery#1839
Closed
4 tasks done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@sai-sunder-s sai-sunder-s sai-sunder-s approved these changes
@lsirac lsirac lsirac left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@nbayati @sai-sunder-s @lsirac
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.