Skip to content

envbuilder support for build-time secrets is undocumented #93

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

Closed
Tracked by #132
ns-mkusper opened this issue Feb 28, 2024 · 3 comments
Closed
Tracked by #132

envbuilder support for build-time secrets is undocumented #93

ns-mkusper opened this issue Feb 28, 2024 · 3 comments
Assignees

Comments

@ns-mkusper
Copy link

There doesn't seem to be any way to pass build-time secrets when using envbuilder, leaving me with no straight-forward option to include any Dockerfile with commands similar to:

RUN --mount=type=secret,id=test-token poetry config http-basic.test-token-pypi gitlab-ci-token $(cat /run/secrets/test-token)

I'd be willing to drop a patch for this, but I'm curious to hear opinions on whether or not this is something envbuilder can support without violating its design principles.

@ns-mkusper ns-mkusper changed the title envbuilder lacks support for build-time secrets envbuilder support for build-time secrets is undocumented Mar 14, 2024
@ns-mkusper
Copy link
Author

Seems that the standard kaniko method of mounting secrets in /kaniko does work to resolve this issue. This works for me and I'm willing to use it permanently but seems like something of a workaround.

@SasSwart
Copy link
Contributor

SasSwart commented Nov 4, 2024

Hey There!

Support for build secrets has been formalised and added as of #401.
Documentation is available here:
https://github.com/coder/envbuilder/blob/main/docs/build-secrets.md

This feature is as yet unreleased. Keep an eye on our releases and changelog for further information.
If you need this feature urgently, feel free to build your own envbuilder container using this script:
https://github.com/coder/envbuilder/blob/main/scripts/build.sh like this:

./scripts/build.sh --base=envbuilder-with-secrets

Our Terraform provider for envbuilder does not yet support build secrets.

@SasSwart
Copy link
Contributor

Builds secrets are now also supported in the Terraform provider for envbuilder.
This was the last feature we needed to close this issue.

Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants