Compose: any service on the default network can create containers through the docker-socket-proxy
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Read docker-compose.yml and the compose test that pins the socket proxy settings; update the network access, explicit image defaults, and related compose comment. Check docs/ISSUES.md I-171 and coordinate the EVENTS=1 requirement with K-4 (#12). Done when the test covers EVENTS, PING, and VERSION, and I-171 is updated; rebuilding the stack and checking process runs, image scans, and API isolation are lead-only steps.
Written by the indexing model from the issue text.
Description
Queue: K (#2) · found during K-3's review (#11) · docs/ISSUES.md I-171
In docker-compose.yml the docker-socket-proxy sits on the default network with CONTAINERS=1, IMAGES=1 and POST=1. It is meant for the pipeline only, but database, api, auth-proxy, keycloak, minio, titiler, tipg, cube-server and the init jobs can all reach it, so a compromised service there can create and start containers on the Docker host (and read other containers' environments through GET /containers/{id}/json). This predates K-3, which only added the read-only INFO=1. Process-run containers are not affected: they are on the separate process-runs network.
This is the local compose stack, not the Kubernetes deployment (which has no socket proxy).
Task
- Put the proxy on its own network shared only with the pipeline, and take it off the default network.
- Pin the image's implicit defaults explicitly (
EVENTS,PING,VERSIONare on by default in tecnativa's image) and extend the compose test that pins the proxy's settings to cover them. Coordinate with K-4 (#12), whose watcher needsEVENTS=1. - Update I-171 and the compose comment.
Lead-only steps
Rebuild the stack and confirm a process run and an image scan still work, and that curl docker-socket-proxy:2375/containers/json from the api container no longer connects.
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 8h 26m
- Merged PRs (30d)
- 47
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TechTraverse/stac-higher
-
ci
Difficulty 1/5 Under an hour Newbie friendliness 85/100
TechTraverse/stac-higher#261 ·
Maintainers usually reply within 1 day
-
ready
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TechTraverse/stac-higher#258 ·
Maintainers usually reply within 1 day
-
Error messages hide the server's reason: users see only '400 Bad Request'Possibly taken @aman-code-io claimed this 3 days ago. Openbug good first issue ready
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
TechTraverse/stac-higher#232 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
TechTraverse/stac-higher#225 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
TechTraverse/stac-higher#216 ·
Maintainers usually reply within 1 day
All issues in TechTraverse/stac-higher
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day