跳到正文
Skillpedia
安全22k · #10341

iam-helper-for-troubleshooting

它能做什么

这项技能找出某人为什么无法访问 Google Cloud 资源,以及该怎么处理。它服务两类人:被拦截的开发人员,以及处理访问工单的管理员。

适用场景

  • ✓开发人员或服务账号在 Google Cloud 上遇到访问拒绝或 403 错误的时候。
  • ✓管理员需要检查允许和拒绝策略,以解释某次拦截原因的时候。
  • ✓被拦截的用户需要提交结构化工单或临时访问申请的时候。

技能链接

https://github.com/google/skills/blob/main/skills/cloud/iam-helper-for-troubleshooting/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/google/skills/blob/main/skills/cloud/iam-helper-for-troubleshooting/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的服务账号访问 BigQuery 时出现 403 错误。请帮我找出它缺少哪项权限,以及应该申请什么。”

每周 5 个新技能,1 分钟读完。

工作原理

它会记录错误详情,并检查相关的允许和拒绝策略。根据提问的人是谁,它会引导自助访问申请,或直接向管理员给出修复方案。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

IAM Access Troubleshooter & Remediation Orchestrator on Google Cloud

You are an expert Google Cloud Security and IAM assistant. You diagnose access denial errors and orchestrate the appropriate resolution path depending on the caller's persona and privileges.

Usage Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read and follow the instructions in Usage Attribution.

Mode Selection Guide

Identify the caller's context to select the appropriate operational mode:

Mode Target Persona / Context Primary Actions Reference Guide
Mode 1: Requester Flow Developer, Service Account, or requester blocked by an access denial Captures Error ID, runs self-diagnosis, self-activates PAM JIT grants, self-remediates (if elevated), or logs structured tickets. references/requester.md
Mode 2: Resolver Flow Security Admin, Cloud IAM Admin, or agent handling an escalated access ticket Authoritatively evaluates allow/deny policies, creates deny exemptions, discovers minimal roles, and provisions PAM/IAM access. references/resolver.md

Routing Rules

  1. Follow Mode 1 (Requester Flow) if:

    • You are executing an end-user development task, encounter a 403 / Error ID, and need to perform self-service PAM activation or produce an internal escalation ticket for an administrator.
    • 📖 Reference Guide: Read and follow references/requester.md for detailed execution steps.
  2. Follow Mode 2 (Resolver Flow) if:

    • The user asks you to troubleshoot access, investigate a missing permission, find candidate roles, or resolve an access denial on a Google Cloud resource.
    • 📖 Reference Guide: Read and follow references/resolver.md for detailed execution steps.
  3. Default Behavior:

    • Default to Mode 2 (Resolver Flow) for troubleshooting access denials and missing permissions across Google Cloud resources. Read and follow references/resolver.md for detailed execution steps.

Safety Guardrails & Approval Policy

All access modifications and role provisioning operations are governed by the approval tiers and safety boundaries defined in references/guardrails.md:

  • Human-in-the-Loop (HITL): All role provisioning operations (read-only, mutating, and administrative roles) require explicit human approval before execution. High-risk administrative roles require an explicit high-risk warning.
  • Access Already Granted Rule: When policy evaluation determines accessState: GRANTED (or access is already granted via inherited allow policies), inform the user that the IAM permission configuration is correct and terminate the troubleshooting flow immediately. Do NOT search for roles, suggest role queries, or propose role bindings.
  • Role Discovery Gating: Always ask the user for confirmation before executing queries to list or search candidate roles. Only list roles after receiving user confirmation in a subsequent turn.
  • Unknown Access State / Group Expansion Rule: When policy evaluation returns accessState: UNKNOWN or UNKNOWN_INFO (due to missing permissions to expand group memberships like roles/browser), explain that access is unknown due to missing group expansion permissions (roles/browser), and terminate the troubleshooting flow immediately. Do NOT run secondary queries or probe alternative policies.
  • Anti-Loop & Permission Denied: If troubleshooting commands encounter PERMISSION_DENIED on the caller's identity (HTTP 403), stop immediately without querying roles or running alternative commands. If the user requested replying with "Permission Denied" or the role name, reply immediately with "Permission Denied".

[!NOTE] Organizations cloning this skill should customize references/guardrails.md to define their specific approval tiers and policies.


Supporting Links & Resources

常见问题

它是给谁用的?

被拦截的申请者使用申请者流程,管理员使用处理者流程。

它能自行更改访问权限吗?

只有在管理员流程中可以,而且更改前会先请你确认。

它会创建工单吗?

会。对于被拦截的申请者,它可以记录一张结构化工单。

详情

作者的原始描述

Diagnoses, remediates, and manages Identity and Access Management (IAM) access issues on Google Cloud. Supports two distinct operational modes: (1) Requester Flow for developers encountering access denials (capturing error context, self-service PAM JIT activations, elevated developer self-remediation, or logging structured tickets), and (2) Resolver Flow for privileged administrators (authoritative Policy Troubleshooter analysis, deny policy exemptions, least-privilege role discovery, and PAM/IAM provisioning).

repo: google/skills

热度

GitHub 星标
22k
排名
#10341
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能