Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
Add the dependency to your
dependencies: secrets-env: github: spider-gazelle/secrets-env
SECRETS_PATH environment variable to specify the volume used for secrets injection.
If unspecified this will default to
ENV may then be used as per the standard API.
Values fetch from (in order of priority):
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.
ENV.accessed provides a record of all accesses to the
ENV variable across the program.