Skip to content

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

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara_959240124
Open

fix: Remove the google-cloud-iam dependency from the agent_engines extra.#7050
copybara-service[bot] wants to merge 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.

…` 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: 959240124
@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
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