iam-helper-for-privileged-access-management
Skill này làm gì
Skill này thiết lập và vận hành quyền truy cập có thời hạn trên Google Cloud, thay vì cấp vai trò vĩnh viễn. Skill dành cho quản trị viên và nhân viên chỉ cần quyền cao hơn trong thời gian ngắn.
Khi nào nên dùng
- ✓Khi bạn muốn tạo hoặc thay đổi một entitlement trong Privileged Access Manager.
- ✓Khi bạn cần yêu cầu quyền truy cập tạm thời tới một tài nguyên Google Cloud.
- ✓Khi một yêu cầu truy cập đang chờ cần được phê duyệt hoặc từ chối.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/iam-helper-for-privileged-access-management/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập một entitlement trong Privileged Access Manager để nhà phát triển có thể yêu cầu quyền quản trị cơ sở dữ liệu trong hai giờ, có bước phê duyệt.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đi qua quy trình gồm lập kế hoạch, kiểm tra và thực thi để thiết lập entitlement, xử lý yêu cầu truy cập và phê duyệt. Mọi thay đổi được hiển thị để bạn xác nhận trước khi thực hiện.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill có cấp quyền vĩnh viễn không?
Không. Skill dùng để cấp quyền theo nhu cầu, có thời hạn và tự hết hạn.
Có cần bước phê duyệt không?
Entitlement có thể yêu cầu phê duyệt, và skill có hướng dẫn quy trình của người phê duyệt.
Skill có xử lý các lỗi IAM chung không?
Không. Việc xử lý lỗi IAM chung do một skill khác đảm nhiệm.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10340
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
finding-google-skills
22kGiúp agent của bạn tìm hướng dẫn Google phù hợp cho việc thiết lập, như hosting, cơ sở dữ liệu, lưu trữ, đăng nhập hoặc phục vụ mô hình AI.
gcloud
22kGiúp agent của bạn viết và kiểm tra các lệnh gcloud của Google Cloud, tra cứu cú pháp chính xác trước khi chạy bất cứ thứ gì để không đoán các flag.
google-cloud-recipe-auth
22kHướng dẫn agent của bạn qua quản lý danh tính và quyền truy cập của Google Cloud, gồm cách con người và dịch vụ đăng nhập và những quyền họ nhận được.
google-cloud-recipe-onboarding
22kHướng dẫn một lập trình viên mới qua các bước đầu tiên trên Google Cloud, gồm chọn dự án, liên kết thanh toán và triển khai tài nguyên đầu tiên.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.