1.0.20 • Published 6 years ago
@naturalcycles/secret-service v1.0.20
A module that allows you to pull secrets from a Google Storage bucket during runtime
Usage :
yarn add @naturalcycles/secret-service
in your app
const secretService = require('@naturalcycles/secretservice')
;(async () => {
const secret = await secretService(
{ bucketName: 'secret_bucket_name' },
['key1'],
serviceAccount // optional if you're on GAE
)
})()
console.log(process.env.key1)