For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

The --audit-log-maxbackup argument is not set appropriately misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_K8S_93

Category - Subcategory

Kubernetes - Logging And Monitoring

Provider

OTHER

Severity

LOW

Framework

Helm, Kubernetes, Kustomize

Impact

Retain 10 or an appropriate number of old log files. Kubernetes automatically rotates the log files. Retaining old log files ensures that you would have sufficient log data available for carrying out any investigation or correlation. For example, if you have set file size of 100 MB and the number of old log files to keep as 10, you would approximate have 1 GB of log data that you could potentially use for your analysis.

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-maxbackup=15 image: gcr.io/google_containers/kube-apiserver-amd64:v1.6.0 ...", }


Last updated

Was this helpful?