Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KubeauditLogLevels = map[string]kubeaudit.SeverityLevel{ "error": kubeaudit.Error, "warn": kubeaudit.Warn, "warning": kubeaudit.Warn, "info": kubeaudit.Info, }
KubeauditLogLevels represents an enum for the supported log levels.
View Source
var RootCmd = &cobra.Command{
Use: "kubeaudit",
Short: "A Kubernetes security auditor",
Long: `🚨 Deprecation Notice 🚨
Kubeaudit is planned for deprecation by October 2024.
We are actively seeking maintainers who are interested in taking over the stewardship of this project. If you are passionate about continuing its development and maintenance, please reach out to us.
For users looking for alternatives, we recommend transitioning to Kubebench, which offers similar functionality and is actively maintained.
Thank you to the community for your contributions and support.
--------------------------------------------------------------------
Kubeaudit audits Kubernetes clusters for common security controls.
kubeaudit has three modes:
1. Manifest mode: If a Kubernetes manifest file is provided using the -f/--manifest flag, kubeaudit will audit the manifest file. Kubeaudit also supports autofixing in manifest mode using the 'autofix' command. This will fix the manifest in-place. The fixed manifest can be written to a different file using the -o/--out flag.
2. Cluster mode: If kubeaudit detects it is running in a cluster, it will audit the other resources in the cluster.
3. Local mode: kubeaudit will try to connect to a cluster using the local kubeconfig file ($HOME/.kube/config). A different kubeconfig location can be specified using the -c/--kubeconfig flag
`,
}
RootCmd defines the shell command usage for kubeaudit.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.