/palladius-public-goodies:gcp-hardeningfrom palladius-public-goodies
Audits and hardens GCP resources with actionable rules for GCS bucket IAM, V4 Signed URLs, and pre-open-source leak checks. Use when securing public buckets or reviewing GCP project security.
Ships in palladius-public-goodies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
gcp-hardening)Actionable security hardening rules and audit workflows for Google Cloud Platform (GCP) resources and open-source repositories that interact with GCP. Designed to be modular and extensible by GCP product area (starting with Google Cloud Storage (GCS) and Pre-Open-Source GCP Leak Audits).
objectViewer vs legacyObjectReader Trap (Bucket Listing Exfiltration)When hosting static reports, media galleries, or capability-URL pages (e.g., storagify with --salt, or unguessable folder prefixes) on a GCS bucket where direct browser links must work without login:
[!CAUTION] NEVER grant
roles/storage.objectViewer(orroles/storage.legacyBucketReader) toallUsersorallAuthenticatedUsers!
IAM Role on allUsers | Permissions Granted | Direct Object GET (/.../file.html) | Root Bucket XML Listing (https://storage.googleapis.com/<BUCKET>/) | Security Posture |
|---|---|---|---|---|
roles/storage.objectViewer | storage.objects.getstorage.objects.list | 200 OK | 200 OK (<ListBucketResult>) 🚨 | INSECURE: Leaks every object key, manifest, and salted filename in the bucket! |
roles/storage.legacyObjectReader | storage.objects.get ONLY | 200 OK | 403 Forbidden ✅ | SECURE: Direct links work; directory enumeration is blocked. |
If a bucket name is ever mentioned in a public repository, issue tracker, or shared URL, and allUsers has roles/storage.objectViewer, anyone can run:
curl -s "https://storage.googleapis.com/<BUCKET>/"
and receive a full XML <ListBucketResult> dump of every object in the bucket — completely bypassing 16-character URL salts ([salt]-index.html), hidden metadata directories (.storagify/entries/*.json), and unlisted subfolders.
Always apply legacyObjectReader before removing objectViewer to ensure zero downtime for existing shared links:
# 1. Grant direct object read access ONLY (no directory listing)
gcloud storage buckets add-iam-policy-binding gs://<BUCKET> \
--member=allUsers \
--role=roles/storage.legacyObjectReader \
--project=<PROJECT_ID> --quiet
# 2. Remove objectViewer (blocks public XML bucket listing)
gcloud storage buckets remove-iam-policy-binding gs://<BUCKET> \
--member=allUsers \
--role=roles/storage.objectViewer \
--project=<PROJECT_ID> --quiet
# 3. Verify: Root listing MUST return 403, direct object MUST return 200
curl -s -o /dev/null -w "Root Listing HTTP (expect 403): %{http_code}\n" "https://storage.googleapis.com/<BUCKET>/"
curl -s -o /dev/null -w "Direct Object HTTP (expect 200): %{http_code}\n" "https://storage.googleapis.com/<BUCKET>/<KNOWN_OBJECT_PATH>"
When data is sensitive and should expire automatically rather than relying on public object reads:
gcloud storage buckets update gs://<BUCKET> --public-access-prevention --project=<PROJECT_ID> --quiet
version="v4"):
604800 seconds).<style>, <script>) and pre-sign all embedded relative subresources (<img src>, <video src>, links) with the same expiration timestamp; otherwise the browser will get 403 AccessDenied on subresources.signBlob Pitfall: Credentials from gcloud auth application-default login do not contain a local private key. When calling blob.generate_signed_url(version="v4", ...) in Python with user ADC, you must refresh the credentials and pass both service_account_email and access_token=creds.token (requiring roles/iam.serviceAccountTokenCreator), or use a Service Account key.Before flipping a private GitHub or GitLab repository to Public, always audit 4 surfaces (not just .env!):
git ls-files):
.agents/, and docs/ for real gs:// bucket names, real GCP Project IDs, corporate FQDNs (*.corp.google.com), internal home paths (/usr/local/google/...), internal shortlinks (go/...), Buganizer IDs (b/...), and corporate emails.my-bucket, test-bucket, my-gcp-project).git log --all -p):
.env, service account JSON keys (PRIVATE KEY), OAuth tokens (ya29.), and API keys (AIza...) were never committed and later deleted in an earlier commit.gs://<BUCKET> or https://storage.googleapis.com/<BUCKET> ever mentioned in git history or .env, test anonymous access (curl -s https://storage.googleapis.com/<BUCKET>/) to confirm it does not return 200 OK <ListBucketResult>.glab issue list --all / gh issue list --state all):
roles/owner, roles/editor) or overly broad predefined roles (roles/storage.admin) to workload service accounts.--impersonate-service-account) over downloading long-lived .json private keys.google.auth.default()), bind creds.with_quota_project(project_id) explicitly to avoid quota/billing leaks across projects.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
68 skills in this plugin
/a2ui(💛) Build and render portable, declarative Generative UIs with Google A2UI (Agent-to-User Interface). Use whenever the user asks to generate, design, or wire interactive UI widgets, cards, forms, or dashboards using A2UI./add-to-portfolio-app(💛) Adds or syncs Talks, Keynotes, Workshops, Articles, Codelabs, Slides, and Videos in Riccardo's personal portfolio application (apps-portfolio) and companion bio repo (my-sessions-and-bio), including SQLite sync, TDD checks, default speaker images, and automated Cloud Run deployment./adk-python(💛) Create and manage AI agents using Google's Agent Development Kit (ADK) for Python. Use when the user wants to build single or multi-agent systems, evaluate agents, or deploy them. Includes instructions for fetching fresh ADK documentation and links for TypeScript and Go development.Other plugins' skills for the same job
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies