Is there an existing issue for this?
Environment
- OS: Ubuntu
- Architecture: x86
- Cluster: RKE2
Issue Description
- Expected behavior: After acknowledging violation id 2, future violation should show up for same process
- Current behavior: id 3 showed up for cat, but remaining 15+ violations records are not updated.
- Steps to reproduce:
- After acknowledging ViolationID 2, I tried executing "cat" once and observed ViolationID "3" showing up.
- Then I tried multiple "cat" process execution(within few seconds back to back), no violations showed up on the policy, but the "Violation Count" stats were incrementing.
- Then tried a different process "whoami", the violation showed up again.
Below the policy CR with violations and stats.
ubuntu@master-node-01 16:46:47:~/runtime-enforcer/charts/runtime-enforcer$ kubectl get wp deploy-ubuntu-deployment-1 -o yaml
apiVersion: security.rancher.io/v1alpha1
kind: WorkloadPolicy
metadata:
creationTimestamp: "2026-07-16T21:38:52Z"
generation: 2
labels:
security.rancher.io/promoted-from: deploy-ubuntu-deployment-1
name: deploy-ubuntu-deployment-1
namespace: default
resourceVersion: "42299592"
uid: 5f79911a-2a87-4cfe-a00f-2724642db2b5
spec:
mode: protect
rulesByContainer:
ubuntu:
executables:
allowed:
- /usr/bin/bash
- /usr/lib/cargo/bin/coreutils/sleep
- /usr/lib/cargo/bin/coreutils/ls
status:
acknowledgedViolations:
- acknowledgedAt: "2026-07-17T16:11:31Z"
reason: Using cat is accepted
violation:
action: protect
containerName: ubuntu
executablePath: /usr/lib/cargo/bin/coreutils/cat
id: 2
nodeName: susesecurity-worker-02
podName: ubuntu-deployment-1-67c858dbcb-mj8kh
timestamp: "2026-07-17T16:09:24Z"
workloadKind: Deployment
workloadName: ubuntu-deployment-1
activeViolationCount: 4
observedGeneration: 2
phase: Ready
successfulNodes: 3
totalNodes: 3
violationCount: 24
violations:
- action: protect
containerName: ubuntu
executablePath: /usr/lib/cargo/bin/coreutils/whoami
id: 23
nodeName: susesecurity-worker-02
podName: ubuntu-deployment-1-67c858dbcb-mj8kh
timestamp: "2026-07-17T16:40:07Z"
workloadKind: Deployment
workloadName: ubuntu-deployment-1
- action: protect
containerName: ubuntu
executablePath: /usr/lib/cargo/bin/coreutils/cat
id: 3
nodeName: susesecurity-worker-02
podName: ubuntu-deployment-1-67c858dbcb-mj8kh
timestamp: "2026-07-17T16:29:17Z"
workloadKind: Deployment
workloadName: ubuntu-deployment-1
- action: protect
containerName: ubuntu
executablePath: /usr/lib/cargo/bin/coreutils/dircolors
id: 0
nodeName: susesecurity-worker-02
podName: ubuntu-deployment-1-67c858dbcb-mj8kh
timestamp: "2026-07-17T16:07:35Z"
workloadKind: Deployment
workloadName: ubuntu-deployment-1
- action: protect
containerName: ubuntu
executablePath: /runc
id: 1
nodeName: susesecurity-worker-02
podName: ubuntu-deployment-1-67c858dbcb-mj8kh
timestamp: "2026-07-17T16:07:35Z"
workloadKind: Deployment
workloadName: ubuntu-deployment-1
Is there an existing issue for this?
Environment
Issue Description
Below the policy CR with violations and stats.