Documentation ¶
Index ¶
Constants ¶
View Source
const ( // AutomountServiceAccountTokenDeprecated occurs when the deprecated serviceAccount field is non-empty AutomountServiceAccountTokenDeprecated = "AutomountServiceAccountTokenDeprecated" // AutomountServiceAccountTokenTrueAndDefaultSA occurs when automountServiceAccountToken is either not set // (which defaults to true) or explicitly set to true, and serviceAccountName is either not set or set to "default" AutomountServiceAccountTokenTrueAndDefaultSA = "AutomountServiceAccountTokenTrueAndDefaultSA" )
View Source
const Name = "asat"
View Source
const OverrideLabel = "allow-automount-service-account-token"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutomountServiceAccountToken ¶
type AutomountServiceAccountToken struct{}
AutomountServiceAccountToken implements Auditable
func New ¶
func New() *AutomountServiceAccountToken
func (*AutomountServiceAccountToken) Audit ¶
func (a *AutomountServiceAccountToken) Audit(resource k8stypes.Resource, _ []k8stypes.Resource) ([]*kubeaudit.AuditResult, error)
Audit checks that the deprecated serviceAccount field is not used and that the default service account is not being automatically mounted
Click to show internal directories.
Click to hide internal directories.