QuestionQ53

VerifiedKubernetes Security Fundamentals

AppArmor profiles that prevent access to sensitive resources have been loaded on a Node, yet Pods running on that Node can still access those resources.

How should the Pods be configured so that the AppArmor profiles correctly constrain them?

Explanation

A node-loaded AppArmor profile is enforced for a container only when the Pod configuration explicitly assigns that profile. In the annotation-based configuration, the Pod manifest must include the correct container.apparmor.security.beta.kubernetes.io/<container-name>: localhost/<profile-name> annotation. Current Kubernetes releases use securityContext.appArmorProfile instead; the annotation mechanism was used before Kubernetes v1.30.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!