본문으로 건너뛰기
Skillpedia
보안22k · #10307

google-cloud-filestore-auditing

하는 일

이 스킬은 Google Cloud의 Filestore 파일 공유를 백업, 접근, 신뢰성 측면에서 점검합니다. 저장소 설정에 대한 읽기 전용 보고서가 필요한 팀을 위한 스킬입니다.

사용하는 경우

  • ✓재해 복구를 위해 Filestore 인스턴스에 최근 백업이 있는지 확인하고 싶을 때.
  • ✓0.0.0.0/0처럼 지나치게 열린 접근을 주는 NFS 내보내기 규칙을 검토해야 할 때.
  • ✓Filestore 인스턴스의 영역 격리나 분리가 규정 기준에 맞는지 확인해야 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-auditing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“모든 Filestore 인스턴스에서 백업이 없는 것과 위험한 NFS 내보내기 규칙을 감사하고, 보고서를 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

인스턴스와 백업을 나열하고, 내보내기 규칙과 영역 설정을 읽은 다음, 점검에 실패한 항목을 보고합니다. 감사는 읽기만 하며, 복구 작업으로 백업을 요청한 경우에만 백업을 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

자주 묻는 질문

인스턴스를 바꾸나요?

아닙니다. 감사는 읽기 전용이며, 복구를 요청했을 때만 백업을 만듭니다.

어떤 권한이 필요한가요?

감사에는 roles/file.viewer 역할이 필요합니다.

어떤 접근 규칙을 점검하나요?

지나치게 허용적인 NFS 내보내기, 0.0.0.0/0 노출, ROOT_SQUASH 누락을 점검합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
22k
순위
#10307
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬