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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user