Fix scan finding nothing on remote Docker daemons #10

Merged
james merged 2 commits from fix/remote-daemon-bind-mount into main 2026-09-05 02:41:56 +00:00
Owner

'docker run -v $PWD:/src' is a bind mount, resolved by the DAEMON's
own filesystem -- not the client's. security-scan.yml's DOCKER_HOST
points at a sibling daemon (a different container/host entirely), so
the mount silently attached nothing and every scan reported zero
findings against an empty directory. Confirmed against the actual
balam CI artifact: {"target": "."} with no findings/issues keys at
all, exactly what an empty-directory scan produces.

run_ojo_fs replaces the bind mount with docker create + docker cp +
docker start: cp streams files through the Docker API, which works
regardless of where the daemon actually lives. Verified locally via
podman against the real ghcr.io/colibrisec/ojo image and the balam
repo -- finds real findings now.

'docker run -v $PWD:/src' is a bind mount, resolved by the DAEMON's own filesystem -- not the client's. security-scan.yml's DOCKER_HOST points at a sibling daemon (a different container/host entirely), so the mount silently attached nothing and every scan reported zero findings against an empty directory. Confirmed against the actual balam CI artifact: {"target": "."} with no findings/issues keys at all, exactly what an empty-directory scan produces. run_ojo_fs replaces the bind mount with docker create + docker cp + docker start: cp streams files through the Docker API, which works regardless of where the daemon actually lives. Verified locally via podman against the real ghcr.io/colibrisec/ojo image and the balam repo -- finds real findings now.
Fix scan finding nothing on remote Docker daemons
Some checks failed
test / test (pull_request) Failing after 6s
43a4d7ff8d
'docker run -v $PWD:/src' is a bind mount, resolved by the DAEMON's
own filesystem -- not the client's. security-scan.yml's DOCKER_HOST
points at a sibling daemon (a different container/host entirely), so
the mount silently attached nothing and every scan reported zero
findings against an empty directory. Confirmed against the actual
balam CI artifact: {"target": "."} with no findings/issues keys at
all, exactly what an empty-directory scan produces.

run_ojo_fs replaces the bind mount with docker create + docker cp +
docker start: cp streams files through the Docker API, which works
regardless of where the daemon actually lives. Verified locally via
podman against the real ghcr.io/colibrisec/ojo image and the balam
repo -- finds real findings now.
Merge branch 'main' into fix/remote-daemon-bind-mount
All checks were successful
test / test (pull_request) Successful in 10s
3b7e74d9c1
james merged commit 7ea079c8ec into main 2026-09-05 02:41:56 +00:00
james deleted branch fix/remote-daemon-bind-mount 2026-09-05 02:41:57 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ColibriSec/ojo-forgejo!10
No description provided.