Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Provide secrets using environment variables for buildah bud #5877

Closed
miopp2 opened this issue Dec 16, 2024 · 2 comments
Closed

Provide secrets using environment variables for buildah bud #5877

miopp2 opened this issue Dec 16, 2024 · 2 comments

Comments

@miopp2
Copy link

miopp2 commented Dec 16, 2024

Would it be possible to implement the passing of secrets via env variables to buildah bud in the same manner as it has been done in buildah build?

I am referencing this issue #3524 and the solution for buildah build #3598

According to this issue: #5808 it should already work, however, it does not work for me.

I tried to pass secrets from env variables to my buildah build like this

buildah bud --secret id=MY_SECRET and it throws the following error:

error creating build executor: incorrect secret flag format: should be --secret id=foo,src=bar
ERRO[0000] exit status 125

The same happens if I use --secret id=MY_SECRET,type=env

Am I missing something or is the usage from env variables not supported with buildah bud?

@rhatdan
Copy link
Member

rhatdan commented Dec 16, 2024

buildah bud and buildah build are aliases for each other? Are you talking about podman build versus buildah bud?

@miopp2
Copy link
Author

miopp2 commented Dec 17, 2024

Ah probably confused them. Nonetheless I cannot make it work to pass secrets from env variables.

@miopp2 miopp2 closed this as completed Dec 17, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants