Problem Statement
The proxy-mode bypass-detection firewall rules are installed by shelling out to the nft binary — 6 call sites (run_nft) in crates/openshell-supervisor-process/src/netns/mod.rs — resolved from the workload image (NFT_SEARCH_PATHS). A bare Alpine image ships no nftables, so rule installation cannot run without the community base image's tools.
Proposed Design
Program the nf_tables ruleset directly over netlink from the supervisor (e.g. rustables or nftnl-rs), producing the same table/chain/rule set the current nft invocations create, with no nft process spawned. Rule installation stays best-effort/non-fatal exactly as today (failures reported via OCSF).
Acceptance Criteria
Scope
In: the nft bypass-rule installation in netns/mod.rs.
Out: the ip/nsenter namespace setup (sibling issue) and dmesg→NFLOG bypass monitoring (#2382).
Related
Problem Statement
The proxy-mode bypass-detection firewall rules are installed by shelling out to the
nftbinary — 6 call sites (run_nft) incrates/openshell-supervisor-process/src/netns/mod.rs— resolved from the workload image (NFT_SEARCH_PATHS). A bare Alpine image ships no nftables, so rule installation cannot run without the community base image's tools.Proposed Design
Program the nf_tables ruleset directly over netlink from the supervisor (e.g.
rustablesornftnl-rs), producing the same table/chain/rule set the currentnftinvocations create, with nonftprocess spawned. Rule installation stays best-effort/non-fatal exactly as today (failures reported via OCSF).Acceptance Criteria
nft.nftpath.Scope
In: the
nftbypass-rule installation innetns/mod.rs.Out: the
ip/nsenternamespace setup (sibling issue) anddmesg→NFLOG bypass monitoring (#2382).Related