Chuyển đến nội dung
Skillpedia
Bảo mật22k · #10307

google-cloud-filestore-auditing

Skill này làm gì

Skill này kiểm tra các chia sẻ file Filestore trên Google Cloud về vấn đề sao lưu, truy cập và độ tin cậy. Skill dành cho các đội cần một báo cáo chỉ đọc về thiết lập lưu trữ của họ.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra xem các instance Filestore có bản sao lưu gần đây để phục hồi sau thảm họa không.
  • ✓Khi bạn cần rà soát các quy tắc export NFS có quyền truy cập quá rộng, như 0.0.0.0/0.
  • ✓Khi bạn cần kiểm tra việc cách ly hoặc tách vùng của các instance Filestore theo quy tắc tuân thủ.

Liên kết skill

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-auditing/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-auditing/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm toán mọi instance Filestore của tôi xem có thiếu bản sao lưu và quy tắc export NFS rủi ro không, rồi đưa tôi một báo cáo.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill liệt kê các instance và bản sao lưu của chúng, đọc quy tắc export và thiết lập vùng, rồi báo cáo những gì không đạt các kiểm tra. Kiểm toán chỉ đọc, và skill chỉ tạo bản sao lưu nếu bạn yêu cầu bước khắc phục đó.

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.

Filestore Auditing Skill

This skill enables autonomous agents to audit, evaluate, and report the disaster recovery, security access governance, and architectural reliability posture of Filestore fleets across Google Cloud projects.

Prerequisites / IAM Requirements & Permissions

Before executing this skill, the runtime principal (user account or Service Account) must possess the following IAM roles and granular permissions on the target GCP project(s):

1. Audit Operations (Read-Only Assessment)

Requires the roles/file.viewer role, which provides:

  • file.instances.list: Enumerate Filestore instances across project locations.
  • file.instances.get: Inspect instance configuration, NFS export rules, IP ranges, squash mode, and PZI/PZS isolation status.
  • file.backups.list: Enumerate existing backups across regions.
  • file.backups.get: Inspect backup timestamps, source instance URIs, and status.

2. Remediation Operations (Backup Creation)

Requires the roles/file.editor (or roles/file.admin) role, which provides:

  • file.backups.create: Create on-demand baseline backups for unprotected instances.
  • file.operations.get: Monitor long-running backup creation operations.

3. MCP Tool Invocation

If invoking capabilities via the Filestore MCP Server (file.googleapis.com/mcp):

  • roles/mcp.toolUser: Required to execute MCP tools (list_instances, get_instance, list_backups, get_backup, create_backup).

4. Cloud Authentication Setup

Authenticate the runtime environment using the appropriate method for your execution context:

  • CLI Execution (gcloud):
    gcloud auth login
    
  • Application SDKs & Scripts:
    gcloud auth application-default login
    
  • Automated Services & Service Accounts:
    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account-key.json"
    

5. Billing Account Attachment

  • Active Billing Required: The target GCP project must have an active Cloud Billing account attached. Filestore instances and backup operations require active billing. Verify billing status with:
    gcloud beta billing projects describe {project_id}
    

Quick Start

  1. Ensure gcloud is installed. See gcloud installation guide if needed.

  2. Authenticate your environment:

    gcloud auth login
    gcloud auth application-default login
    
  3. Set the target project context and verify an active billing account is attached:

    gcloud config set project {project_id}
    gcloud beta billing projects describe {project_id}
    
  4. Configure a well-supported default region (e.g., us-central1). See official region availability documentation:

    gcloud config set compute/region us-central1
    
  5. Verify required service APIs are enabled:

    gcloud services enable file.googleapis.com --quiet
    
  6. Run fleet discovery and backup inventory (see "Discovery & Read Operations" below).

  7. Evaluate findings against the audit rules matrix and render the executive scorecard and inventory table.

  8. If unprotected instances are identified, present baseline backup creation commands and prompt the user for confirmation.

Attribution Guardrail

Tag every Cloud Filestore command or API request provided or executed. Prefix gcloud commands with the designated metrics environment:

CLOUDSDK_METRICS_ENVIRONMENT="gcs-skills gcs-skills/1.0 (skill:google-cloud-filestore-auditing)" \
gcloud filestore instances list ...

On direct HTTP calls to the GCP REST API, append the User-Agent:

User-Agent: gcs-skills/1.0 (skill:google-cloud-filestore-auditing)

Conceptual & Informational Queries (CRITICAL)

For purely conceptual, educational, or architectural questions (e.g., "What is Physical Zone Isolation (PZI) in Filestore?", "Why is NO_ROOT_SQUASH dangerous?", "Explain Filestore backup architecture"):

  • Rule: Answer immediately using pre-trained knowledge and the guidance in references/.
  • Constraint: Do NOT execute external tool calls or API requests for basic conceptual queries.

Handling "No-Command" Constraints & Evaluations (CRITICAL)

If the user prompt contains constr

Câu hỏi thường gặp

Skill có thay đổi các instance của tôi không?

Không. Kiểm toán chỉ đọc, và skill chỉ tạo bản sao lưu khi bạn yêu cầu khắc phục đó.

Cần quyền nào?

Vai trò roles/file.viewer cho kiểm toán.

Skill kiểm tra quy tắc truy cập nào?

Các export NFS quá cho phép, việc lộ ra 0.0.0.0/0 và thiếu ROOT_SQUASH.

Chi tiết

Mô tả gốc của tác giả

Audits Filestore instances on Google Cloud across projects for disaster recovery readiness (missing or stale backups), security access governance (overly permissive NFS export rules, 0.0.0.0/0 exposure, missing ROOT_SQUASH), and reliability compliance (Physical Zone Isolation PZI and Physical Zone Separation PZS). Use when assessing storage health posture, auditing NFS export permissions, identifying unprotected file shares, or validating zone failure domains. Don't use for Cloud Storage buckets, Persistent Disk, or NetApp Volumes.

repo: google/skills

Độ phổ biến

Sao GitHub
22k
Vị trí xếp hạng
#10307
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự