Compare commits

..

3 Commits

Author SHA1 Message Date
1c49eaeca8 add minio-restricted scc 2026-01-14 17:42:40 +11:00
8b65362c75 made some naming errors. fixed 2026-01-13 10:06:35 +11:00
9b3563ebfc fixed the name of restricted-hostpath 2026-01-13 10:04:28 +11:00
5 changed files with 54 additions and 5 deletions

BIN
manifests/.DS_Store vendored

Binary file not shown.

View File

@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: calibre-sa-restricted-s6
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:openshift:scc:restricted-s6
subjects:
- kind: ServiceAccount
name: calibre-sa
namespace: calibre

View File

@@ -0,0 +1,37 @@
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: minio-restricted
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: false
allowPrivilegedContainer: false
allowedCapabilities: null
defaultAddCapabilities: null
fsGroup:
type: MustRunAs
ranges:
- min: 1000
max: 1000
priority: null
readOnlyRootFilesystem: false
requiredDropCapabilities:
- MKNOD
- ALL
runAsUser:
type: MustRunAs
uid: 501
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- projected
- secret

View File

@@ -1,13 +1,13 @@
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: restricted-hostpath-privesc
name: restricted-hostpath-privesc # this scc allows hostPath and allowPrivilegeEscalation
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: false
allowPrivilegeEscalation: true
allowPrivilegedContainer: false
allowedCapabilities:
- CHOWN

View File

@@ -1,13 +1,13 @@
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: restricted-hostpath-privesc
allowHostDirVolumePlugin: true # Needed for /dev/dri hostPath
name: restricted-hostpath
allowHostDirVolumePlugin: true #this scc allows hostPath
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: true
allowPrivilegeEscalation: false
allowPrivilegedContainer: false
allowedCapabilities:
- CHOWN