You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We attempted to create it manually with Drop capabilities set to ALL in the policy section. Unfortunately, we receive such error at Review Policy step:
policy invalid error: error validating lifecycle stage error: policy configuration is invalid for deploy time: policy validation error: validation of section "Policy Section 1" error: policy criteria "Drop Capabilities" has invalid value[0]="ALL" must match regex "((?m)^(?i:(AUDIT_CONTROL|AUDIT_READ|AUDIT_WRITE|BLOCK_SUSPEND|CHOWN|DAC_OVERRIDE|DAC_READ_SEARCH|FOWNER|FSETID|IPC_LOCK|IPC_OWNER|KILL|LEASE|LINUX_IMMUTABLE|MAC_ADMIN|MAC_OVERRIDE|MKNOD|NET_ADMIN|NET_BIND_SERVICE|NET_BROADCAST|NET_RAW|SETGID|SETFCAP|SETPCAP|SETUID|SYS_ADMIN|SYS_BOOT|SYS_CHROOT|SYS_MODULE|SYS_NICE|SYS_PACCT|SYS_PTRACE|SYS_RAWIO|SYS_RESOURCE|SYS_TIME|SYS_TTY_CONFIG|SYSLOG|WAKE_ALARM))$)": invalid arguments
Hello.
Due to documentation https://access.redhat.com/documentation/ru-ru/red_hat_advanced_cluster_security_for_kubernetes/4.2/html/operating/default-security-policies rhacs has default Drop All Capabilities policy, but it lacks in stackrox v4.2.
We attempted to create it manually with Drop capabilities set to ALL in the policy section. Unfortunately, we receive such error at Review Policy step:
policy invalid error: error validating lifecycle stage error: policy configuration is invalid for deploy time: policy validation error: validation of section "Policy Section 1" error: policy criteria "Drop Capabilities" has invalid value[0]="ALL" must match regex "((?m)^(?i:(AUDIT_CONTROL|AUDIT_READ|AUDIT_WRITE|BLOCK_SUSPEND|CHOWN|DAC_OVERRIDE|DAC_READ_SEARCH|FOWNER|FSETID|IPC_LOCK|IPC_OWNER|KILL|LEASE|LINUX_IMMUTABLE|MAC_ADMIN|MAC_OVERRIDE|MKNOD|NET_ADMIN|NET_BIND_SERVICE|NET_BROADCAST|NET_RAW|SETGID|SETFCAP|SETPCAP|SETUID|SYS_ADMIN|SYS_BOOT|SYS_CHROOT|SYS_MODULE|SYS_NICE|SYS_PACCT|SYS_PTRACE|SYS_RAWIO|SYS_RESOURCE|SYS_TIME|SYS_TTY_CONFIG|SYSLOG|WAKE_ALARM))$)": invalid arguments
This is pretty strange as due to source of https://github.com/stackrox/stackrox/blob/dd575bc009f1289f31c374f99673ef1e0372de3a/pkg/booleanpolicy/value_regex.go#L23C9-L23C9 it uses addCapabilitiesValueRegex with Drop capability policy criteria instead of dropCapabilitiesValueRegex
The text was updated successfully, but these errors were encountered: