-
Notifications
You must be signed in to change notification settings - Fork 466
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
Go Binaries in Distroless/Debian Don't Get Env Vars Injected #1756
Comments
So, after much back and forth, I've found that enabling daemon mode works as a workaround. The issue must in general be to do with needed to be exec-ed or not. When the vault-env process calls an intermediary or launches the go program without replacing itself with the go program the env vars work properly. I do still see this as a bug, but at least I have a less ugly workaround for now. |
Thank you for your contribution! This issue has been automatically marked as |
Is this behaviour still present @rejoshed? |
Thank you for your contribution! This issue has been automatically marked as |
This issue has been marked |
Describe the bug:
When running a Go program directly from either a Distroless or Debian container the env vars are not injected.
Expected behaviour:
I expected the environment variables to be injected.
Steps to reproduce the bug:
Sample Go Program
A Dockerfile like this one will do. I was trying to get Crossplane to work with bank-vaults.
Additional context:
If the binary is called directly vault-env will not replace the var.
If called through a shell as above in the entrypoint it will work.
Basically something's up with vault-env, debian, and directly calling Go binaries.
/kind bug
The text was updated successfully, but these errors were encountered: