-
Notifications
You must be signed in to change notification settings - Fork 0
Secret Manager
Module flag: secretmanager
Enabled by default: yes
The Secret Manager module lists secret metadata — names, labels, create times, and replication policies. Secret values are never read. This is by design: the tool provides inventory and audit capability without any risk of credential exposure.
GCP_PROJECT_ID=my-project ./aura-tracker-gcp --modules secretmanagergcloud services enable secretmanager.googleapis.com| Role | Tools that need it |
|---|---|
roles/secretmanager.viewer |
All tools |
roles/secretmanager.viewergrants access to list secrets and view metadata only. It does not grant access to secret values (secretmanager.versions.accessis a separate permission never used by this module).
Lists secrets in the project.
Parameters:
| Name | Required | Description |
|---|---|---|
project_id |
yes | GCP project ID |
filter |
no | Cloud Resource Manager filter expression |
Returns: Secret name, create time, labels, replication type (AUTOMATIC / USER_MANAGED with regions), version count, next rotation time (if rotation is configured).
Inventory
"List all secrets in project my-project."
Rotation audit
"Which secrets in project my-project do not have automatic rotation configured?"
Label audit
"Which secrets in project my-project are missing the
ownerorservicelabel?"
Usage audit (combined with topology)
"Cross-reference the secrets in project my-project with the Cloud Run services that reference them via environment variables."
| Module flag | Why you'd combine it |
|---|---|
topology |
gcp_get_service_topology discovers which Cloud Run services reference each secret |
iam |
Audit which service accounts have secretmanager.versions.access on sensitive secrets |
cloudrun |
Find Cloud Run services that mount secrets as volumes or env vars |