secret_inject

Crates.iosecret_inject
lib.rssecret_inject
version0.1.1
sourcesrc
created_at2023-04-24 23:04:08.064299
updated_at2023-04-24 23:10:21.787335
descriptionInject secrets into your environment
homepagehttps://github.com/napisani/secret_inject
repositoryhttps://github.com/napisani/secret_inject
max_upload_size
id847997
size24,642
(napisani)

documentation

README

secret_inject

The start of an app that can be used to get secrets from an external secret manager and use them as exported environment variables.

As of right now, this only supports pulling secrets from doppler, using the doppler CLI.

This solution is pretty insecure in its current state. Plus, the project itself is more of a playground for Rust development than anything else...

install

cargo build --release
sudo cp target/release/secret_inject /usr/local/bin/

bash_profile entry

ENV_VARS_SEC_CONFIG_SLUG=workstation_1
OUTPUT=$(secret_inject --project workspace_env_vars --env $ENV_VARS_SEC_CONFIG_SLUG)
RESULT=$?
if [ $RESULT -eq 0 ]; then
  source "$OUTPUT"
else
  echo "$OUTPUT" >> /dev/stderr
fi

releasing

# cut a release
cargo release 0.1.0
Commit count: 11

cargo fmt