google-cloud-filestore-auditing
Что он делает
Скилл проверяет общие папки Filestore в Google Cloud на проблемы с резервным копированием, доступом и надёжностью. Он нужен командам, которым нужен отчёт о настройке хранилища только для чтения.
Когда использовать
- ✓Когда вы хотите проверить, есть ли у экземпляров Filestore свежие резервные копии для восстановления после аварии.
- ✓Когда нужно проверить правила экспорта NFS на слишком открытый доступ, например 0.0.0.0/0.
- ✓Когда нужно проверить изоляцию зон экземпляров Filestore по правилам соответствия.
Ссылка на скилл
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-auditing/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Проверь все мои экземпляры 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
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
finding-google-skills
22kПомогает агенту найти нужные руководства Google для задач настройки, например хостинга, баз данных, хранилища, входа или запуска ИИ-моделей.
gcloud
22kПомогает агенту писать и проверять команды gcloud для Google Cloud, сверяя синтаксис с официальной справкой перед запуском, чтобы не угадывать флаги.
google-cloud-recipe-auth
22kВедёт агента через настройку идентификации и доступа в Google Cloud: как люди и сервисы входят в систему и какие права они получают.
google-cloud-recipe-onboarding
22kВедёт нового разработчика через первые шаги в Google Cloud: выбор проекта, подключение оплаты и развёртывание первого ресурса.
Похожие скиллы
reverse-engineer-anything
422kПомогает агенту изучить готовые приложения и пакеты, объяснить их функции, сравнить версии или помочь с пересборкой через REA.
1password
394kПомогает агенту настроить командную строку 1Password, войти в нее и читать или подставлять секреты, не выводя их значения в чат.
healthcheck
394kПомогает агенту проверить компьютер или сервер, на котором работает OpenClaw, на риски безопасности, такие как SSH, файрвол, обновления и резервные копии, а затем предложить безопасные исправления.