Skip to content

fix: Remove the google-cloud-iam dependency from the agent_engines extra. - #7050

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara_959240124
Aug 12, 2026
Merged

fix: Remove the google-cloud-iam dependency from the agent_engines extra.#7050
copybara-service[bot] merged 1 commit into
mainfrom
copybara_959240124

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

fix: Remove the google-cloud-iam dependency from the agent_engines extra.

Sandboxes.generate_access_token() was the only thing in the SDK using
google-cloud-iam, for a single projects.serviceAccounts.signJwt call. That
call is now made directly against the IAM Credentials REST endpoint using
google-auth, which is already a core requirement, so google-cloud-iam is no
longer installed by pip install google-cloud-aiplatform[agent_engines].

The method signature, the JWT payload and the returned token are unchanged, and
the endpoint is now resolved against the credentials universe domain so it also
works outside googleapis.com.

Note that a failed signing call now raises requests.exceptions.HTTPError
rather than a google.api_core.exceptions type.

@copybara-service
copybara-service Bot requested a review from a team as a code owner August 4, 2026 22:32
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Aug 4, 2026
@copybara-service
copybara-service Bot force-pushed the copybara_959240124 branch 2 times, most recently from 13456d0 to 6b95afe Compare August 12, 2026 18:58
…` extra.

`Sandboxes.generate_access_token()` was the only thing in the SDK using
`google-cloud-iam`, for a single `projects.serviceAccounts.signJwt` call. That
call is now made directly against the IAM Credentials REST endpoint using
`google-auth`, which is already a core requirement, so `google-cloud-iam` is no
longer installed by `pip install google-cloud-aiplatform[agent_engines]`.

The method signature, the JWT payload and the returned token are unchanged, and
the endpoint is now resolved against the credentials universe domain so it also
works outside `googleapis.com`.

Note that a failed signing call now raises `requests.exceptions.HTTPError`
rather than a `google.api_core.exceptions` type.

PiperOrigin-RevId: 963592694
@copybara-service
copybara-service Bot merged commit 25deb44 into main Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. google-contributor size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant