API Surface Issue
Category
Unused export / Dead code in security-critical module
Summary
Evidence
$ grep -rw "cleanupFirewallNetwork" src/ --include="*.ts" | grep -v test
src/host-iptables-network.ts:56:export async function cleanupFirewallNetwork(): Promise<void> {
$ grep -rw "cleanupFirewallNetwork" src/ --include="*.ts"
src/host-iptables-network.test.ts:import { cleanupFirewallNetwork } from './host-iptables-network';
src/host-iptables-network.test.ts: describe('cleanupFirewallNetwork', () => {
src/host-iptables-network.test.ts: await cleanupFirewallNetwork();
src/host-iptables-network.test.ts: await expect(cleanupFirewallNetwork()).resolves.not.toThrow();
src/host-iptables-network.ts:56:export async function cleanupFirewallNetwork(): Promise<void> {
No production module imports or calls cleanupFirewallNetwork. The public barrel src/host-iptables.ts does not re-export it.
Recommended Fix
- For unused exports: If the function is test-only teardown logic, remove the
export keyword to make it module-private.
- If it has a real production role, add it to the public barrel
src/host-iptables.ts alongside ensureFirewallNetwork.
Impact
- Dead code risk: High — exported symbol in security-critical iptables module unreachable from public API
- Maintenance burden: Medium — future refactors may silently break this export
Prior Issue
Regression from #3220 (closed as completed on 2026-05-15).
Detected by Export Audit workflow. Triggered by push to main on 2026-05-27
Generated by API Surface & Export Audit · sonnet46 973.1K · ◷
API Surface Issue
Category
Unused export / Dead code in security-critical module
Summary
src/host-iptables-network.tscleanupFirewallNetwork(line 56)cleanupFirewallNetworkin security-critical module #3220 was closed as completed, but the export persists.Evidence
No production module imports or calls
cleanupFirewallNetwork. The public barrelsrc/host-iptables.tsdoes not re-export it.Recommended Fix
exportkeyword to make it module-private.src/host-iptables.tsalongsideensureFirewallNetwork.Impact
Prior Issue
Regression from #3220 (closed as completed on 2026-05-15).
Detected by Export Audit workflow. Triggered by push to main on 2026-05-27