mirror of
https://github.com/optim-enterprises-bv/homelab.git
synced 2025-11-02 10:57:53 +00:00
fix(netbird-relay): harden security
This commit is contained in:
@@ -12,10 +12,20 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: relay
|
app.kubernetes.io/name: relay
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
containers:
|
containers:
|
||||||
- image: netbirdio/relay:0.35.2 # renovate: docker=netbirdio/relay
|
- image: netbirdio/relay:0.35.2 # renovate: docker=netbirdio/relay
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: netbird-relay
|
name: relay
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
runAsNonRoot: false
|
||||||
|
capabilities:
|
||||||
|
drop: [ ALL ]
|
||||||
|
add: [ NET_ADMIN, NET_RAW, PERFMON, BPF ]
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: relay-config
|
name: relay-config
|
||||||
|
|||||||
Reference in New Issue
Block a user