Documentation ¶
Index ¶
- func CreateEncryptionToken() (string, error)
- func EnforceAdmissionPluginsRequirements() error
- func EnforceAuditingRequirements() error
- func EnforceBootstrapMasterRequirements() error
- func EnforceCommonMasterRequirements(aescbcEncryptionSecret string) (err error)
- func EnforceExtraRequirements() error
- func EnforceSecretRequirements() error
- func EnforceTLSRequirements() error
- func EnforceWorkerRequirements() error
- func WriteAuditPolicyToDisk() (err error)
- func WriteEncryptionConfigToDisk(aescbcEncryptionSecret string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEncryptionToken ¶
CreateEncryptionToken generates an encryption token to be used for secrets.
func EnforceAdmissionPluginsRequirements ¶
func EnforceAdmissionPluginsRequirements() error
EnforceAdmissionPluginsRequirements enforces CIS requirements for admission plugins. TODO(andrewrynhard): Include any extra user specified plugins. TODO(andrewrynhard): Enable EventRateLimit. TODO(andrewrynhard): Enable AlwaysPullImages (See https://github.com/kubernetes/kubernetes/issues/64333).
func EnforceAuditingRequirements ¶
func EnforceAuditingRequirements() error
EnforceAuditingRequirements enforces CIS requirements for auditing.
func EnforceBootstrapMasterRequirements ¶
func EnforceBootstrapMasterRequirements() error
EnforceBootstrapMasterRequirements enforces the CIS requirements for master nodes.
func EnforceCommonMasterRequirements ¶
EnforceCommonMasterRequirements enforces the CIS requirements for master nodes.
func EnforceExtraRequirements ¶
func EnforceExtraRequirements() error
EnforceExtraRequirements enforces miscellaneous CIS requirements. TODO(andrewrynhard): Enable anonymous-auth, see https://github.com/kubernetes/kubeadm/issues/798. TODO(andrewrynhard): Enable kubelet-certificate-authority, see https://github.com/kubernetes/kubeadm/issues/118#issuecomment-407202481.
func EnforceSecretRequirements ¶
func EnforceSecretRequirements() error
EnforceSecretRequirements enforces CIS requirements for secrets.
func EnforceTLSRequirements ¶
func EnforceTLSRequirements() error
EnforceTLSRequirements enforces CIS requirements for TLS.
func EnforceWorkerRequirements ¶
func EnforceWorkerRequirements() error
EnforceWorkerRequirements enforces the CIS requirements for master nodes.
func WriteAuditPolicyToDisk ¶
func WriteAuditPolicyToDisk() (err error)
WriteAuditPolicyToDisk writes the audit policy to disk.
func WriteEncryptionConfigToDisk ¶
WriteEncryptionConfigToDisk writes an EncryptionConfig to disk.
Types ¶
This section is empty.