mirror of
https://github.com/docker/buildx.git
synced 2026-10-28 06:39:39 +03:00
A secret with only an id falls back to reading the file named by the id when no environment variable with that name exists, but the entitlement check only looked at an explicit src. Resolve the source the same way BuildKit does so the implicit file read needs fs.read permission. Named contexts using oci-layout:// were treated as relative paths and resolved under the working directory, so any layout directory was allowed. Parse the reference and check the actual layout path instead. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit f7979d8a5b2e363129ef9850950cce0c5c87c031)