summaryrefslogtreecommitdiffstats
path: root/setup/configs/security.yml
blob: 171fdf647d4dfc1ba079c6fd38930e73a1b6a6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#The SCC is global, not per project. 
# It is better to work with groups.
#ands_openshift_uid_mode: "MustRunAsRange"
# Allow setting the required fsGroup in pod-specification (default is MustRunAs). 
# - If Ceph or other block storage is used, it is necessary set 'fsGroup' in pod definitions if 'RunAsAny' strategy is selected. Otherwise, the matching rules will fail.
# - For some reason, 'fsGroup' is not used as 'gid' for container. The 'gid' is always 0 (maybe only if container is run by unknown user or withiout known group).
#   - May be it also should not. While documentation states that the new files are created with fsGroup gid, it also states that fsGroup is only used for network block storage (ceph). 
# - Using "MustRunAs" a first 'gid' specified in the project 'supplementalGroups' will be used as 'fsGroup'.
#   - Yes, in the project, not 'pod'. Consequently, the 'group' assigned to project is always in the 'supGroups' if 'MustRunAs' is selected.
#   - gid=0 is also always in
# I tend to keep the default settings and use +s to enfore group ownership. If project uses multiple 'groups', the first group in the range should not be used and we avoid unintended sharing.
#ands_openshift_gid_mode: "RunAsAny"
#To enforce the range specified in the project configuration.
# - The gids outside of the range will be rejected and pod will fail if "MustRunAs" is selected.
ands_openshift_groups_mode: "MustRunAs"

#ands_openshift_uid_ranges:

ands_openshift_gid_ranges:
  kaas:         "4000/10"
  katrin:       "5000/10"
  status:       "5100/10"
  epics:        "5200/10"
  adei:         "6000/10"
  adai:         "6050/10"
  bora:         "6100/10"
  web:          "6200/10"
  mon:          "7000/10"
  test:         "7100/10"
  wave:         "8000/10"
  services:     "9000/10"

# The default user and group mentioned in some projects
ands_openshift_uids:
  kaas: { id: 4000 }

ands_openshift_gids:
  kaas: { id: 4000 }

ands_default_file_group: root
ands_default_file_owner: root