@tdalabs/keystore-helper
v1.0.2
Published
encrypt and store credentials in google cloud storage buckets
Downloads
10
Readme
create keyring and cryptokey
gcloud beta kms keyrings create test --location global
gcloud beta kms cryptokeys create tutorial \
--location global \
--keyring test \
--purpose encryption
encrypt folder
node keys.js encrypt test-build-creds prod-circleci test-creds/config.json test-creds.encrypted/config.json
upload folder
node gcs.js upload test-project-creds test-creds.encrypted/
list files in gcs bucket
node gcs.js list test-project-creds test-creds.encrypted
download file
node gcs.js download test-project-creds test-creds.encrypted/config.json test-creds.encrypted/config.json
decrypt file
node keys.js decrypt test-build-creds prod-circleci test-creds.encrypted/config.json test-creds.encrypted/config.json