-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secrets handling via entrypoint #2280
base: master
Are you sure you want to change the base?
Conversation
8fcc43b
to
1f46ed0
Compare
1f46ed0
to
3ada56d
Compare
elif [ -n "${def}" ]; then | ||
echo "note: using invoked definition for ${var} value" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd not print them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just following the criteria in the context, take note the variable name is printed not the value.
If you export all secret values as env, they would also shou up in the containers definition etc. again in cleartext. |
What do you mean? the variable is exported in the entrypoint. In see. this snippet with a debian image contianer: $ docker run --name test --rm -it debian
root@9cd023377043:/# export CHECK=gotcha
root@9cd023377043:/# env | grep got
CHECK=gotcha
root@9cd023377043:/# in another shell $ docker inspect test | jq . | grep gotc
$ echo $?
1
$ docker inspect test | jq '.[0].Config.Env[] ' -r
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$ |
Secrets files handled only in the entrypoint, converted during initial execuition. Solves nextcloud#1148 Signed-off-by: Matías Pecchia <[email protected]>
Signed-off-by: Matías Pecchia <[email protected]>
3ada56d
to
1a0fb1b
Compare
Secrets files handled only in the entrypoint, converted during initial execuition.
Fixes #1148