0.2.4 • Published 10 years ago

secure-setup v0.2.4

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

Secure Setup

About

Keep your server configuration data encrypted in production.

Security bugs are everywhere. Hense we must build software that stops any individal failure speading to entire systems. Should anyone gain access to your production node server, you wouldn't want them also getting your DB authorisations, AWS secrets, Twilio password etc. Maybe you think you can safely keep data in environment variables, or hidden files, but these are trivial to find for someone who has access to your source code.

In production, Secure Setup provides a simple interface for developers to decrypt and use configration data stored on the server as ciphertext. This is achieved by launching a server that waits until it receives the developer's key. On receipt, the configuration data is decrypted and passed as an object to a setup function. This initialises connections to databases and services before removing the plaintext configuration data from memory.

In 'development' mode, Secure Setup will create both plaintext and ciphertext config files (assuming they don't already exist). The setup function is then invoked with the config data as an argument, without the need to manually enter a decryption key.

Install

npm install secure-setup

Usage

setup = require 'secure-setup'
setup (err, config) ->
  return console.error err if err
  # Connect to DBs
  # Connect to AWS
  # Connect to Twilio

, options
0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago