Cortex CloudApplication Security
The --audit-log-maxage argument is not set appropriately misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_K8S_92
Category - Subcategory
Kubernetes - Logging And Monitoring
Provider
OTHER
Severity
LOW
Framework
Helm, Kubernetes, Kustomize
Impact
Retain the logs for at least 30 days or as appropriate. Retaining logs for at least 30 days ensures that you can go back in time and investigate or correlate any events. Set your audit log retention period to 30 days or as per your business requirements.
How to Fix
Kind: Pod [source,go]
{ "apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: component: kube-apiserver tier: control-plane name: kube-apiserver namespace: kube-system spec: containers:
command:
kube-apiserver
--audit-log-maxage=40 image: gcr.io/google_containers/kube-apiserver-amd64:v1.6.0 ...", }
PreviousThe --audit-log-path argument is not set misconfiguration detected in code
NextThe --audit-log-maxbackup argument is not set appropriately misconfiguration detected in code
Last updated
Was this helpful?
