iam-helper-for-privileged-access-management
できること
このスキルは、恒久的なロールを与える代わりに、Google Cloud で期間限定のアクセスを設定して実行します。短い時間だけ高い権限が必要な管理者やスタッフ向けです。
使う場面
- ✓Privileged Access Manager のエンタイトルメントを作成または変更したいとき。
- ✓Google Cloud のリソースへの一時的なアクセスを申請したいとき。
- ✓保留中のアクセス申請を承認または却下する必要があるとき。
スキルのリンク
https://github.com/google/skills/blob/main/skills/cloud/iam-helper-for-privileged-access-management/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“開発者が 2 時間だけデータベース管理者のアクセスを申請でき、承認が必要になるように、Privileged Access Manager のエンタイトルメントを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エンタイトルメントの設定、アクセス申請、承認について、計画、検証、実行の流れで進みます。変更は、実行の前に確認のため提示されます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Privileged Access Manager (PAM)
This skill provides step-by-step guidance for planning, validating, and executing Privileged Access Manager (PAM) entitlement CRUD operations, approval workflow configurations, access elevations, and grant approval/denial workflows.
Usage Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read and follow the instructions in
Usage Attribution.
Table of Contents
- Core Concepts
- Approval Workflows & Max Request Duration
- Safety & Confirmation Strategy
- Plan-Validate-Execute Pattern
- Mode 1: Interactive Access Elevation
- Mode 2: Standalone Entitlement CRUD
- Mode 3: Approver Workflow
- Supporting Links & Resources
Core Concepts {#core-concepts}
Privileged Access Manager (PAM) replaces permanent or ambient IAM role assignments with on-demand, time-bound, and audited access elevations. Rather than appending permanent IAM policy bindings, PAM uses:
- Entitlements: Configurations defining access scopes, eligible requesters, and approvers.
- Grants: Short-lived requests created against entitlements to activate the entitlement's IAM roles.
Privileged Access (privilegedAccess)
The privilegedAccess block in an entitlement defines the precise access scope that will be granted. An access scope comprises three essential components:
- Resource: The target Google Cloud resource (Project, Folder, or Organization) where access is granted.
- Role Setup: The IAM role (
roleBindings.role) to be assigned. - Condition: (Optional) An IAM condition expression (
roleBindings.conditionExpression) restricting when or where the role applies.
Core Workflow
- Administrators create Entitlements.
- Requesters can then request Grants against these entitlements.
- If the entitlement is configured with approvals, then an approver must approve the requested grant.
- Once all necessary approval steps are completed, the grant is activated for the requested time.
- The grant automatically ends after the requested duration has elapsed, and the elevated access is removed.
Approval Workflows & Max Request Duration {#approval-workflows}
Approval Workflows (approvalWorkflow)
When sensitive environments require human approval before temporary access is
activated, configure the approvalWorkflow block in the entitlement YAML
manifest (entitlement.yaml).
approvalWorkflow:
manualApprovals:
# Optional: requires approver to supply a justification string
requireApproverJustification: true
steps:
- approvalsNeeded: 1
approverEmailRecipients:
- approver@example.com
approvers:
- principals:
- user:db-lead@my-company.com # or group:sre-leads@my-company.com
- When to include: Include
approvalWorkflowwhenever the user prompt specifies that manual approval or an approver (user or group) is required. - Outcome: When a user requests a grant against an entitlement
with
approvalWorkflow, the grant transitions toAPPROVAL_AWAITED. Requesters must await an Approver's decision (Mode 3).
Max Request Duration (maxRequestDuration)
maxRequestDuration defines the maximum single access elevation timeframe a requester
may ask for when placing a grant request.
- Flexible Configuration: Configure
maxRequestDurationaccording to the user's specific request (e.g.8 hours/28800s,1 hour/3600s,24 hours/86400s). - Default Value: If the user does NOT specify a maximum request duration,
default to
4 hours(14400s). - YAML Syntax: Always format
maxRequestDurationas a string in seconds in the entitlement YAML (e.g.,"14400s","28800s").
Safety & Confirmation Strategy {#safety-confirmation}
Adhere strictly to these workflow guards:
- Modifying / Destructive Executions (Create, Update, Delete, Approve, Deny, Revoke): Always present a plain-text summary of the planned adjustments and prompt the user for explicit confirmation (Yes/No).
- Read-Only Inspections (List, Describe, Search): Run autonomously without requesting confirmation.
- Batching Bash Commands (Reduce User Confirmations): The host environment requires us
よくある質問
恒久的なアクセスを与えますか?
いいえ。期限が来ると自動的に失効する、オンデマンドの期間限定アクセスのためのものです。
承認のステップは必要ですか?
エンタイトルメントには承認を必須にできます。このスキルは承認者のワークフローも扱います。
一般的な IAM エラーのトラブルシューティングもしますか?
いいえ。IAM のトラブルシューティングは別のスキルが扱います。
詳細
作者による元の説明
Manages the end-to-end lifecycle of on-demand, temporary access using Privileged Access Manager (PAM). Use when a user asks to create, read, update, or delete PAM entitlements, request temporary access, or approve/deny pending PAM grants. Do NOT use for permanent IAM policy bindings, troubleshooting IAM permission errors, or general Google Cloud resource provisioning.
repo: google/skills
人気
- GitHubのスター
- 22k
- ランキング
- #10340
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
finding-google-skills
22kセットアップ作業に合うGoogleの公式ガイドを探すようエージェントを支援します。ホスティング、データベース、ストレージ、サインイン、AIモデルの提供などが対象です。
gcloud
22kエージェントが、Google CloudのgcloudコマンドについてWeb検索に頼らず、正確な構文を確かめてから書いたり確認したりできるよう支援します。
google-cloud-recipe-auth
22kエージェントが、Google Cloudのアイデンティティとアクセス(人やサービスがどうサインインし、どの権限を得るか)について、手順を案内できるよう支援します。
google-cloud-recipe-onboarding
22k新しい開発者が、プロジェクトの選択、請求の設定、最初のリソースのデプロイなど、Google Cloudの最初の手順を進められるよう案内します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。