For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/k8s/service_account_admission_control_plugin_disabled.md.
A documentation index is available at /llms.txt.
When kube-apiserver is used, the --disable-admission-plugins flag should not include the ServiceAccount plugin. Disabling the ServiceAccount admission plugin prevents the API server from admitting service account tokens and can break pod authentication and credential provisioning. This rule detects kube-apiserver containers and examines the container command for the --disable-admission-plugins flag containing ServiceAccount.