Record blocked hosts in trial output when using a network allowlist
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 49/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, observability
Research direction
Start by tracing how Harbor configures the gost egress sidecar and saves per-trial outputs; the issue does not name those files or tests. Check how the sidecar can expose blocked host and port details with the active agent or verifier phase, then how trial output and result.json are written. Done means blocked connections are saved per trial and per-phase counts appear in result.json; verify both phases, including an empty summary.
Written by the indexing model from the issue text.
Description
When a task runs with a network allowlist (network_mode = "allowlist"), Harbor's egress sidecar (gost) blocks disallowed hosts, but trial outputs never record which hosts were blocked. Please capture blocked hosts per trial so task authors don't have to guess from tool errors in agent transcripts or verifier logs.
gost already logs the host at debug level (for example, {"msg":"bypass: github.com:443","dst":"github.com:443","sid":"..."}), whereas the default level only emits {"level":"error","msg":"bypass","sid":"..."} and sidecar logs aren't saved with the trial.
- Record blocked connections with their host in the egress sidecar (for example, by raising gost's log level or adding a bypass log) and tag each entry with the active phase (agent or verifier).
- Save the blocked connections with the trial output, such as
<trial>/network/blocked.jsonlwith time, phase, host, and port. - Include a per-phase summary in
result.json(for example,network: {agent: {blocked: {"github.com": 3}}, verifier: {blocked: {}}}) so viewers and tooling can surface blocks without parsing logs.
This makes missing allowlist entries immediately visible. In a 15-task sweep under an allowlist, two failures—a verifier git clone and a hung Gradle build—took manual log digging to trace back to blocked hosts.
Tested with Harbor 0.24.0 and gost 3.2.7-nightly.20260602. Note that the debug log line above came from gost's HTTP handler; the sidecar uses the red handler with sniffing, which should log the sniffed host similarly, though we haven't confirmed it.
- 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 8 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