mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-09 07:14:42 +02:00
fix(stt): securityContext conforme PodSecurity restricted (ns ai)
runAsNonRoot + runAsUser 1000 + seccompProfile RuntimeDefault (pod), allowPrivilegeEscalation false + drop ALL caps (conteneur). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT
This commit is contained in:
parent
ae68f4ff6b
commit
61a514f759
1 changed files with 10 additions and 0 deletions
|
|
@ -17,9 +17,19 @@ spec:
|
|||
# (cf. README : kubectl create secret docker-registry ghcr-pull ...)
|
||||
imagePullSecrets:
|
||||
- name: ghcr-pull
|
||||
# Conformité PodSecurity "restricted" (namespace ai)
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: stt-server
|
||||
image: ghcr.io/alkatrazz24/funk-stt-server:latest
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue