-
Notifications
You must be signed in to change notification settings - Fork 0
Couple questions #2
Comments
Hey 👋 I'm glad you find this First, I want to mention that some similar, better fleshed-out functionality is being added to the Essentially, it works like this:
Yes. Ideally, use snake_case or SCREAMING_SNAKE_CASE for the secret names (as in your examples) so that they can be set as POSIX-compliant environment variables by the script. If you use key names that have spaces, or other special chars that shell languages would struggle with, the script will likely fail. In the example you provided: get-bitwarden-secrets:
image: alpine
command: echo $ANOTHER_VAR the container should output For further insight into how |
Awesome, super helpful. Appreciate it. At least with Bitwarden Secrets, I can change it from any OS. Granted, this doesn't solve the issue about secrets being posted in the env vars and being visible via |
This is a good app. Makes life easier.
Have question
First, normally when defining an env var in a file, you typically do
In your example, you mention storing the secret in BWS, and then using your bws-env to grab the env var. The question is, what is assigning the name of the env variable?
Do you have to store the secret in BWS as the name of the variable you need? Such as
And then your script uses that name as the name for the variable?
Sort of confused about how it knows what name to use, or if I'm missing something.
Say I add a new secret to bitwarden
Typically, you would define this in an env file as
But with your system, am I understanding that if you do the following in your
docker-compose.yml
That the final variable name comes out as:
Because it's taking
$ANOTHER_VAR
and turning that into the env var name, and then assigning whatever the value was.The text was updated successfully, but these errors were encountered: