Egress control fails open at trial start under Podman: the second `compose up` recreates the sidecar
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- docker, linux, python
- Domain
- devops, networking, security
Research direction
Locate the start() sequence and _wait_until_egress_sidecar_ready() helper that manage the egress sidecar when supports_compose_wait is false. Add the readiness wait after the second compose up so the main service cannot start before the sidecar applies its rules. Verify with the described Podman trial: the external probe must be blocked from t=0, and confirm the sidecar is not recreated during the second up.
Written by the indexing model from the issue text.
Description
Harbor 0.27.0, -e podman, rootless Podman 4.9.3 (Ubuntu 24.04), compose provider podman compose -> docker-compose 2.40.3.
With supports_compose_wait=False, start() brings up the egress sidecar alone, waits for its ready file, then runs a second up --detach for all services. In our runs that second up recreates the sidecar, and the main container starts before the new sidecar has applied its nftables rules. Nothing waits for the ready file again, and the main service depends on the sidecar with condition: service_started only.
podman events for one no-network trial:
15:57:01.633 start ...-egress-control-sidecar-1
15:57:05.203 create c93b5c28e301_...-egress-control-sidecar-1 (old container renamed)
15:57:05.268 died ...-egress-control-sidecar-1
15:57:05.835 start ...-egress-control-sidecar-1 (new container)
15:57:05.893 start ...-main-1 (58 ms later)
The task's solution curls an external host once per second from t=0: t=0 returns HTTP 200, t>=1 s is blocked.
Calling _wait_until_egress_sidecar_ready() again after the second up when supports_compose_wait is False closes the window for us: every probe is blocked from t=0. The start() sequence is the same on main (cf4bd004).
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 1.9k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 156
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 harbor-framework/harbor
-
Trial runs the agent's `populate_context_post_run` on the event loop, so trials that end together stall the orchestrator for secondsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
harbor-framework/harbor#4652 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
harbor-framework/harbor#4494 · 1 comment ·
Maintainers usually reply within 1 day
-
step workdir upload resets the work folder's owner and permissions in ModalPossibly taken @Sauvi72 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
harbor-framework/harbor#4487 · 3 comments ·
Maintainers usually reply within 1 day
-
Docker: verifier log mounts are chmod 777 (no sticky), so rewardkit sandboxed graders die before writing a rewardPossibly taken @yuyz-cyber claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
harbor-framework/harbor#4469 · 1 comment ·
Maintainers usually reply within 1 day
-
Compare and Pareto hide total token usage when the cached token count is missingPossibly taken @Aafimalek claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
harbor-framework/harbor#4448 ·
Maintainers usually reply within 1 day
All issues in harbor-framework/harbor
Similar issues
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePossibly taken @abdulwaarith0 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MakazhanAlpamys/Soup#3690 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug data-types native-format
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ClickHouse/clickhouse-connect#1320 ·
Maintainers usually reply within 1 day
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
future-agi/future-agi#6392 ·
Maintainers usually reply within 1 day