Skip to content

Instantly share code, notes, and snippets.

@fenar
Created August 22, 2024 20:50
Show Gist options
  • Select an option

  • Save fenar/5bba405b9b60c275f445fb510e7d079f to your computer and use it in GitHub Desktop.

Select an option

Save fenar/5bba405b9b60c275f445fb510e7d079f to your computer and use it in GitHub Desktop.
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: alloy-logs-scc
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: false
allowPrivilegedContainer: false
allowedCapabilities:
- DAC_READ_SEARCH
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
- SETPCAP
- SYS_CHROOT
- AUDIT_WRITE
- SETFCAP
requiredDropCapabilities:
- MKNOD
- FSETID
- KILL
- NET_BIND_SERVICE
- NET_RAW
defaultAddCapabilities: []
fsGroup:
type: MustRunAs
ranges:
- min: 473
max: 473
runAsUser:
type: MustRunAsNonRoot
seLinuxContext:
type: RunAsAny
supplementalGroups:
type: MustRunAs
ranges:
- min: 473
max: 473
users:
- "system:serviceaccount:monitoring:alloy-logs"
volumes:
- configMap
- secret
- emptyDir
- hostPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment