Repository navigation
feat(taskpack): add dual-key allowDockerSocket capability for bwrap - #38
Merged
Merged
Conversation
Signed-off-by: thxCode <thxcode0824@gmail.com>
|
✅ OpenCodeReview: Review skipped: no items were selected. Reviewed |
…nc docs Signed-off-by: thxCode <thxcode0824@gmail.com>
…pshots Signed-off-by: thxCode <thxcode0824@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spec.execution.capabilities.allowDockerSocketcapability (defaultfalsein bothstrictandprivilegedmodes) and matchingaction.ymloperator unlockallow-docker-socket(default'false').validateExecutionAuthority+ compiled gate gating oneffectiveCheckNetworkMode === 'allow-outbound') and at execution time (startLocalCommandGateServerre-verifyingoptions.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.bwrapDocker socket bind-mounting viaDOCKER_SOCKET_CANDIDATES+appendDockerSocketBinds(never passed into Landlock directory-onlywritablePaths) and support top-leveloptions.allowDockerSocketinstageTaskpackForStep.parameters.envhost directories (reusingisSafeRuntimeToolDir(target, { allowTmpSubdir: true })) so stage-linked cache directories (such asAUTOSYNC_STAGE_DIR/go-mod) do not dangle insidebwrap.Cycle.prepareImplementationRepairprompt concisely to instruct agents to submitstatus: "blocked"when check failures originate in protected scripts or host environment rather than looping untilrepairNoProgress.docs/configuration/taskpack.md,docs/operations/github-action.md, anddocs/references/bootstrap-interview.mdforallowDockerSocket,command.v1filesystem mounts, strictLOOPWRIGHT_CHECK_OUTkeys ({ detail?, metrics?, findings? }), and repair early-stop behavior./kind feature
/area github-app
Related Issues
Relates #37
Verification
npm run buildnpm run typechecknpm run lintnpm run lint:docsnode --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.jsnode scripts/run-tests.mjs --pkg controller(313/313 passed after tightening repair prompt length)Signed-off-byDCO trailer present on all commits