Compare commits
6 Commits
a7d56dea82
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 72f2f3ae62 | |||
| db66e50820 | |||
| 215857128a | |||
| 5fc083961a | |||
| 65c1f128c0 | |||
| e6e1970ca1 |
27
templates/vault-rbac.yaml
Normal file
27
templates/vault-rbac.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: vault-restricted-scc-role
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- security.openshift.io
|
||||||
|
resources:
|
||||||
|
- securitycontextconstraints
|
||||||
|
resourceNames:
|
||||||
|
- vault-restricted
|
||||||
|
verbs:
|
||||||
|
- use
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: RoleBinding
|
||||||
|
metadata:
|
||||||
|
name: vault-restricted-scc-binding
|
||||||
|
namespace: vault
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: vault-restricted-scc-role
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: vault
|
||||||
|
namespace: vault
|
||||||
25
templates/vault-scc.yaml
Normal file
25
templates/vault-scc.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
kind: SecurityContextConstraints
|
||||||
|
apiVersion: security.openshift.io/v1
|
||||||
|
metadata:
|
||||||
|
name: vault-restricted
|
||||||
|
priority: 20
|
||||||
|
allowPrivilegedContainer: false
|
||||||
|
allowHostDirVolumePlugin: false
|
||||||
|
allowHostIPC: false
|
||||||
|
allowHostNetwork: false
|
||||||
|
allowHostPID: false
|
||||||
|
allowHostPorts: false
|
||||||
|
runAsUser:
|
||||||
|
type: MustRunAs
|
||||||
|
uid: 100
|
||||||
|
seLinuxContext:
|
||||||
|
type: MustRunAs
|
||||||
|
fsGroup:
|
||||||
|
type: MustRunAs
|
||||||
|
supplementalGroups:
|
||||||
|
type: RunAsAny
|
||||||
|
defaultAddCapabilities: []
|
||||||
|
requiredDropCapabilities:
|
||||||
|
- ALL
|
||||||
|
users: []
|
||||||
|
groups: []
|
||||||
@@ -23,6 +23,10 @@ server:
|
|||||||
readinessProbe:
|
readinessProbe:
|
||||||
path: "/v1/sys/health?uninitcode=204"
|
path: "/v1/sys/health?uninitcode=204"
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 100
|
||||||
|
|
||||||
csi:
|
csi:
|
||||||
image:
|
image:
|
||||||
repository: "registry.connect.redhat.com/hashicorp/vault-csi-provider"
|
repository: "registry.connect.redhat.com/hashicorp/vault-csi-provider"
|
||||||
|
|||||||
Reference in New Issue
Block a user