Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 550 Bytes

Readme.md

File metadata and controls

26 lines (18 loc) · 550 Bytes

Read Google cloud secrets from Secret Manager using service account.

HOWTO

  • Create service account and download json key
  • Add in IAM role Secret Manager Secret Accessor role
  • export env variable GOOGLE_APPLICATION_CREDENTIALS with your service account key file
gcp-secret -p project-id -s secretname

building

go build

Currently supported

  • Secret value for latest version of secret

TODO:

  • Add versioning support
  • Add flag to list all secrets available
  • Add possibility to save new version of secret