GCP Secret Manager
TokenTimer uses the Secret Manager REST API v1 to discover secrets with expiration dates from Google Cloud Secret Manager.
Project ID: your GCP project ID (for example my-project-123456)
Credential setup
Option 1 (recommended): service account
- GCP Console → IAM & Admin → Service Accounts → Create
- Assign the role
Secret Manager Secret Accessor - Create and download a JSON key file
- Get a token:
gcloud auth application-default print-access-token - Revoke after use. The token is used once and never stored.
Option 2: OAuth2 temporary token
Use the OAuth2 flow with the https://www.googleapis.com/auth/secretmanager scope.
Permissions required
IAM roles (one of):
roles/secretmanager.secretAccessor(recommended)roles/secretmanager.viewer(alternative)
API scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/secretmanager
What is discovered
- Secrets: name, expiration (from enabled versions), creation/update times
Only enabled secret versions are checked for expiration. Metadata only; no secret values are retrieved.