-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Support bind and tmpfs docker mounts #4924
Conversation
631b3db
to
cb453e7
Compare
"target": hclspec.NewAttr("target", "string", false), | ||
"source": hclspec.NewAttr("source", "string", false), | ||
"readonly": hclspec.NewAttr("readonly", "bool", false), | ||
"volume_options": hclspec.NewBlockSet("volume_options", hclspec.NewObject(map[string]*hclspec.Spec{ |
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.
Not related to PR - but noticed that volume_options
is expected to be a single block not a collection.
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.
It'd be nice to get that path traversal check in place, but we can handle it in a followup if desired.
// FIXME: This needs to be true but we have a bug with security implications. | ||
// The relative paths check should restrict access to alloc-dir subtree | ||
// documenting existing behavior in test here and need to follow up in another commit | ||
requiresVolumes: false, |
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 we just get this fixed up now with a call to PathEscapesAllocDir?
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.
Intend to follow up in a separate PR to audit all paths where it's a possibility and to add dedicated CHANGELOG item for it.
Co-Authored-By: notnoop <[email protected]>
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Adds support for more docker mount types, namely "bind" and "tmpfs".