GitHub - cyberark/summon-chefapi: Summon provider for Chef encrypted data bags (original) (raw)

DEPRECATED

As of June 11, 2024 this project is deprecated and will no longer be maintained.

For many, Chef encrypted data bags are difficult to work with. This Summon provider allows you to useSummon + secrets.yml to improve your development workflow with encrypted data bags.

Example

Create an encrypted data bag with a PostgreSQL password.

$ knife data bag create passwords postgres --secret-file encrypted_data_bag_secret

{ "id": "postgres", "value": "mysecretpassword" }

Install Summon and this provider.

Create a secrets.yml file.

POSTGRES_PASSWORD: !var passwords/postgres/value

Now you can inject the password into any process as an environment variable. Instead of dealing with the Data Bag API in your Chef recipe, you can just use ENV['POSTGRES_PASSWORD'].

$ summon chef-client --once

Once chef-client finishes, the password is gone, not left on your system.

Install

  1. Install the latest release of Summon.
  2. Download the latest release of this providerand extract it to /usr/local/lib/summon/.

If you have more than one provider installed, select this one with summon -p summon-chefapi ....

Configure

Configuration of this provider is through environment variables:


Contributing

We welcome contributions of all kinds to this repository. For instructions on how to get started and descriptions of our development workflows, please see our contributing guide.