Test the evaluation of Docker ports in the security report #68

Closed
iac-ws wants to merge 0 commits from security-report-docker-tests into main
Member

Refs #42

Der Sicherheitsbericht findet Docker-Ports aus den DNAT-Regeln in nat/DOCKER, nicht aus einem Listener. Dieser Weg (kein docker-proxy, UDP, Portbereiche, IPv6, Loopback) lief bisher nur gegen Beispieldaten.

  • Aufgezeichnete nat-Tabellen eines Docker 26 (userland-proxy aus, IPv6 an) als Fixture, tests/host.sh wertet sie mit dem jq-Programm von iac-security-report aus.
  • check-modules.sh führt ein tests/host.sh des Moduls nach dem Smoke-Test aus.
  • Die Guides nennen, was zählt.

Geprüft: host.sh grün, und rot bei zerstörtem Kettennamen und bei entferntem Loopback-Filter; tools/check-modules.sh security-report grün; tools/lint.sh . grün. Nicht geprüft: Docker 29 mit nativen nftables-Regeln.

Refs #42 Der Sicherheitsbericht findet Docker-Ports aus den DNAT-Regeln in nat/DOCKER, nicht aus einem Listener. Dieser Weg (kein docker-proxy, UDP, Portbereiche, IPv6, Loopback) lief bisher nur gegen Beispieldaten. - Aufgezeichnete nat-Tabellen eines Docker 26 (userland-proxy aus, IPv6 an) als Fixture, `tests/host.sh` wertet sie mit dem jq-Programm von iac-security-report aus. - `check-modules.sh` führt ein `tests/host.sh` des Moduls nach dem Smoke-Test aus. - Die Guides nennen, was zählt. Geprüft: host.sh grün, und rot bei zerstörtem Kettennamen und bei entferntem Loopback-Filter; `tools/check-modules.sh security-report` grün; `tools/lint.sh .` grün. Nicht geprüft: Docker 29 mit nativen nftables-Regeln.
Test the evaluation of Docker ports in the security report
All checks were successful
/ lint (push) Successful in 13s
/ lint (pull_request) Successful in 12s
da477c155b
The report finds Docker ports from the DNAT rules in nat/DOCKER, not from
a listener. That path (no docker-proxy, UDP, port ranges, IPv6, loopback)
had only run against sample data.

Record the nat tables of a Docker 26 with userland-proxy off and IPv6 on
(published: 8080/tcp, 5353/udp, 8100-8102/tcp, [::]:7070/tcp, and
127.0.0.1:9090/tcp) and evaluate them with the jq program of
iac-security-report in tests/host.sh. check-modules.sh runs a tests/host.sh
of a module after its smoke test. The guides name what counts.

Tested: tests/host.sh green and red when the DOCKER chain name or the
loopback filter is broken; tools/check-modules.sh security-report green
(smoke, idempotent, removal); tools/lint.sh green.
kevinheyer closed this pull request 2026-11-24 09:05:26 +01:00
All checks were successful
/ lint (push) Successful in 13s
/ lint (pull_request) Successful in 12s

Pull request closed

Sign in to join this conversation.
No description provided.