Popularity
3.2
Declining
Activity
0.0
Stable
6
5
0

Programming language: Crystal
License: MIT License
Tags: Serverless Computing    
Latest version: v1.1.0

secrets-env alternatives and similar shards

Based on the "Serverless Computing" category.
Alternatively, view secrets-env alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of secrets-env or a related project?

Add another 'Serverless Computing' Shard

README

secrets-env

Build Status

Extends the behaviour of the crystal-lang ENV module to read values injected by docker secrets, kubernetes secrets and other orchestration tools.

Installation

  1. Add the dependency to your shard.yml:
   dependencies:
     secrets-env:
       github: place-labs/secrets-env
  1. Run shards install

Usage

require "secrets-env"

Use the SECRETS_PATH environment variable to specify the volume used for secrets injection. If unspecified this will default to /run/secrets.

ENV may then be used as per the standard API. Values fetch from (in order of priority):

  1. environment variable
  2. secret of the same name
  3. fallback (if specified)

Note: attempts to update the environment ([]=) will apply this as an env var. Secrets are immutable. Once set as env vars take preference over secrets, the new value is readable by the current machine, but is ephemeral.

Additionally, ENV.accessed is a compile-time record of all accesses to the ENV variable across the program.

Contributing

  1. Fork it (https://github.com/place-labs/secrets-env/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors