PodSecurityPolicySpecPatch

data class PodSecurityPolicySpecPatch(val allowPrivilegeEscalation: Boolean? = null, val allowedCSIDrivers: List<AllowedCSIDriverPatch>? = null, val allowedCapabilities: List<String>? = null, val allowedFlexVolumes: List<AllowedFlexVolumePatch>? = null, val allowedHostPaths: List<AllowedHostPathPatch>? = null, val allowedProcMountTypes: List<String>? = null, val allowedUnsafeSysctls: List<String>? = null, val defaultAddCapabilities: List<String>? = null, val defaultAllowPrivilegeEscalation: Boolean? = null, val forbiddenSysctls: List<String>? = null, val fsGroup: FSGroupStrategyOptionsPatch? = null, val hostIPC: Boolean? = null, val hostNetwork: Boolean? = null, val hostPID: Boolean? = null, val hostPorts: List<HostPortRangePatch>? = null, val privileged: Boolean? = null, val readOnlyRootFilesystem: Boolean? = null, val requiredDropCapabilities: List<String>? = null, val runAsGroup: RunAsGroupStrategyOptionsPatch? = null, val runAsUser: RunAsUserStrategyOptionsPatch? = null, val runtimeClass: RuntimeClassStrategyOptionsPatch? = null, val seLinux: SELinuxStrategyOptionsPatch? = null, val supplementalGroups: SupplementalGroupsStrategyOptionsPatch? = null, val volumes: List<String>? = null)

PodSecurityPolicySpec defines the policy enforced. Deprecated: use PodSecurityPolicySpec from policy API Group instead.

Constructors

Link copied to clipboard
constructor(allowPrivilegeEscalation: Boolean? = null, allowedCSIDrivers: List<AllowedCSIDriverPatch>? = null, allowedCapabilities: List<String>? = null, allowedFlexVolumes: List<AllowedFlexVolumePatch>? = null, allowedHostPaths: List<AllowedHostPathPatch>? = null, allowedProcMountTypes: List<String>? = null, allowedUnsafeSysctls: List<String>? = null, defaultAddCapabilities: List<String>? = null, defaultAllowPrivilegeEscalation: Boolean? = null, forbiddenSysctls: List<String>? = null, fsGroup: FSGroupStrategyOptionsPatch? = null, hostIPC: Boolean? = null, hostNetwork: Boolean? = null, hostPID: Boolean? = null, hostPorts: List<HostPortRangePatch>? = null, privileged: Boolean? = null, readOnlyRootFilesystem: Boolean? = null, requiredDropCapabilities: List<String>? = null, runAsGroup: RunAsGroupStrategyOptionsPatch? = null, runAsUser: RunAsUserStrategyOptionsPatch? = null, runtimeClass: RuntimeClassStrategyOptionsPatch? = null, seLinux: SELinuxStrategyOptionsPatch? = null, supplementalGroups: SupplementalGroupsStrategyOptionsPatch? = null, volumes: List<String>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.

Link copied to clipboard

AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes.

Link copied to clipboard

allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the "volumes" field.

Link copied to clipboard

allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.

Link copied to clipboard

AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.

Link copied to clipboard

allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. "foo/" allows "foo/bar", "foo/baz", etc. e.g. "foo.*" allows "foo.bar", "foo.baz", etc.

Link copied to clipboard

allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.

Link copied to clipboard

defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.

Link copied to clipboard

defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.

Link copied to clipboard

forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in "" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. "foo/" forbids "foo/bar", "foo/baz", etc. e.g. "foo.*" forbids "foo.bar", "foo.baz", etc.

Link copied to clipboard

fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.

Link copied to clipboard
val hostIPC: Boolean? = null

hostIPC determines if the policy allows the use of HostIPC in the pod spec.

Link copied to clipboard
val hostNetwork: Boolean? = null

hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.

Link copied to clipboard
val hostPID: Boolean? = null

hostPID determines if the policy allows the use of HostPID in the pod spec.

Link copied to clipboard

hostPorts determines which host port ranges are allowed to be exposed.

Link copied to clipboard
val privileged: Boolean? = null

privileged determines if a pod can request to be run as privileged.

Link copied to clipboard

readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.

Link copied to clipboard

requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.

Link copied to clipboard

RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled.

Link copied to clipboard

runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.

Link copied to clipboard

runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled.

Link copied to clipboard

seLinux is the strategy that will dictate the allowable labels that may be set.

Link copied to clipboard

supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.

Link copied to clipboard
val volumes: List<String>? = null

volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. //