diff --git a/cluster/platform/connections/deployment.yaml b/cluster/platform/connections/deployment.yaml index 8a684ec..9b5370e 100644 --- a/cluster/platform/connections/deployment.yaml +++ b/cluster/platform/connections/deployment.yaml @@ -24,6 +24,13 @@ spec: - name: signal-cli-rest-api image: bbernhard/signal-cli-rest-api:0.85 # Pin version, test upgrades imagePullPolicy: IfNotPresent + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + seccompProfile: + type: RuntimeDefault ports: - containerPort: 8080 name: http @@ -31,6 +38,10 @@ spec: env: - name: MODE value: "json-rpc" # json-rpc mode for API compatibility + - name: SIGNAL_CLI_UID + value: "0" # Disable UID change + - name: SIGNAL_CLI_GID + value: "0" # Disable GID change volumeMounts: - name: signal-data mountPath: /home/.local/share/signal-cli