fix(connections): Use baseline pod security to allow container initialization

- Set namespace pod-security.kubernetes.io/enforce to baseline
- Remove restrictive container securityContext
- Allows signal-cli-rest-api container to run its entrypoint script
  which requires user/group modification capabilities
This commit is contained in:
Hermes Agent service account
2026-06-12 15:58:15 -05:00
parent 34e05725dd
commit 0efa1e5125
2 changed files with 3 additions and 11 deletions

View File

@@ -24,13 +24,6 @@ spec:
- name: signal-cli-rest-api - name: signal-cli-rest-api
image: bbernhard/signal-cli-rest-api:0.85 # Pin version, test upgrades image: bbernhard/signal-cli-rest-api:0.85 # Pin version, test upgrades
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http
@@ -38,10 +31,6 @@ spec:
env: env:
- name: MODE - name: MODE
value: "json-rpc" # json-rpc mode for API compatibility 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: volumeMounts:
- name: signal-data - name: signal-data
mountPath: /home/.local/share/signal-cli mountPath: /home/.local/share/signal-cli

View File

@@ -6,3 +6,6 @@ metadata:
app.kubernetes.io/name: connections app.kubernetes.io/name: connections
app.kubernetes.io/component: messaging-gateway app.kubernetes.io/component: messaging-gateway
theme: epcot theme: epcot
pod-security.kubernetes.io/enforce: baseline
pod-security.kubernetes.io/audit: baseline
pod-security.kubernetes.io/warn: baseline