Socket
Book a DemoInstallSign in
Socket

chef-keepass

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chef-keepass

0.2.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

= Chef-Keepass

= DESCRIPTION:

Gem that allows you to encrypt passwords & certificates using the public key of a list of chef nodes. This allows only those chef nodes to decrypt the password or certificate.

= INSTALLATION:

Be sure you are running the latest version Chef. Versions earlier than 0.10.0 don't support plugins:

gem install chef

This plugin is distributed as a Ruby Gem. To install it, run:

gem install chef-keepass

Depending on your system's configuration, you may need to run this command with root privileges.

= CONFIGURATION:

= KNIFE COMMANDS:

This plugin provides the following Knife subcommands.
Specific command options can be found by invoking the subcommand with a --help flag

== knife encrypt password

Use this knife command to encrypt the username and password that you want to protect.

knife encrypt password --search SEARCH --username USERNAME --password PASSWORD --admins ADMINS

== knife decrypt password

Use this knife command to dencrypt the password that is protected

knife decrypt password --username USERNAME

== knife encrypt cert

Use this knife command to encrypt the contents of a certificate that you want to protect.

knife encrypt cert --search SEARCH --cert CERT --password PASSWORD --name NAME --admins ADMINS

== knife decrypt cert

Use this knife command to dencrypt the certificate that is protected

knife decrypt cert --name NAME

= USAGE IN RECIPES

To use this gem in a recipe to decrypt data you must first install the gem via a chef_gem resource. Once the gem is installed require the gem and then you can create a new instance of ChefKeepass.

== Example Code (password)

chef_gem "chef-keepass"

require 'chef-keepass'

keepass = ChefKeepass.new("passwords") user = keepass.user("Administrator") password = user.decrypt_password

== Example Code (certificate)

chef_gem "chef-keepass"

require 'chef-keepass'

keepass = ChefKeepass.new("certs") cert = keepass.certificate("domain.com") contents = cert.decrypt_contents

= LICENSE:

Author:: Kevin Moser (kevin.moser@nordstrom.com) Copyright:: Copyright (c) 2013 Nordstrom, Inc. License:: Apache License, Version 2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

FAQs

Package last updated on 05 Apr 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.