-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsecurity.yaml
167 lines (167 loc) · 3.67 KB
/
security.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nautilus-admins
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: http://cilogon.org/serverA/users/15761
- apiGroup: rbac.authorization.k8s.io
kind: User
name: http://cilogon.org/serverA/users/23651
- apiGroup: rbac.authorization.k8s.io
kind: User
name: http://cilogon.org/serverA/users/277931
- apiGroup: rbac.authorization.k8s.io
kind: User
name: http://cilogon.org/serverT/users/226398
- apiGroup: rbac.authorization.k8s.io
kind: User
name: http://cilogon.org/serverA/users/2859846
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: psp:nautilus-admins
subjects:
- kind: User
name: http://cilogon.org/serverA/users/15761
apiGroup: "rbac.authorization.k8s.io"
- kind: User
name: http://cilogon.org/serverA/users/23651
apiGroup: "rbac.authorization.k8s.io"
roleRef:
kind: ClusterRole
name: psp:privileged-user
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: psp:privileged-user
rules:
- apiGroups:
- extensions
resources:
- podsecuritypolicies
resourceNames:
- privileged
verbs:
- use
---
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: privileged
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
privileged: true
allowPrivilegeEscalation: true
fsGroup:
rule: RunAsAny
runAsUser:
rule: RunAsAny
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
volumes:
- '*'
allowedCapabilities:
- '*'
hostPorts:
- min: 0
max: 65535
hostPID: true
hostIPC: true
hostNetwork: true
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: psp:privileged
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: psp:privileged-user
subjects:
- namespace: kube-system
kind: ServiceAccount
name: default
- namespace: nfs-servers
kind: ServiceAccount
name: default
- namespace: kube-system
kind: ServiceAccount
name: kube-proxy
- namespace: kube-system
kind: ServiceAccount
name: kube-router
- namespace: kube-system
kind: ServiceAccount
name: kube-dns
- namespace: kube-system
kind: ServiceAccount
name: traefik-ingress-controller
- namespace: kube-system
kind: ServiceAccount
name: calico-kube-controllers
- namespace: kube-system
kind: ServiceAccount
name: calico-node
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:nodes
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:perfsonar
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:perfsonarn
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:conduit
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:monitoring
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:rook
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:rook-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: psp:nautilus-user
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: psp:nautilus-user
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts:kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubeless-user
rules:
- apiGroups:
- kubeless.io
resources:
- functions
verbs:
- get
- list
- create
- patch
- update
- delete