2 releases
0.1.1 | Apr 24, 2023 |
---|---|
0.1.0 | Apr 24, 2023 |
#501 in Configuration
9KB
103 lines
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
Dependencies
~1.6–2.4MB
~49K SLoC