Skip to content

bug(rule): Missing AppArmor Profile rule outdated #7967

@schdief

Description

@schdief

the rule https://github.com/Checkmarx/kics/blob/master/assets/queries/k8s/missing_app_armor_config/query.rego is outdated https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/24-apparmor#removing-annotation-support

proper setting should be

securityContext:
   appArmorProfile:
     type: RuntimeDefault

Expected Behavior

if new syntax is provided, rule shouldn't be violated

Actual Behavior

I get a security finding, which is not correct

Steps to Reproduce the Problem

we use Cx1, but just perform a KICS scan with the rule above and you will get an alert

Specifications

Cx1

Metadata

Metadata

Labels

bugSomething isn't workingcommunityCommunity contributionkubernetesKubernetes queryqueryNew query feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions