Socket
Socket
Sign inDemoInstall

grunt-secure-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-secure-config

Grunt tasks for management of secure-config encrypted JSON files.


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Grunt Secure Config

A simple set of grunt tasks to manage secure-config encrypted JSON files.

Example Usage

Use grunt.initConfig to configure secure-config. Both basePath and keyPath are required and can be with a String or a Function.

var getKeyPath = function () {
	return "/home/node/secure-store.pem";
};

grunt.initConfig({
	secure: {
		options: {
			basePath: path.join(__dirname, "config", "secure"),
			keyPath: getKeyPath
		}
	}
});

Encrypt a .json file

  1. Create a JSON file {basePath}/secure/{"defaults" || env}.json.
  2. Run grunt secure:encrypt --env={env}. The env option is not used when encrypting defaults.json.
  3. Remove the .json file

Decrypt a .store file to console

Run grunt secure:decypt --env={env}. The env option is not used when decrypting defaults.store.

Decrypt a .store file to a .json file by adding --toFile

License

View the LICENSE file.

Keywords

FAQs

Package last updated on 21 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc