Documentation
¶
Index ¶
- Constants
- Variables
- func Execute()
- type Capability
- type Container
- type DaemonSet
- type DaemonSetList
- type DebugHook
- type Deployment
- type DeploymentList
- type Items
- type ListOptions
- type NamespaceList
- type NetworkPolicy
- type NetworkPolicyList
- type Occurrence
- type Pod
- type PodList
- type ReplicationController
- type ReplicationControllerList
- type Result
- type StatefulSet
- type StatefulSetList
Constants ¶
View Source
const ( KubeauditInternalError ErrorAllowPrivilegeEscalationNIL ErrorAllowPrivilegeEscalationTrue ErrorCapabilitiesAdded ErrorCapabilitiesNIL ErrorCapabilitiesNoneDropped ErrorCapabilitiesSomeDropped ErrorImageTagIncorrect ErrorImageTagMissing ErrorPrivilegedNIL ErrorPrivilegedTrue ErrorReadOnlyRootFilesystemFalse ErrorReadOnlyRootFilesystemNIL ErrorRunAsNonRootFalse ErrorRunAsNonRootNIL ErrorSecurityContextNIL ErrorServiceAccountTokenDeprecated ErrorServiceAccountTokenNIL ErrorServiceAccountTokenNILAndNoName ErrorServiceAccountTokenNoName ErrorServiceAccountTokenTrueAndNoName InfoImageCorrect )
View Source
const ( Error Warn Info Debug )
View Source
const Version = "0.1.0"
Variables ¶
View Source
var KubeauditLogLevel = Info
View Source
var KubeauditLogLevels = map[string]int{"ERROR": Error, "WARN": Warn, "INFO": Info, "DEBUG": Debug}
View Source
var RootCmd = &cobra.Command{
Use: "kubeaudit",
Short: "A Kubernetes security auditor",
Long: `kubeaudit is a program that will help you audit
your Kubernetes clusters. Specify -l to run kubeaudit using ~/.kube/config
otherwise it will attempt to create an in-cluster client.
#patcheswelcome`,
}
Functions ¶
Types ¶
type Capability ¶ added in v0.2.0
type Capability = apiv1.Capability
type DaemonSet ¶ added in v0.2.0
type DaemonSet = extensionsv1beta1.DaemonSet
type DaemonSetList ¶ added in v0.2.0
type DaemonSetList = extensionsv1beta1.DaemonSetList
type Deployment ¶ added in v0.2.0
type Deployment = v1beta1.Deployment
type DeploymentList ¶ added in v0.2.0
type DeploymentList = v1beta1.DeploymentList
type ListOptions ¶ added in v0.2.0
type ListOptions = metav1.ListOptions
type NamespaceList ¶ added in v0.2.0
type NamespaceList = apiv1.NamespaceList
type NetworkPolicy ¶ added in v0.2.0
type NetworkPolicy = networking.NetworkPolicy
type NetworkPolicyList ¶ added in v0.2.0
type NetworkPolicyList = networking.NetworkPolicyList
type Occurrence ¶ added in v0.2.0
type Occurrence struct {
// contains filtered or unexported fields
}
type ReplicationController ¶ added in v0.2.0
type ReplicationController = apiv1.ReplicationController
type ReplicationControllerList ¶ added in v0.2.0
type ReplicationControllerList = apiv1.ReplicationControllerList
type Result ¶
type Result struct { Err int Occurrences []Occurrence Namespace string Name string CapsAdded []Capability ImageName string CapsDropped []Capability CapsNotDropped []Capability KubeType string DSA string SA string Token *bool ImageTag string }
func ServiceAccountIter ¶
func ServiceAccountIter(t interface{}) (result *Result)
type StatefulSet ¶ added in v0.2.0
type StatefulSet = v1beta1.StatefulSet
type StatefulSetList ¶ added in v0.2.0
type StatefulSetList = v1beta1.StatefulSetList
Source Files
¶
Click to show internal directories.
Click to hide internal directories.