Module k8s_auth

Module k8s_auth 

Source
Expand description

Kubernetes authentication analysis command.

Analyzes Kubernetes auth method usage to understand service account access patterns and identify high-volume K8s clients. Supports multi-file analysis for tracking over time.

§Usage

# Single file analysis
vault-audit k8s-auth audit.log

# Multi-day analysis with CSV export
vault-audit k8s-auth logs/*.log --output k8s-usage.csv

§Output

Displays or exports Kubernetes authentication statistics:

  • Service account name
  • Namespace
  • Pod name (if available)
  • Authentication count
  • Associated entity ID

Helps identify:

  • Most active K8s service accounts
  • Service accounts with excessive auth requests
  • K8s authentication patterns by namespace
  • Pods making frequent Vault requests

Functions§

run