0.0.8 • Published 2 years ago

@1mill/sops v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@1mill/sops

npm install @1mill/sops
const { Sops } = require('@1mill/sops')

const sops = new Sops({})

exports.handler = async (cloudevent, ctx) => {
  ctx.callbackWaitsForEmptyEventLoop = false

  const allMySecrets = await sops.decrypt()
  const aSingleSecret = await sops.decrypt('my secret name')

  return {
    allMySecrets,
    aSingleSecret,
  }
}
RequiredDefaultNotes
accessKeyIdyesprocess.env.MILL_SOPS_AWS_ACCESS_KEY_IDprocess.env.AWS_ACCESS_KEY_IDprocess.env.AWS_ACCESS_KEY
endpointprocess.env.MILL_SOPS_AWS_ENDPOINTprocess.env.AWS_ENDPOINTGood for local development environment when using Localstack (or other AWS simulators)
fileprocess.env.MILL_SOPS_FILE || process.env.NODE_ENV === 'production' ? 'prod.secrets.sops.json' : 'dev.secrets.sops.json'
regionyesprocess.env.MILL_SOPS_AWS_REGIONprocess.env.AWS_REGION
secretAccessKeyyesprocess.env.MILL_SOPS_AWS_SECRET_ACCESS_KEYprocess.env.AWS_SECRET_ACCESS_KEY
sessionTokenprocess.env.AWS_SESSION_TOKEN
0.0.8

2 years ago

0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago