/gcp-secret-metadata:runfrom gcp-secret-metadata
Provides a secure operator-only helper to inject a GCP Secret Manager secret value into a trusted local process. Useful for controlled secret injection in trusted terminals.
Ships in gcp-secret-metadata. 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.
None: SKILL.md is the whole skill.
Do not run this helper from an agent or request a secret value. An authorized
operator may run it in a trusted terminal, after authenticating the Google Cloud
CLI using their approved identity or workload identity. The principal needs
secretmanager.versions.access on the selected secret; IAM conditions and
workload identity are enforced by GCP, not evaluated by this helper.
node /path/to/gcp-secret-metadata/scripts/run.js PROJECT_ID SECRET_ID latest GCP_SECRET_VALUE -- /path/to/trusted-command
Replace latest with a positive version number to pin it. To opt in to the
active gcloud client configuration's project, an operator can replace
PROJECT_ID with --configured-project. Before running, inspect
gcloud config get project in the trusted terminal and authorize that exact
project and active account; configuration, account, credentials, and environment
can change between inspection, lookup, and access. The helper does not bind the
lookup to the previously inspected configuration or pin the account or credentials;
project pinning is not an identity or authorization guarantee. Use a controlled
configuration and environment throughout, and prefer an explicit project ID when
the inspected project must be assured. The helper resolves the project once,
validates it as a project ID, and explicitly passes it to the access call. An
explicit project ID overrides the configured project without looking it up, but
still does not pin the identity. An unset, malformed, or failed lookup stops
before secret access. This option is only for the operator runtime helper;
metadata commands still require an explicit project.
See gcloud config get.
To access a regional secret instead, opt in by placing its exact location before
the -- separator:
node /path/to/gcp-secret-metadata/scripts/run.js PROJECT_ID SECRET_ID latest GCP_SECRET_VALUE --location=us-central1 -- /path/to/trusted-command
The location is passed explicitly to gcloud; a failed regional request never falls back to a global secret. Verify the project, secret, location and identity before running. The helper checks location syntax, not whether the location exists or is authorized. Omitting the option keeps the global behavior. This option applies only to runtime access; the metadata and inspector commands do not support regional secrets. See Google's regional access documentation.
The helper resolves one UTF-8,
non-NUL payload into GCP_SECRET_VALUE, then runs the specified
program without a shell. Provider and child output are suppressed, stdin is
closed, and only generic errors are shown. The variable name is fixed to avoid
injecting into runtime or loader control variables. Provider calls time out after
15 seconds; the trusted command itself has no timeout. Empty and binary values are unsupported.
No value is written by the helper to files or command arguments. Only use a
trusted program: it can log, persist, or transmit secrets. Inherited environment
variables are also passed to it. Other privileged processes can inspect process
environment or memory; the helper cannot erase all copies from memory. The
operator is responsible for safe evidence output, permissions, and host security.
This is a manual runtime helper, not automatic integration with gcp-inspector or
Terraform scanning. This helper does not collect rotation or version history;
the separate metadata-only /gcp-secret-metadata:history command can do so. Neither
secret names nor references should be included in evidence without authorization.
See gcloud versions access.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub grcengclub/claude-grc-engineering --plugin gcp-secret-metadata4 skills in this plugin
Other plugins' skills for the same job