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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
Ensure
gcloudis installed. See gcloud installation guide if needed.Authenticate your environment:
gcloud auth login gcloud auth application-default loginSet 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}Configure a well-supported default region (e.g.,
us-central1). See official region availability documentation:gcloud config set compute/region us-central1Verify required service APIs are enabled:
gcloud services enable file.googleapis.com --quietRun fleet discovery and backup inventory (see "Discovery & Read Operations" below).
Evaluate findings against the audit rules matrix and render the executive scorecard and inventory table.
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
コメント
- …
このリポジトリの他のスキル
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、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。