agentleFS
Google CloudKnown publisherGoogleCloudPlatform/devrel-demos/ai-ml/dev-signal/.agent/skills/gcp-production-secret-handler/SKILL.md

gcp-production-secret-handler

Skill404 starsChanged 14 days agoApache-2.0View on GitHub

Implements the "in-memory only" secret pattern for Google Cloud production agents.

  • Reads credentials

The file

Files
SKILL.md

gcp-production-secret-handler

This skill implements the secure pattern for secret handling used in the dev-signal agent. It ensures sensitive credentials (API keys, client secrets) are fetched from Google Secret Manager directly into local memory, avoiding global environment variables that can be leaked through logs or traces.

Usage

Ask Antigravity to:

  • "Implement secure secret handling for my production agent"
  • "Use the dev-signal secret pattern"
  • "Fetch secrets from Secret Manager into a dictionary"

The Pattern

  1. Local Dev: Uses a .env file for fast iteration.
  2. Production: Uses the google-cloud-secret-manager SDK to fetch specific versions of secrets.
  3. Isolation: Secrets are stored in a Python dictionary (SECRETS) and passed as explicit parameters to toolset constructors or agent initializers.
  4. No global env injection: Avoids using os.environ[secret_id] = value.

Python Boilerplate

Refer to the included scripts/env_utils.py for the standard implementation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.