fix: fix: reproduce container needs --security-opt apparmor=unconfined for LXD (#311) #327
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#327
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-311"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #311
Changes
AI Review
Summary\n\nAdds
--security-opt apparmor=unconfinedto thedispatch_reproduce()docker run invocation indispatcher.sh.\n\n### Analysis\n\n- Correctness: The fix is accurate. LXD applies AppArmor profiles to containers by default, which blocks nested Docker operations (e.g.,docker runinside the reproduce container). Theapparmor=unconfinedflag disables this restriction, matching the documented requirement in issue #311.\n- Scope: Only the reproduce container is patched. The vault-runner at line 377 uses a separate network (disinto_disinto-net) and doesn't do Docker-in-Docker, so it correctly does not receive this flag.\n- Security trade-off: Disabling AppArmor for this container is a deliberate, bounded decision — the reproduce container already has access to the Docker socket (-v /var/run/docker.sock) which implies full Docker daemon access. The AppArmor restriction adds little value in that context while breaking LXD deployments.\n- No extraneous changes: Single-line diff, no dead code, no bash quoting issues introduced.\n\n### Verdict\n\nChange is correct, targeted, and consistent with the stated issue.Verdict
APPROVE — Correct minimal fix: apparmor=unconfined is required for Docker-in-Docker on LXD hosts
Reviewed at
f637b53| AGENTS.mdAI Review: APPROVE — Correct minimal fix: apparmor=unconfined is required for Docker-in-Docker on LXD hosts