Drop unused agent-image apt deps #201
Reference in New Issue
Block a user
Delete Branch "drop-unused-image-deps"
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?
Summary
Removes three apt packages from
Dockerfile.claudeandDockerfile.codexthat no longer have a runtime caller:bot_bottle/ssh.py, which no longer exists.insteadOfrewrites route every declared upstream through HTTP / git-protocol (seegit_gate_render_gitconfig), andssh-keygenruns host-side frombot_bottle/contrib/gitea/deploy_key_provisioner.py.tests/integration/test_sandbox_escape.pyattack 4b, which runsdig +short @8.8.8.8from inside the agent container.Also splits
python3/python3-pip/python3-venvonto a separate RUN layer with a comment that they're app-specific and a candidate to move to a downstream image.Follow-up
The sandbox-escape integration test's attack 4b will now silently pass even if the network isolation regresses, because
digis no longer present in the image — the test should be reworked to installdnsutilsad hoc (or switch to a Pythonsocket.create_connection(("8.8.8.8", 53))probe, since python3 stays in the image). Not addressed in this PR to keep the scope tight.33fcecf91bto783e68cb74783e68cb74to39a5122f6839a5122f68to4eff49c9c5