Skip to content

Move restricted egress enforcement outside the workload and record network evidence #38

Description

@justsml

This was generated by AI during triage.

Goal

Make restricted egress externally enforced and independently observable, rather than relying on a root process inside the workload to maintain iptables rules.

Scope

  • Replace or minimize in-container NET_ADMIN/NET_RAW enforcement with a host-level or dedicated gateway/sidecar enforcement adapter.
  • Emit durable network evidence for DNS resolutions and connection attempts, including allow/deny disposition, destination, port, policy ID, and run/tool correlation.
  • Fail closed for direct DNS/proxy bypass and out-of-policy destinations.
  • Preserve offline, package-egress, approved-targets, and explicitly approved full modes.

Acceptance criteria

  • An approved-target workload cannot reach a non-approved host or restricted subnet.
  • Network evidence distinguishes allowed, denied, and enforcement-unavailable outcomes.
  • Tests cover ordinary approved traffic and bypass/restricted-destination attempts.

Dependencies

Should consume the containment-policy contract when available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: XLVery large design and implementation scopeenhancementNew feature or requestpriority: criticalContainment or safety work with unacceptable risk if deferredready-for-agentReady for an implementation agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions