-
Notifications
You must be signed in to change notification settings - Fork 481
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
bake: additional support for named context on remote inputs #965
Conversation
tonistiigi
commented
Feb 24, 2022
- Update named context paths to be relative of remote inputs
- Add basic validation that named paths don't escape the current working directory when loaded from remote sources.
if inp == nil || inp.State == nil { | ||
return nil | ||
} | ||
if v, ok := os.LookupEnv("BAKE_ALLOW_REMOTE_FS_ACCESS"); ok { |
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.
@crazy-max I think in our github actions we can define this by default as the whole system is in a vm anyway.
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.
On GHA they could include /home/runner/.docker
which contains auth token in config.json
if login step has been done in a previous step.
ea42084
to
dee1d82
Compare
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This is a stopgap before proper entitlements support is implemented. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
dee1d82
to
91e550b
Compare
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.
Can you add BAKE_ALLOW_REMOTE_FS_ACCESS
to the list of built-in variables: https://github.com/docker/buildx/blob/master/docs/reference/buildx_bake.md#built-in-variables
I don't really want to make this very official. Hopefully, it would be removed in the next release if we have proper entitlements support. |