Skip to content

feat: add native container awareness and cgroup rule operands - #1658

Open
adrian-lin-1-0-0 wants to merge 1 commit into
evilsocket:masterfrom
adrian-lin-1-0-0:feat/container-awareness
Open

feat: add native container awareness and cgroup rule operands#1658
adrian-lin-1-0-0 wants to merge 1 commit into
evilsocket:masterfrom
adrian-lin-1-0-0:feat/container-awareness

Conversation

@adrian-lin-1-0-0

Copy link
Copy Markdown

Summary

This PR adds container awareness to OpenSnitch so connections can be identified as
coming from Docker, Podman, Containerd, and related cgroup-based workloads.

It also exposes that context in the rule prompt, allowing rules to target either
a specific container instance or a broader container runtime/group.

What Changed

  • daemon: parse /proc/<pid>/cgroup and process environment to detect container context
  • daemon: add configurable cgroup monitors for supported runtimes
  • rule engine: add operands for container/cgroup-based matching
  • UI: show container context in the prompt and offer container-scoped rule options
  • plumbing: pass container metadata through the existing connection/process env path

DEMO:
image
image

@adrian-lin-1-0-0
adrian-lin-1-0-0 marked this pull request as draft August 24, 2026 14:38
@adrian-lin-1-0-0
adrian-lin-1-0-0 force-pushed the feat/container-awareness branch from 1c71fe1 to d96445c Compare August 24, 2026 16:37
@adrian-lin-1-0-0
adrian-lin-1-0-0 marked this pull request as ready for review August 24, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant