1.0.13 • Published 6 years ago

hildegard v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Hildegard

Hildegard is a secrets management service for node and AWS Parameter Store (SSM). Hildegard handles all of your secrets by running on app start. It will populate the appropriate process.env variables with parameters stored in your AWS Parameter Store.

How To

  1. You variables need to be available in AWS Parameter Store (SSM)
  2. Have a local hildegard directory with corresponding environment names as files in your root folder
    • There are two keys that are utilized in the hildegard configuration files: parameters and overrides.
      • parameters is an array of parameter names (strings) that are found in SSM
      • overrides is an array of key value pairs that you want to override locally
    • default.js is defaulted to if there is no file that matches the environment variable.

Directory Structure

hildegard/
    - production.js
    - stage.js
    - development.js
    - local.js
    - default.js

Overview

default.js

This is where you put the name of the keys that you wished to pull from Parameter Store. All the other files in hildegard/ depend on default.js and it's parameters list.

module.exports = {
  parameters: [
    "THE_NAME_OF_THE_PARAMETER_1",
    "THE_NAME_OF_THE_PARAMETER_2",
    ...
  ]
}

your environment.js | production.js | stage.js | dev.js | localdev.js | etc.

const defaultParameters = require('./default.js');
module.exports = {
  parameters: defaultParameters.parameters,
  overrides: [
    {
      Name: "THE_NAME_OF_THE_PARAMETER,
      Value: "the value of the parameter"
    }
  ],
}

parameters: []

This is where you can add parameters to retrieve from Parameter Store

overrides: []

This is where you can add as many Name, Value pairs as you want to override

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago