From c35ba49135b140a23e349676475301045a800441 Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Sun, 5 Jan 2025 15:40:20 +0100 Subject: [PATCH] fix(netbird-relay): harden security --- k8s/infra/vpn/netbird/relay/deployment.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/k8s/infra/vpn/netbird/relay/deployment.yaml b/k8s/infra/vpn/netbird/relay/deployment.yaml index 75edbf1..1912861 100644 --- a/k8s/infra/vpn/netbird/relay/deployment.yaml +++ b/k8s/infra/vpn/netbird/relay/deployment.yaml @@ -12,10 +12,20 @@ spec: labels: app.kubernetes.io/name: relay spec: + securityContext: + seccompProfile: + type: RuntimeDefault containers: - image: netbirdio/relay:0.35.2 # renovate: docker=netbirdio/relay 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: - configMapRef: name: relay-config