abundant-apple-86556
04/25/2025, 8:05 PMNvSecurityRule
to allow-list extra processes on the neuvector controller pods themselves?quaint-candle-18606
04/25/2025, 8:13 PMabundant-apple-86556
04/25/2025, 8:14 PMabundant-apple-86556
04/25/2025, 8:17 PMcat /tmp/ready
probes have a different path for cat (still trying to figure out the exact "why") so I was trying to test allowing cat with that path for the controllers.abundant-apple-86556
04/25/2025, 8:18 PMabundant-apple-86556
04/25/2025, 8:48 PM2025-04-25T20:45:14.319|DEBU|AGT|probe.(*Probe).IsAllowedShieldProcess: SHD: - id=c95d66a01fea6c59d66d10bcae084aacbde4025d0b35c3741085dfe05831aa07 pid=61161 ppe=&{Name:cat Path:/usr/bin/coreutils User:root Uid:0 Hash:[] Action:deny CfgType:0 CreatedAt:0001-01-01 00:00:00 +0000 UTC UpdatedAt:0001-01-01 00:00:00 +0000 UTC Uuid:00000000-0000-0000-0000-000000000000 DerivedGroup: AllowFileUpdate:false ProbeCmds:[]} proc=&{pname:runc ppath:/x86_64-bottlerocket-linux-gnu/sys-root/usr/bin/runc name:cat path:/usr/bin/coreutils cmds:[/usr/bin/coreutils --coreutils-prog-shebang=cat /usr/bin/cat /tmp/ready ] user:root pid:61161 ppid:61152 sid:1966 pgid:59414 ruid:0 euid:0 retry:0 inspectTimes:0 startTime:{wall:13977795514742820424 ext:62744828455 loc:0x4ed7240} lastScanTime:{wall:13977795514742820424 ext:62744828455 loc:0x4ed7240} scanTimes:0 reported:64 action:allow riskyChild:false riskType: execScanDone:false}
abundant-apple-86556
04/25/2025, 8:48 PMabundant-apple-86556
04/25/2025, 8:56 PMswitch path {
case "/usr/bin/cat": // k8s readiness probe
This is the new process allow logic I think? Which wouldn't support cat being provided by a multicall binary like busybox/coreutils.abundant-apple-86556
04/25/2025, 9:38 PMquaint-candle-18606
04/25/2025, 9:40 PMabundant-apple-86556
04/25/2025, 9:42 PMcat /tmp/ready
. It seems like if I use the cat
process from the image at all, NeuVector is (correctly) going to detect that the path is coreutils path and block it? From what I can tell that "allowed cat path" is hardcoded here (along with some other allowed paths). Haven't yet found a hook into there to allow other processes.abundant-apple-86556
04/25/2025, 9:51 PMquaint-candle-18606
04/25/2025, 10:20 PMabundant-apple-86556
04/25/2025, 10:32 PMquaint-candle-18606
04/25/2025, 11:46 PM