/gcp-secret-metadata:historyfrom gcp-secret-metadata
Reads metadata, version states, and rotation schedule for a single GCP Secret Manager secret. Useful for auditing secret lifecycle without accessing payloads.
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.
Obtain explicit authorization for this project and secret, including approval to
share sensitive identifiers and metadata with the agent. Do not request or
handle secret values. Authenticate gcloud outside the agent. The principal needs
secretmanager.secrets.get and secretmanager.versions.list; payload access is
not needed. Specify the project explicitly to prevent accidental cross-project
collection.
node ${CLAUDE_PLUGIN_ROOT}/scripts/history.js PROJECT_ID SECRET_ID
The script retrieves the secret metadata and all version pages for that single
global secret. It outputs resource names, available creation/expiration and
version destruction timestamps, version states, and the rotation schedule, if
present. Labels, annotations, provider diagnostics and other fields are omitted.
It does not access payloads, retrieve IAM policies or evaluate controls. Failed
or malformed calls return no partial output. A missing rotation object is shown
as null, not as evidence of compliance or noncompliance. GCP rotation schedules
send notifications; they do not themselves prove a credential was rotated.
The two calls are not an atomic snapshot. Regional secrets are not supported.
For numeric resource names, the command verifies the project ID and number via
gcloud projects describe PROJECT_ID, requiring resourcemanager.projects.get
on that project in addition to the secret permissions. A secrets-only principal
may lack this permission; no broader role is required. Denied or invalid lookup
fails closed with no output. Matching textual names do not trigger a lookup.
Store or share this sensitive inventory only under organizational policy.
Use alongside /gcp-inspector:collect for the same explicitly selected project;
this is separate metadata, not a fabricated finding or automatic integration.
Terraform scans should never consume secret values or untrusted secret metadata
as configuration. No automatic Terraform integration is provided.
References: Secret metadata, version metadata, version list.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
npx claudepluginhub grcengclub/claude-grc-engineering --plugin gcp-secret-metadataOther plugins' skills for the same job