askill
gcp-production-secret-handler

gcp-production-secret-handlerSafety 85Repository

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

251 stars
5k downloads
Updated 3/14/2026

Package Files

Loading 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.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

48/100Analyzed 3/18/2026

This skill documents a secure secret handling pattern for GCP production agents, explaining the in-memory-only approach vs global environment variables. While it has clear usage triggers and structured sections, it's quite brief - lacking actual implementation code or step-by-step instructions. The skill references an external script (scripts/env_utils.py) without including its contents. The deep path structure and .agent folder indicate this is internal-only, tailored to a specific dev-signal agent within the GoogleCloudPlatform/devrel-demos repo.

85
65
50
45
40

Metadata

Licenseunknown
Version-
Updated3/14/2026
PublisherGoogleCloudPlatform

Tags

apisecurity