Add a GCP Vertex AI connection
Connect Google Cloud (GCP) Vertex AI to AI Control Tower using a service account and OAuth 2.0 JWT Bearer authentication, so AI agent containment using kill switch protocol can reach and deactivate agents running on GCP Vertex AI.
Before you begin
Confirm the following:
- A GCP project with the Vertex AI API enabled and IAM permissions to create a service account.
- A GCP service account granted three IAM roles.
| Role | Scope | Purpose |
|---|---|---|
roles/iam.denyAdmin |
Organization or folder level only | Create and delete the Deny policy used to contain an agent. |
roles/aiplatform.viewer |
Project level | Read the agent's identity from Vertex AI. |
roles/resourcemanager.projectViewer |
Project level | Resolve the GCP project ID. |
- Download a JSON key for the service account. In the Google Cloud console, go to , select the service account, then select Add key > Create new key and choose JSON as the key type. You'll need the
private_key,private_key_id,client_email, andtoken_urivalues from this file in the steps below. - For each ADK-based AI agent you want containment to cover, enable Agent Identity. Create an .agent_engine_config.json file with
{ "identity_type": "AGENT_IDENTITY" }and follow Create and deploy an agent with Agent CLI and Agent Identity to deploy the agent with a unique identity.Important:AI agent containment is supported only for GCP agents that have a unique agent identity configured this way.
Role required: creating the OAuth, JWT, and certificate records in steps 1–8 below typically requires an instance admin or integration admin role. Creating the security connector in steps 9–11 requires sn_ai_governance.ai_steward.
About this task
Google Cloud (GCP) Vertex AI authenticates using OAuth 2.0 with a JWT Bearer grant, which requires more setup than an access-key based connection: you convert the service account key into a Java Key Store, build a chain of OAuth and JWT records from it, and then attach the resulting Connection & Credential Alias to the security connector.
Procedure
Result
The connector appears on the Established connections sub-tab. AI Control Tower can now use this connection to apply AI agent containment using kill switch protocol to Vertex AI agents that have a unique agent identity configured.
To verify the setup:
- Confirm the HTTP connection appears in the Connections related list on the Connection & Credential Alias.
- Confirm the OAuth 2.0 Credentials record can retrieve a token using Get OAuth Token.
- Confirm the connector appears under Established connections on the Security tab.
To deploy the AI agent, see Create and deploy an agent with Agent CLI and Agent Identity in Google documentation.