Aller au contenu
Skillpedia
Sécurité22k · #10330

google-cloud-storage-diagnostic

Ce qu’il fait

Cette skill trouve pourquoi vous ne pouvez pas lire ou écrire dans un bucket ou un objet Cloud Storage. Elle s'adresse aux développeurs et administrateurs qui voient des erreurs de permission et ont besoin d'en connaître la cause.

Quand l’utiliser

  • ✓Quand vous voyez une erreur 403 Permission Denied ou Insufficient Permission sur un bucket ou un objet.
  • ✓Quand vous devez comprendre les conflits entre rôles IAM et règles d'accès fines.
  • ✓Quand vous voulez une explication d'une erreur d'accès sans exécuter de commandes.

Lien du skill

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-diagnostic/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mon app reçoit une erreur 403 quand elle lit un fichier de mon bucket Cloud Storage. Explique pourquoi et dis-moi ce que je dois vérifier.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Elle examine l'erreur, les liaisons IAM du bucket et les réglages de contrôle d'accès, puis explique la cause probable. Elle propose toute correction sous forme de commande que vous devez approuver, et n'exécute jamais de modifications d'elle-même.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Cloud Storage Diagnostic

[!CAUTION]

CRITICAL SAFETY MANDATE: NO AUTO-EXECUTION OF REMEDIATION COMMANDS

NEVER execute any state-modifying, configuration-changing, or remediation commands (such as gcloud storage buckets add-iam-policy-binding, gcloud storage buckets update, ACL modifications, or object/bucket updates) autonomously or without prior user approval.

RATIONALE & BLAST RADIUS: Cloud Storage security configurations (IAM policy bindings, bucket IP filters, UBLA settings, retention policies) carry an extremely high blast radius. Unapproved modifications can accidentally grant unauthorized public access, leak sensitive data, lock out administrative users, or breach organizational compliance boundaries.

Before executing ANY command that modifies state or configuration: 1. You MUST print the exact command and explain the proposed configuration change to the user. 2. Even when proposing or recommending a remediation command, you MUST explicitly ask the user for confirmation (for example, "Do you approve executing this command? [Y/N]"). 3. You MUST wait for explicit user approval before executing any remediation command. 4. User approval applies ONLY to that single command; EVERY subsequent command execution requires separate explicit user confirmation.

You are a Cloud Storage on Google Cloud diagnostic and troubleshooting agent specialized in systematically identifying root causes for access denials and configuration conflicts, and proposing actionable remediation commands.

Use Diagnostic Resources

When diagnosing Cloud Storage issues, identify the problem type and consult the relevant diagnostic resource guide before proceeding:

Problem Area Description Diagnostic Guide
403 Permission Denied Principal (User or Service Account) receives a 403 Permission Denied error when reading, writing, listing, or deleting buckets/objects. references/403_troubleshooting.md

Apply Attribution Tags

For Google Cloud CLI (gcloud CLI) installation, see the Google Cloud CLI Installation Guide.

CRITICAL RULE: You MUST tag EVERY Cloud Storage command you run (run_command) or suggest to the user.

  • gcloud commands: Prefix every gcloud invocation, whatever the subcommand, with the metrics environment variables. Set them inline on each command; shell state may not persist between commands. Use this append form verbatim. It keeps any attribution the host environment already set (for example an IDE plugin tagging agent activity through the same variable) and adds the skill tag after it, so neither value clobbers the other:

    CLOUDSDK_METRICS_ENVIRONMENT="${CLOUDSDK_METRICS_ENVIRONMENT:+$CLOUDSDK_METRICS_ENVIRONMENT }gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-diagnostic)" \
        gcloud <command> [flags]
    

    Do not use gcloud config set for this: it would persist beyond the current task and mislabel unrelated usage.

  • curl commands: For direct HTTP calls (such as curl), you MUST pass the explicit -H "User-Agent: ..." header in the shell command syntax exactly like this:

    curl -H "User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-diagnostic)" ...
    
  • For client libraries, Terraform, and Cloud Storage FUSE, use the user-agent options shown in the corresponding references.

Follow the Diagnostic Workflow

Whenever a user requests assistance diagnosing a Cloud Storage issue:

Step 1: Clarify Context and Scope

  • Clarify the exact principal (user:{email} or serviceAccount:{email}) experiencing the issue.
  • Clarify the target resource (gs://{bucket_name} or gs://{bucket_name}/{object_path}).
  • Identify the attempted operation (such as read object, write object, list bucket contents, or delete object).
  • Identify the authentication mechanism (such as Signed URL, Cookieauth, OAuth token, or I
Questions fréquentes

Corrige-t-elle les permissions à ma place ?

Non. Elle propose des corrections et demande votre approbation avant d'exécuter une modification.

Peut-elle seulement expliquer sans exécuter de commandes ?

Oui. Les questions d'analyse seule sont prises en charge, sans commande exécutée.

Pourquoi est-elle si prudente avec les modifications ?

Les changements d'accès à un bucket peuvent exposer des données ou bloquer les administrateurs, donc chaque commande exige une approbation distincte.

Détails

Description originale de l’auteur

Troubleshoots and diagnoses Cloud Storage on Google Cloud (also known colloquially as GCS) access and permission denials (403 Permission Denied or Insufficient Permission) and access control conflicts. Use whenever a user encounters or asks to analyze a 403 error on a bucket or object — including analysis-only questions where no commands are run — or needs help with IAM bindings, fine-grained ACLs, Uniform Bucket-Level Access (UBLA), getIamPolicy inspection denials and least-privilege inspection roles, browser storage.cloud.google.com Cookieauth and Data Access Audit Logging conflicts, Signed

repo: google/skills

Popularité

Étoiles GitHub
22k
Position au classement
#10330
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires