serverless-vault-custom-plugin

1.3.4 • Public • Published

Vault

serverless npm version npm downloads

Installation

npm i -E serverless-vault-custom-plugin

Features

- Auth with roleId or use token
- Variable Resolver
- Fetch and set aws credentials
- Command Line Support

Usage

plugins:
  - serverless-vault-custom-plugin
 
custom:
  secrets:
    aws: 'path/to/secret:data.value'
    otherPluginSecret: 'path/to/secret:response.path.to.object.property'
 
  vault:
    host: vault.your.corp.com
    debugQuery: false                           # optional, log axios http request 
    auth:
      # option 1 
      roleId: 'xxx-xxxx-xxxxx-xx'               # optional 
      secretId: 'xx-xxx-xx-x-xxx'               # optional 
 
      # option 2 
      useToken: ""                              # optional, force request to use this token 
 
    aws:                                        # optional tag 
      setEnvVars: true                          # set environment aws creds vars 
      secretPath: '/mi/project/dev/aws/creds'   # path to aws secret creds 
 
  # HOW TO RESOLVE ANOTHER SECRET 
  #otherPluginConf: 
    #secret: ${vault:${self:custom.secrets.otherPluginSecret}} 

Command Line Support

$ sls vault --help
$ sls vault get --secret /relative/path/to/secret
$ sls vault del --secret /relative/path/to/secret
$ sls vault set --secret /relative/path/to/secret --jsondata '{"value":"some_token_or_cred"}'

Readme

Keywords

none

Package Sidebar

Install

npm i serverless-vault-custom-plugin

Weekly Downloads

3

Version

1.3.4

License

ISC

Unpacked Size

14.7 kB

Total Files

5

Last publish

Collaborators

  • w4rlock