This repository has been archived by the owner on Sep 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
475 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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 | ||
|
||
```shell | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module github.com/Atoms/gcp-secrets | ||
|
||
go 1.14 | ||
|
||
require ( | ||
cloud.google.com/go v0.64.0 | ||
github.com/spf13/pflag v1.0.5 | ||
google.golang.org/genproto v0.0.0-20200815001618-f69a88009b70 | ||
) |
Oops, something went wrong.