Buildx bake requires the user to grant entitlements with --allow or an interactive prompt before a build reaches outside the working directory. Under --progress=rawjson that consent step is skipped.
Do not run bake with --progress=rawjson on untrusted definitions; another progress mode runs the consent gate.