Skip to content

feat(taskpack): add dual-key allowDockerSocket capability for bwrap - #38

Merged
thxCode merged 3 commits into
mainfrom
feat/allow-docker-socket-capability
Nov 22, 2026
Merged

thxCode merged 3 commits into
mainfrom
feat/allow-docker-socket-capability

Conversation

@thxCode

@thxCode thxCode commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a distinct, dual-key spec.execution.capabilities.allowDockerSocket capability (default false in both strict and privileged modes) and matching action.yml operator unlock allow-docker-socket (default 'false').
  • Enforce host authority both at compile time (validateExecutionAuthority + compiled gate gating on effectiveCheckNetworkMode === 'allow-outbound') and at execution time (startLocalCommandGateServer re-verifying options.hostPolicy.allowDockerSocket === true && options.hostPolicy.allowPrivileged === true), emitting a scrubbed log line both when the Docker socket is delegated and when delegation is skipped or unavailable.
  • Deduplicate Linux bwrap Docker socket bind-mounting via DOCKER_SOCKET_CANDIDATES + appendDockerSocketBinds (never passed into Landlock directory-only writablePaths) and support top-level options.allowDockerSocket in stageTaskpackForStep.
  • Resolve direct top-level child symlink targets inside manifest-declared parameters.env host directories (reusing isSafeRuntimeToolDir(target, { allowTmpSubdir: true })) so stage-linked cache directories (such as AUTOSYNC_STAGE_DIR/go-mod) do not dangle inside bwrap.
  • Update Cycle.prepareImplementationRepair prompt concisely to instruct agents to submit status: "blocked" when check failures originate in protected scripts or host environment rather than looping until repairNoProgress.
  • Sync docs/configuration/taskpack.md, docs/operations/github-action.md, and docs/references/bootstrap-interview.md for allowDockerSocket, command.v1 filesystem mounts, strict LOOPWRIGHT_CHECK_OUT keys ({ detail?, metrics?, findings? }), and repair early-stop behavior.

/kind feature
/area github-app

Related Issues

Relates #37

Verification

  • npm run build
  • npm run typecheck
  • npm run lint
  • npm run lint:docs
  • node --test .test-build/packages/taskpack/test/delegated.test.js .test-build/packages/cli/test/docs-and-site.test.js .test-build/packages/taskpack/test/turnkey.test.js
  • node scripts/run-tests.mjs --pkg controller (313/313 passed after tightening repair prompt length)
  • Signed-off-by DCO trailer present on all commits

Signed-off-by: thxCode <thxcode0824@gmail.com>
@gpustack-code-review

gpustack-code-review Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review skipped: no items were selected.

Reviewed a5736de..c4c0fb6 only; earlier commits in this PR were reviewed in a previous run.

Comment thread docs/configuration/taskpack.md Resolved
Comment thread packages/taskpack/src/taskpack.ts Resolved
Comment thread packages/taskpack/src/turnkey.ts Resolved
Comment thread packages/taskpack/src/turnkey.ts Resolved
Comment thread packages/taskpack/src/turnkey.ts Resolved
…nc docs

Signed-off-by: thxCode <thxcode0824@gmail.com>
…pshots

Signed-off-by: thxCode <thxcode0824@gmail.com>
@thxCode
thxCode merged commit 3275576 into main Nov 22, 2026
15 checks passed
@thxCode
thxCode deleted the feat/allow-docker-socket-capability branch November 22, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant