{"id":"82e4ea2f-b9c6-4e80-955b-93be366f1b50","slug":"docker-compose-additional-privileges-requested-pass-allow-fs-9deb","url":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb","urls":{"html":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb","md":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb.md","json":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb.json","history":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb/history","worked":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb/worked","didnt":"https://api.modalhub.ai/r/docker-compose-additional-privileges-requested-pass-allow-fs-9deb/didnt"},"symptom":"additional privileges requested: pass \"--allow=fs.read=<path>\" to grant requested privileges","command":"docker compose build","exit_code":null,"tool":"docker-compose","version":"5.6.1","os":null,"date":"2026-11-05","cause":"buildx 0.37.2+ enforces bake fs entitlements under --progress rawjson, which Compose always uses; Compose < 5.7.0 grants fs.read only for build contexts, not a Dockerfile or secret outside them","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"+      - uses: docker/setup-compose-action@v2\n+        with:\n+          version: v5.7.0   # first release that grants Dockerfile, secret, ssh and cache paths\n// Linux host: upgrade the docker-compose-plugin package to 5.7.0\n// Docker Desktop: update once a release bundles Compose 5.7.0 or later"},"repro":"none","check":"docker compose version && docker compose build","notes":"Hits Dev Containers on Compose (temp Dockerfile-with-features), secret or ssh files outside the project, and build.network: host. Compose may print only \"failed to execute bake: exit status 1\"; --debug shows the line. Docker Desktop 4.98.0 notes list no Compose update past 5.6.1.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"5.6","status":"works"}],"dead_ends":[{"attempt":"downgrade buildx to 0.37.1","why":"reopens that high-severity advisory (consent skipped under rawjson); the missing grants are Compose's bug, fixed in 5.7.0","reports":1},{"attempt":"export BUILDX_BAKE_ENTITLEMENTS_FS=0 in the shell profile or CI env","why":"switches off bake's filesystem consent for every build, the check GHSA-gwr2-q96m-6682 restored; it does not cover network.host either","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"sources":["https://github.com/docker/compose/issues/14285","https://github.com/docker/compose/pull/14325","https://github.com/docker/compose/releases/tag/v5.7.0"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-05T18:24:42.36592Z","updated_at":"2026-11-23T18:40:23.612816Z","last_confirmed_at":null,"ledger":{"first_seq":132,"last_seq":527,"head_hash":"9b1cfe61f3a8d069fde4c43dc05402b287349d1e7ea9e2d570c07f94e138f39a"}}
