blob: 7ef4eb376ab0ca4eb7cc22566423581e602a5c36 [file] [log] [blame]
garciadeblaseadf37e2025-09-12 10:44:08 +02001#
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13#
14apiVersion: security.openshift.io/v1
15kind: SecurityContextConstraints
16metadata:
17 name: anyuid-seccomp
18allowHostDirVolumePlugin: false
19allowHostIPC: false
20allowHostNetwork: false
21allowHostPID: false
22allowHostPorts: false
23allowPrivilegeEscalation: true
24allowPrivilegedContainer: false
25allowedCapabilities: null
26defaultAddCapabilities: null
27fsGroup:
28 type: RunAsAny
29groups:
30- system:cluster-admins
31priority: 10
32readOnlyRootFilesystem: false
33requiredDropCapabilities:
34- MKNOD
35runAsUser:
36 type: RunAsAny
37seLinuxContext:
38 type: MustRunAs
39seccompProfiles:
40- runtime/default
41supplementalGroups:
42 type: RunAsAny
43users: []
44volumes:
45- configMap
46- csi
47- downwardAPI
48- emptyDir
49- ephemeral
50- persistentVolumeClaim
51- projected
52- secret
53---
54apiVersion: rbac.authorization.k8s.io/v1
55kind: RoleBinding
56metadata:
57 name: osm-scc-anyuid
58 namespace: osm
59roleRef:
60 apiGroup: rbac.authorization.k8s.io
61 kind: ClusterRole
62 name: system:openshift:scc:anyuid
63subjects:
64 - kind: ServiceAccount
65 name: default
66 namespace: osm
67 - kind: ServiceAccount
68 name: osm
69 namespace: osm
70 - kind: ServiceAccount
71 name: airflow-statsd
72 namespace: osm
73 - kind: ServiceAccount
74 name: airflow-triggerer
75 namespace: osm
76 - kind: ServiceAccount
77 name: airflow-webserver
78 namespace: osm
79 - kind: ServiceAccount
80 name: airflow-scheduler
81 namespace: osm
82 - kind: ServiceAccount
83 name: airflow-create-user-job
84 namespace: osm
85 - kind: ServiceAccount
86 name: pushgateway-prometheus-pushgateway
87 namespace: osm
88 - kind: ServiceAccount
89 name: mongodb-k8s
90 namespace: osm
91 - kind: ServiceAccount
92 name: prometheus
93 namespace: osm
94 - kind: ServiceAccount
95 name: alertmanager
96 namespace: osm
97 - kind: ServiceAccount
98 name: airflow-migrate-database-job
99 namespace: osm
100---
101apiVersion: rbac.authorization.k8s.io/v1
102kind: RoleBinding
103metadata:
104 name: osm-scc-anyuid-seccomp
105 namespace: osm
106roleRef:
107 apiGroup: rbac.authorization.k8s.io
108 kind: ClusterRole
109 name: system:openshift:scc:anyuid-seccomp
110subjects:
111 - kind: ServiceAccount
112 name: grafana
113 namespace: osm