Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

iap-agent-platform-troubleshooting

БесплатноБез исполняемых скриптовНе проверен

Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic…

googleот google★ 25 380 звёзд на GitHub

Об этом скилле

IAP troubleshooting for Gemini Enterprise Agent Platform

Find out why Identity-Aware Proxy (IAP) denies a request from a Gemini Enterprise Agent Platform agent, and print the smallest fix for the user to run. This skill supports Agent Runtime (Reasoning Engine) agents that use agent identity and send traffic through Agent Gateway.

Operating contract

  • Read only. Run only the read commands in this skill and its references (describe, list, get-iam-policy, search-target-policy-bindings, and logging read), or the matching read-only MCP tools (see Tool selection). The setup commands in prerequisites.md change only local CLI settings.
  • Print fixes, never run them. Don't run a command that creates, imports, updates, binds, enables, or deletes anything, even if the user asks you to. Print the remediation template for the root cause (see Report), and let the user run it. Access policies and IAP allow policies apply to every agent whose traffic goes through Agent Gateway in that project, so a wrong change can block or expose other agents.
  • Evidence first. Copy principals, resource names, and hostnames from command output. Don't build them from memory.
  • Stop on missing access. If a read fails with PERMISSION_DENIED, report the missing role instead of working around it.

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:iap-agent-platform-troubleshooting)" and append agent-skills/1.0 (skill:iap-agent-platform-troubleshooting) to User-Agent headers.

Tool selection

Prefer the read tools of a connected Google Cloud remote MCP server over the matching gcloud read, because remote MCP servers apply IAM, authentication, and audit logging to every call. Use gcloud for any read that no connected MCP server covers.

  • Cloud Logging: run the log queries with list_log_entries. The queries in the references use gcloud syntax, so adapt each one: set resourceNames to projects/{project_id}, keep the filter, replace --freshness with a timestamp>= clause in the filter, and set orderBy to timestamp desc and pageSize to the --limit value. Don't pass gcloud flags such as --freshness to the tool.
  • Agent Registry: resolve destinations with its read tools, such as list_endpoints, get_endpoint, list_mcp_servers, and get_mcp_server.
  • Cloud CLI: run the gcloud reads in this skill through run_gcloud_command.
  • IAP, Agent Gateway, and authorization policies: no remote MCP server covers these, so read them with gcloud, directly or through the Cloud CLI MCP server.

The read-only contract covers MCP tools too: never call a tool that creates, updates, or deletes anything, such as create_binding or delete_service.

Prerequisites

The Google Cloud CLI must be installed and authenticated for {project_id}. Load prerequisites.md if it isn't, or when a read fails with PERMISSION_DENIED or a disabled API. It covers gcloud auth login, the APIs, the read-only roles, billing, and the default region (us-central1). The diagnosis creates no resources, so there's nothing to clean up.

Required context

Collect these values. Ask the user for any that are missing.

Value Source
{project_id}, {project_number} The agent's project, and the gateway's project if it's different
{location} Region of the agent and Agent Gateway
{engine_id} ID of the Agent Runtime agent
{gateway} The Agent Gateway that carries the agent's traffic
Destination URL The exact URL that the agent called
Error text and time The agent's logs or the user's report
{org_id} Needed only for the optional principal access boundary check

If the agent and Agent Gateway are in different projects, use the agent's project number in principals. Use the gateway's project for the gateway, its authorization policies and extension, Access policies, and policy bindings. Run the IAP audit query in the gateway's project, and in the agent's project if it returns nothing.

Load topology-agent-gateway.md to confirm the topology, the principal format, the agent log query, and 403 errors during startup. If the agent doesn't run on Agent Runtime behind Agent Gateway, say that the topology isn't supported yet, and stop.

Step 0: Classify the failure

Load audit-logs.md. Run the IAP decision query for the time of the failur

Полный SKILL.md на GitHub

Установить iap-agent-platform-troubleshooting в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/agent-registry.mdreferences/attribution.mdreferences/audit-logs.mdreferences/cel-attributes.mdreferences/gateway-setup.mdreferences/policy-model.mdreferences/prerequisites.mdreferences/remediation-access-policies.mdreferences/remediation-gateway.mdreferences/remediation-registry.mdreferences/remediation-setup.mdreferences/topology-agent-gateway.md

FAQ

Что делает скилл iap-agent-platform-troubleshooting?

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.

Как установить скилл iap-agent-platform-troubleshooting?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл iap-agent-platform-troubleshooting запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить iap-agent-platform-troubleshooting с