[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78JP22K73KK96JH0JNDT5C4":3,"skill-same:01M78JP22K73KK96JH0JNDT5C4":100},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting",null,"Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: iap-agent-platform-troubleshooting\nmetadata:\n  version: \"1.0.0\"\n  category: Security\ndescription: >-\n  Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests\n  from Gemini Enterprise Agent Platform agents that run on Agent Runtime and\n  send traffic through Agent Gateway. Use when an agent request fails\n  with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP\n  egressViaIAP decision with granted false, when IAP audit entries are missing\n  while debugging agent egress, or when Access policies, IAP allow policies,\n  policy bindings, or Agent Registry entries might block agent egress. Don't\n  use for Gemini model IAM permission errors (such as\n  aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime\n  deployment or 500 errors (use agent-platform-troubleshooting instead). Don't\n  use for setting up, creating, or connecting an Agent Gateway, or for IAP web\n  apps, IAP TCP forwarding, or SSH.\n---\n\n# IAP troubleshooting for Gemini Enterprise Agent Platform\n\nFind out why Identity-Aware Proxy (IAP) denies a request from a Gemini\nEnterprise Agent Platform agent, and print the smallest fix for the\nuser to run.\nThis skill supports Agent Runtime (Reasoning Engine) agents that use agent\nidentity and send traffic through Agent Gateway.\n\n## Operating contract\n\n-   **Read only.** Run only the read commands in this skill and its\n    references (`describe`, `list`, `get-iam-policy`,\n    `search-target-policy-bindings`, and `logging read`), or the matching\n    read-only MCP tools (see [Tool selection](#tool-selection)). The setup\n    commands in [prerequisites.md](references\u002Fprerequisites.md) change only\n    local CLI settings.\n-   **Print fixes, never run them.** Don't run a command that creates,\n    imports, updates, binds, enables, or deletes anything, even if the user\n    asks you to. Print the remediation template for the root cause (see\n    [Report](#report)), and let the user run it. Access policies and IAP allow\n    policies apply to every agent whose traffic goes through Agent Gateway in\n    that project, so a wrong change can block or expose other agents.\n-   **Evidence first.** Copy principals, resource names, and hostnames from\n    command output. Don't build them from memory.\n-   **Stop on missing access.** If a read fails with `PERMISSION_DENIED`,\n    report the missing role instead of working around it.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:iap-agent-platform-troubleshooting)\"`\nand append `agent-skills\u002F1.0 (skill:iap-agent-platform-troubleshooting)` to\n`User-Agent` headers.\n\n## Tool selection\n\nPrefer the read tools of a connected Google Cloud remote MCP server over the\nmatching `gcloud` read, because remote MCP servers apply IAM, authentication,\nand audit logging to every call. Use `gcloud` for any read that no connected\nMCP server covers.\n\n-   **Cloud Logging:** run the log queries with `list_log_entries`. The\n    queries in the references use `gcloud` syntax, so adapt each one: set\n    `resourceNames` to `projects\u002F{project_id}`, keep the filter, replace\n    `--freshness` with a `timestamp>=` clause in the filter, and set\n    `orderBy` to `timestamp desc` and `pageSize` to the `--limit` value.\n    Don't pass `gcloud` flags such as `--freshness` to the tool.\n-   **Agent Registry:** resolve destinations with its read tools, such as\n    `list_endpoints`, `get_endpoint`, `list_mcp_servers`, and\n    `get_mcp_server`.\n-   **Cloud CLI:** run the `gcloud` reads in this skill through\n    `run_gcloud_command`.\n-   **IAP, Agent Gateway, and authorization policies:** no remote MCP server\n    covers these, so read them with `gcloud`, directly or through the Cloud\n    CLI MCP server.\n\nThe read-only contract covers MCP tools too: never call a tool that creates,\nupdates, or deletes anything, such as `create_binding` or `delete_service`.\n\n## Prerequisites\n\nThe Google Cloud CLI must be\n[installed](https:\u002F\u002Fdocs.cloud.google.com\u002Fsdk\u002Fdocs\u002Finstall-sdk.md.txt) and\nauthenticated for `{project_id}`. Load\n[prerequisites.md](references\u002Fprerequisites.md) if it isn't, or when a read\nfails with `PERMISSION_DENIED` or a disabled API. It covers\n`gcloud auth login`, the APIs, the read-only roles, billing, and the default\nregion (`us-central1`). The diagnosis creates no resources, so there's nothing\nto clean up.\n\n## Required context\n\nCollect these values. Ask the user for any that are missing.\n\n| Value | Source |\n| :--- | :--- |\n| `{project_id}`, `{project_number}` | The agent's project, and the gateway's project if it's different |\n| `{location}` | Region of the agent and Agent Gateway |\n| `{engine_id}` | ID of the Agent Runtime agent |\n| `{gateway}` | The Agent Gateway that carries the agent's traffic |\n| Destination URL | The exact URL that the agent called |\n| Error text and time | The agent's logs or the user's report |\n| `{org_id}` | Needed only for the optional principal access boundary check |\n\nIf the agent and Agent Gateway are in different projects, use the agent's\nproject number in principals. Use the gateway's project for the gateway, its\nauthorization policies and extension, Access policies, and policy bindings. Run\nthe IAP audit query in the gateway's project, and in the agent's project if it\nreturns nothing.\n\nLoad [topology-agent-gateway.md](references\u002Ftopology-agent-gateway.md) to\nconfirm the topology, the principal format, the agent log query, and 403\nerrors during startup. If the agent doesn't run on Agent Runtime behind Agent\nGateway, say that the topology isn't supported yet, and stop.\n\n## Step 0: Classify the failure\n\nLoad [audit-logs.md](references\u002Faudit-logs.md). Run the IAP decision query for\nthe time of the failure, and match the entry to the request by principal,\ndestination, and time. Use the first row that matches. An IAP entry outranks\nthe error text, because the entry records the decision itself.\n\n| Signal | Meaning | Next |\n| :--- | :--- | :--- |\n| IAP entry with `granted: false`, not dry run | IAP denied the request | Step 1, then Steps 2-4 |\n| IAP entry with `dryRun: true` or `iamEnforcementMode: DRY_RUN` | IAP logged the decision but didn't block the request. A 403 comes from the gateway or the destination | Step 1, then Steps 2-4: find the source of any 403, and whether IAP would deny the request once enforced |\n| IAP entry with `granted: true` | IAP allowed the request | Step 2, then the destination |\n| No IAP entry, and the error is an IAM permission error on a model or Agent Platform API call, such as `aiplatform.endpoints.predict` denied | Not an IAP egress denial | Stop, and name `agent-platform-troubleshooting` |\n| No IAP entry for the request | Data Access audit logs are off, or the gateway denied the request before IAP | Step 1 (logs check), then Step 2 |\n\n## Step 1: Check telemetry\n\n1.  Run the Data Access check in [audit-logs.md](references\u002Faudit-logs.md). If\n    the logs are off, explain that past requests weren't recorded, print the\n    \"Enable Data Access audit logs for IAP\" template, and stop until the user\n    reproduces the failure.\n2.  From the matching entry, record `principalSubject`, the destination, the\n    policy version, and the CEL evaluation details if the entry has them. Read\n    each from the field names in the fields table of\n    [audit-logs.md](references\u002Faudit-logs.md), because entries use different\n    layouts. The destination is `metadata.destination` when it's present, not\n    `authorizationInfo[].resource`, which can name the gateway.\n3.  If the entry has `metadata.destination.unregistered`, or\n    `audited_resource_name` is `unregisteredResource` or ends in\n    `unregisteredEndpoint`, the destination counts as unregistered: the hostname\n    isn't registered, or, for an MCP server, the called tool isn't in its tool\n    spec (see [agent-registry.md](references\u002Fagent-registry.md)). Keep that for\n    Step 4.\n\n## Step 2: Check the gateway chain\n\nLoad [gateway-setup.md](references\u002Fgateway-setup.md). Read the gateway, its\nauthorization policies, and its authorization extension.\n\n-   If no authorization policy with `policyProfile: REQUEST_AUTHZ` lists the\n    gateway in `target.resources`, the extension isn't executed and no IAP\n    entry exists. That's the root cause.\n-   Read the extension that the policy names, not the one you expect. Its\n    `service` must be `iap.googleapis.com`. Record `metadata.iapPolicyVersion`,\n    `metadata.iamEnforcementMode`, and `failOpen`, because they decide which\n    policies IAP evaluates, whether it blocks, and whether a request passes\n    when the call to IAP fails or times out.\n\n## Step 3: Check policies and bindings\n\nLoad [policy-model.md](references\u002Fpolicy-model.md), and use the section for the\nversion from Step 2.\n\n-   **V2 (Access policies):** read every policy bound to the project or the\n    gateway, because a deny rule in any of them wins and a policy without a\n    binding isn't enforced.\n-   **V1 (IAP allow policies):** look for `roles\u002Fiap.egressor` granted to the\n    agent's principal, or to a principal set that contains it, in the\n    registry-wide policy and in the destination's own policy. A resource\n    inherits the registry-wide grants, so a grant at either level applies.\n-   **Allowed but still denied:** check principal access boundary policies\n    (needs `{org_id}`) and principal set membership (see\n    [topology-agent-gateway.md](references\u002Ftopology-agent-gateway.md)).\n\n## Step 4: Check the rule match\n\nLoad [cel-attributes.md](references\u002Fcel-attributes.md) and\n[agent-registry.md](references\u002Fagent-registry.md).\n\n1.  **Principal:** the rule lists the agent's exact `principal:\u002F\u002F` identifier,\n    or a `principalSet:\u002F\u002F` that contains the agent: same trust domain, and the\n    agent's project number or platform attribute, as listed in the principal set\n    table of [topology-agent-gateway.md](references\u002Ftopology-agent-gateway.md).\n    If `principalSubject` holds a SPIFFE ID, build the identifier as described\n    there. A project ID in place of the project number, in either form, or a URN\n    identifier, never matches.\n2.  **Destination:** resolve the URL in Agent Registry.\n    -   Registered: the condition names the registry resource with `==` or\n        `in`, exactly as the audit entry's `resource_id` or the Agent Registry\n        list output shows it.\n    -   Unregistered, Access policies (V2) only: the condition matches the\n        host, the path, and the method (see\n        [cel-attributes.md](references\u002Fcel-attributes.md)). IAP allow policies\n        (V1) can't allow an unregistered destination: register it, and grant\n        `roles\u002Fiap.egressor` only if no registry-wide grant covers the agent.\n3.  **Condition:** for V2, use the CEL evaluation details from the audit entry\n    to find the clause that failed. If the entry has no evaluation details,\n    compare the entry's `resource_id` or `unregistered` values with each\n    literal in the condition yourself.\n\n## Report\n\nLoad only the remediation reference for the root cause:\n\n| Root cause | Load |\n| :--- | :--- |\n| Data Access audit logs are off, or an API is disabled | [remediation-setup.md](references\u002Fremediation-setup.md) |\n| The authorization policy doesn't target the gateway, or calls the wrong extension | [remediation-gateway.md](references\u002Fremediation-gateway.md) |\n| An Access policy (V2) rule doesn't match or a DENY rule matches, a binding is missing, or the organization policy constraint blocks the binding | [remediation-access-policies.md](references\u002Fremediation-access-policies.md) |\n| An IAP allow policy (V1) grant is missing, the destination or a hostname variant isn't registered, or an MCP tool is missing from the server's tool spec | [remediation-registry.md](references\u002Fremediation-registry.md) |\n\nUse this template:\n\n```markdown\n## Root cause\n{root_cause_quoting_the_mismatched_value}\n\n## Fix (you run this)\n{why_smallest_change}\n{filled_in_template}\nRequired role: {role}\n\n## Wait time\n{wait_time}\n\n## Verify\n- [ ] Reproduce the request.\n- [ ] A new IAP audit entry shows granted: true for {principal} and {destination_url}.\n- [ ] {read_command_that_confirms_the_change}\n```\n\nIn dry run, IAP blocks nothing yet. Say so in the root cause, and say that its\nlogged denials are the requests that enforcement would block, because users\nrun dry run to find these requests before they enforce. If the user needs the\nrequest to succeed and the policies wouldn't allow it once enforced, print\nthat fix under \"Before you turn on enforcement\". Verify it with a read\ncommand, because a dry-run entry's `granted` value doesn't show whether a\npolicy allows the request.\n\nIf the evidence doesn't prove one root cause, list what you checked, what's\nstill unknown, and the next read command. Don't print a fix.\n\n## Validation loop\n\nBefore you send the report, check every item. If one fails, fix the report\nand check again.\n\n-   [ ] No command or MCP tool call that you made changed a resource. Every\n    fix is printed for the user.\n-   [ ] The fix is additive. It keeps existing bindings, rules, and clauses.\n-   [ ] If a DENY rule causes the denial, the report says that the block might\n    be deliberate and offers any change to that rule only as an option for\n    the rule's owner to approve.\n-   [ ] The principal is the agent's exact `principal:\u002F\u002F` identifier, in the\n    Agent Runtime format.\n-   [ ] Registry resource names in conditions use the project ID, copied from\n    the audit entry's `resource_id` or from Agent Registry list output.\n-   [ ] A binding fix targets the project that contains Agent Gateway.\n-   [ ] Hostnames match exactly, every variant is covered, and methods are in\n    the request's case, such as `'GET'`.\n-   [ ] The fix allows only the hosts, paths, and methods that the logs show\n    the agent calling, and keeps restrictions that the rule already has, such\n    as a method limit, because they're often deliberate. If the user asks to\n    loosen a rule, say whether the logs show that it's needed. Never print a\n    rule that's looser than the logs require.\n-   [ ] V1 fixes use `roles\u002Fiap.egressor`, never\n    `roles\u002Fiap.tunnelResourceAccessor`, which grants IAP TCP forwarding, not\n    egress.\n-   [ ] No fix turns off IAP or switches enforcement to dry run, because that\n    removes egress protection for every agent behind the gateway.\n-   [ ] Every placeholder is filled in from command output.\n-   [ ] Commands printed for the user don't include\n    `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` or the attribution `User-Agent`\n    string, because the tag is only for commands you run yourself (see\n    [attribution.md](references\u002Fattribution.md)).\n","# IAP troubleshooting for Gemini Enterprise Agent Platform\n\nFind out why Identity-Aware Proxy (IAP) denies a request from a Gemini\nEnterprise Agent Platform agent, and print the smallest fix for the\nuser to run.\nThis skill supports Agent Runtime (Reasoning Engine) agents that use agent\nidentity and send traffic through Agent Gateway.\n\n## Operating contract\n\n-   **Read only.** Run only the read commands in this skill and its\n    references (`describe`, `list`, `get-iam-policy`,\n    `search-target-policy-bindings`, and `logging read`), or the matching\n    read-only MCP tools (see [Tool selection](#tool-selection)). The setup\n    commands in [prerequisites.md](references\u002Fprerequisites.md) change only\n    local CLI settings.\n-   **Print fixes, never run them.** Don't run a command that creates,\n    imports, updates, binds, enables, or deletes anything, even if the user\n    asks you to. Print the remediation template for the root cause (see\n    [Report](#report)), and let the user run it. Access policies and IAP allow\n    policies apply to every agent whose traffic goes through Agent Gateway in\n    that project, so a wrong change can block or expose other agents.\n-   **Evidence first.** Copy principals, resource names, and hostnames from\n    command output. Don't build them from memory.\n-   **Stop on missing access.** If a read fails with `PERMISSION_DENIED`,\n    report the missing role instead of working around it.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:iap-agent-platform-troubleshooting)\"`\nand append `agent-skills\u002F1.0 (skill:iap-agent-platform-troubleshooting)` to\n`User-Agent` headers.\n\n## Tool selection\n\nPrefer the read tools of a connected Google Cloud remote MCP server over the\nmatching `gcloud` read, because remote MCP servers apply IAM, authentication,\nand audit logging to every call. Use `gcloud` for any read that no connected\nMCP server covers.\n\n-   **Cloud Logging:** run the log queries with `list_log_entries`. The\n    queries in the references use `gcloud` syntax, so adapt each one: set\n    `resourceNames` to `projects\u002F{project_id}`, keep the filter, replace\n    `--freshness` with a `timestamp>=` clause in the filter, and set\n    `orderBy` to `timestamp desc` and `pageSize` to the `--limit` value.\n    Don't pass `gcloud` flags such as `--freshness` to the tool.\n-   **Agent Registry:** resolve destinations with its read tools, such as\n    `list_endpoints`, `get_endpoint`, `list_mcp_servers`, and\n    `get_mcp_server`.\n-   **Cloud CLI:** run the `gcloud` reads in this skill through\n    `run_gcloud_command`.\n-   **IAP, Agent Gateway, and authorization policies:** no remote MCP server\n    covers these, so read them with `gcloud`, directly or through the Cloud\n    CLI MCP server.\n\nThe read-only contract covers MCP tools too: never call a tool that creates,\nupdates, or deletes anything, such as `create_binding` or `delete_service`.\n\n## Prerequisites\n\nThe Google Cloud CLI must be\n[installed](https:\u002F\u002Fdocs.cloud.google.com\u002Fsdk\u002Fdocs\u002Finstall-sdk.md.txt) and\nauthenticated for `{project_id}`. Load\n[prerequisites.md](references\u002Fprerequisites.md) if it isn't, or when a read\nfails with `PERMISSION_DENIED` or a disabled API. It covers\n`gcloud auth login`, the APIs, the read-only roles, billing, and the default\nregion (`us-central1`). The diagnosis creates no resources, so there's nothing\nto clean up.\n\n## Required context\n\nCollect these values. Ask the user for any that are missing.\n\n| Value | Source |\n| :--- | :--- |\n| `{project_id}`, `{project_number}` | The agent's project, and the gateway's project if it's different |\n| `{location}` | Region of the agent and Agent Gateway |\n| `{engine_id}` | ID of the Agent Runtime agent |\n| `{gateway}` | The Agent Gateway that carries the agent's traffic |\n| Destination URL | The exact URL that the agent called |\n| Error text and time | The agent's logs or the user's report |\n| `{org_id}` | Needed only for the optional principal access boundary check |\n\nIf the agent and Agent Gateway are in different projects, use the agent's\nproject number in principals. Use the gateway's project for the gateway, its\nauthorization policies and extension, Access policies, and policy bindings. Run\nthe IAP audit query in the gateway's project, and in the agent's project if it\nreturns nothing.\n\nLoad [topology-agent-gateway.md](references\u002Ftopology-agent-gateway.md) to\nconfirm the topology, the principal format, the agent log query, and 403\nerrors during startup. If the agent doesn't run on Agent Runtime behind Agent\nGateway, say that the topology isn't supported yet, and stop.\n\n## Step 0: Classify the failure\n\nLoad [audit-logs.md](references\u002Faudit-logs.md). Run the IAP decision query for\nthe time of the failure, and match the entry to the request by principal,\ndestination, and time. Use the first row that matches. An IAP entry outranks\nthe error text, because the entry records the decision itself.\n\n| Signal | Meaning | Next |\n| :--- | :--- | :--- |\n| IAP entry with `granted: false`, not dry run | IAP denied the request | Step 1, then Steps 2-4 |\n| IAP entry with `dryRun: true` or `iamEnforcementMode: DRY_RUN` | IAP logged the decision but didn't block the request. A 403 comes from the gateway or the destination | Step 1, then Steps 2-4: find the source of any 403, and whether IAP would deny the request once enforced |\n| IAP entry with `granted: true` | IAP allowed the request | Step 2, then the destination |\n| No IAP entry, and the error is an IAM permission error on a model or Agent Platform API call, such as `aiplatform.endpoints.predict` denied | Not an IAP egress denial | Stop, and name `agent-platform-troubleshooting` |\n| No IAP entry for the request | Data Access audit logs are off, or the gateway denied the request before IAP | Step 1 (logs check), then Step 2 |\n\n## Step 1: Check telemetry\n\n1.  Run the Data Access check in [audit-logs.md](references\u002Faudit-logs.md). If\n    the logs are off, explain that past requests weren't recorded, print the\n    \"Enable Data Access audit logs for IAP\" template, and stop until the user\n    reproduces the failure.\n2.  From the matching entry, record `principalSubject`, the destination, the\n    policy version, and the CEL evaluation details if the entry has them. Read\n    each from the field names in the fields table of\n    [audit-logs.md](references\u002Faudit-logs.md), because entries use different\n    layouts. The destination is `metadata.destination` when it's present, not\n    `authorizationInfo[].resource`, which can name the gateway.\n3.  If the entry has `metadata.destination.unregistered`, or\n    `audited_resource_name` is `unregisteredResource` or ends in\n    `unregisteredEndpoint`, the destination counts as unregistered: the hostname\n    isn't registered, or, for an MCP server, the called tool isn't in its tool\n    spec (see [agent-registry.md](references\u002Fagent-registry.md)). Keep that for\n    Step 4.\n\n## Step 2: Check the gateway chain\n\nLoad [gateway-setup.md](references\u002Fgateway-setup.md). Read the gateway, its\nauthorization policies, and its authorization extension.\n\n-   If no authorization policy with `policyProfile: REQUEST_AUTHZ` lists the\n    gateway in `target.resources`, the extension isn't executed and no IAP\n    entry exists. That's the root cause.\n-   Read the extension that the policy names, not the one you expect. Its\n    `service` must be `iap.googleapis.com`. Record `metadata.iapPolicyVersion`,\n    `metadata.iamEnforcementMode`, and `failOpen`, because they decide which\n    policies IAP evaluates, whether it blocks, and whether a request passes\n    when the call to IAP fails or times out.\n\n## Step 3: Check policies and bindings\n\nLoad [policy-model.md](references\u002Fpolicy-model.md), and use the section for the\nversion from Step 2.\n\n-   **V2 (Access policies):** read every policy bound to the project or the\n    gateway, because a deny rule in any of them wins and a policy without a\n    binding isn't enforced.\n-   **V1 (IAP allow policies):** look for `roles\u002Fiap.egressor` granted to the\n    agent's principal, or to a principal set that contains it, in the\n    registry-wide policy and in the destination's own policy. A resource\n    inherits the registry-wide grants, so a grant at either level applies.\n-   **Allowed but still denied:** check principal access boundary policies\n    (needs `{org_id}`) and principal set membership (see\n    [topology-agent-gateway.md](references\u002Ftopology-agent-gateway.md)).\n\n## Step 4: Check the rule match\n\nLoad [cel-attributes.md](references\u002Fcel-attributes.md) and\n[agent-registry.md](references\u002Fagent-registry.md).\n\n1.  **Principal:** the rule lists the agent's exact `principal:\u002F\u002F` identifier,\n    or a `principalSet:\u002F\u002F` that contains the agent: same trust domain, and the\n    agent's project number or platform attribute, as listed in the principal set\n    table of [topology-agent-gateway.md](references\u002Ftopology-agent-gateway.md).\n    If `principalSubject` holds a SPIFFE ID, build the identifier as described\n    there. A project ID in place of the project number, in either form, or a URN\n    identifier, never matches.\n2.  **Destination:** resolve the URL in Agent Registry.\n    -   Registered: the condition names the registry resource with `==` or\n        `in`, exactly as the audit entry's `resource_id` or the Agent Registry\n        list output shows it.\n    -   Unregistered, Access policies (V2) only: the condition matches the\n        host, the path, and the method (see\n        [cel-attributes.md](references\u002Fcel-attributes.md)). IAP allow policies\n        (V1) can't allow an unregistered destination: register it, and grant\n        `roles\u002Fiap.egressor` only if no registry-wide grant covers the agent.\n3.  **Condition:** for V2, use the CEL evaluation details from the audit entry\n    to find the clause that failed. If the entry has no evaluation details,\n    compare the entry's `resource_id` or `unregistered` values with each\n    literal in the condition yourself.\n\n## Report\n\nLoad only the remediation reference for the root cause:\n\n| Root cause | Load |\n| :--- | :--- |\n| Data Access audit logs are off, or an API is disabled | [remediation-setup.md](references\u002Fremediation-setup.md) |\n| The authorization policy doesn't target the gateway, or calls the wrong extension | [remediation-gateway.md](references\u002Fremediation-gateway.md) |\n| An Access policy (V2) rule doesn't match or a DENY rule matches, a binding is missing, or the organization policy constraint blocks the binding | [remediation-access-policies.md](references\u002Fremediation-access-policies.md) |\n| An IAP allow policy (V1) grant is missing, the destination or a hostname variant isn't registered, or an MCP tool is missing from the server's tool spec | [remediation-registry.md](references\u002Fremediation-registry.md) |\n\nUse this template:\n\n```markdown\n## Root cause\n{root_cause_quoting_the_mismatched_value}\n\n## Fix (you run this)\n{why_smallest_change}\n{filled_in_template}\nRequired role: {role}\n\n## Wait time\n{wait_time}\n\n## Verify\n- [ ] Reproduce the request.\n- [ ] A new IAP audit entry shows granted: true for {principal} and {destination_url}.\n- [ ] {read_command_that_confirms_the_change}\n```\n\nIn dry run, IAP blocks nothing yet. Say so in the root cause, and say that its\nlogged denials are the requests that enforcement would block, because users\nrun dry run to find these requests before they enforce. If the user needs the\nrequest to succeed and the policies wouldn't allow it once enforced, print\nthat fix under \"Before you turn on enforcement\". Verify it with a read\ncommand, because a dry-run entry's `granted` value doesn't show whether a\npolicy allows the request.\n\nIf the evidence doesn't prove one root cause, list what you checked, what's\nstill unknown, and the next read command. Don't print a fix.\n\n## Validation loop\n\nBefore you send the report, check every item. If one fails, fix the report\nand check again.\n\n-   [ ] No command or MCP tool call that you made changed a resource. Every\n    fix is printed for the user.\n-   [ ] The fix is additive. It keeps existing bindings, rules, and clauses.\n-   [ ] If a DENY rule causes the denial, the report says that the block might\n    be deliberate and offers any change to that rule only as an option for\n    the rule's owner to approve.\n-   [ ] The principal is the agent's exact `principal:\u002F\u002F` identifier, in the\n    Agent Runtime format.\n-   [ ] Registry resource names in conditions use the project ID, copied from\n    the audit entry's `resource_id` or from Agent Registry list output.\n-   [ ] A binding fix targets the project that contains Agent Gateway.\n-   [ ] Hostnames match exactly, every variant is covered, and methods are in\n    the request's case, such as `'GET'`.\n-   [ ] The fix allows only the hosts, paths, and methods that the logs show\n    the agent calling, and keeps restrictions that the rule already has, such\n    as a method limit, because they're often deliberate. If the user asks to\n    loosen a rule, say whether the logs show that it's needed. Never print a\n    rule that's looser than the logs require.\n-   [ ] V1 fixes use `roles\u002Fiap.egressor`, never\n    `roles\u002Fiap.tunnelResourceAccessor`, which grants IAP TCP forwarding, not\n    egress.\n-   [ ] No fix turns off IAP or switches enforcement to dry run, because that\n    removes egress protection for every agent behind the gateway.\n-   [ ] Every placeholder is filled in from command output.\n-   [ ] Commands printed for the user don't include\n    `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` or the attribution `User-Agent`\n    string, because the tag is only for commands you run yourself (see\n    [attribution.md](references\u002Fattribution.md)).\n",{"name":5,"metadata":24,"description":7},{"version":25,"category":26},"1.0.0","Security","main","4c6800d20130b5a3233e414609f1241013cec8cc","skills\u002Fcloud\u002Fiap-agent-platform-troubleshooting",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add google\u002Fskills --skill iap-agent-platform-troubleshooting",{"tool":42,"command":43},"bunx","bunx skills add google\u002Fskills --skill iap-agent-platform-troubleshooting",{"tool":45,"command":46},"pnpm","pnpm dlx skills add google\u002Fskills --skill iap-agent-platform-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",true,[50,56,60,64,68,72,76,80,84,88,92,96],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fagent-registry.md","REFERENCE","参考文档",6291,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fagent-registry.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fattribution.md",1950,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fattribution.md",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Faudit-logs.md",7845,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Faudit-logs.md",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fcel-attributes.md",7621,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fcel-attributes.md",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fgateway-setup.md",7066,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fgateway-setup.md",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Fpolicy-model.md",9142,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fpolicy-model.md",{"path":77,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fprerequisites.md",4307,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fprerequisites.md",{"path":81,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fremediation-access-policies.md",5909,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fremediation-access-policies.md",{"path":85,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fremediation-gateway.md",3624,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fremediation-gateway.md",{"path":89,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fremediation-registry.md",5548,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fremediation-registry.md",{"path":93,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fremediation-setup.md",2167,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Fremediation-setup.md",{"path":97,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Ftopology-agent-gateway.md",7640,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002Freferences\u002Ftopology-agent-gateway.md",[101,108,115,122,129,136],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":19},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":19},"01M78JJJ5CSDTKX3HRH34K37Z8","bigquery-migration-validator","Validates that tables migrated to BigQuery match their source (Teradata, Snowflake, Oracle, Redshift, Databricks, PostgreSQL, SQL Server, MySQL, MariaDB, Hive, Impala, Vertica) with the BigQuery Migration Service (BQMS) validation tool: schema and data type comparison, column aggregate comparison, and row-level data comparison. Use when generating or editing a validation config, running a validation, choosing sampling or partitioning, fixing connection or driver errors, or investigating validation results in BigQuery and Cloud Storage to decide which mismatches to fix. Don't use for SQL translation (use bigquery-migration-sql-translator), extracting source database catalog metadata or query logs, generating SQL scripts (such as COPY INTO) or exporting or unloading source tables to Parquet on Cloud Storage, loading staged files into BigQuery (such as bq load), or general BigQuery query failures and tuning (use bigquery-troubleshooting or bigquery-optimization).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fbigquery-migration-validator\u002FSKILL.md",[],[]]