fix(security): Haertung der minimalen k8s-Manifeste wiederhergestellt
Docker-Images bauen und veroeffentlichen / build-and-push (push) Successful in 2m24s
Docker-Images bauen und veroeffentlichen / build-and-push (push) Successful in 2m24s
Befunde des Commit-Security-Reviews: automountServiceAccountToken: false fuer Postgres, App und Worker; Speicherlimits fuer Migrations-initContainer und Worker; Laufzeitgrenze (activeDeadlineSeconds) fuer den Worker; Groessenlimits fuer die emptyDir-Volumes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
91791b791f
commit
32a5b8eb9d
3 files changed
+10
-2
No files matched your search
@@ -14,6 +14,7 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: artista-modelcamp-postgres
|
app: artista-modelcamp-postgres
|
||||||
spec:
|
spec:
|
||||||
|
automountServiceAccountToken: false
|
||||||
terminationGracePeriodSeconds: 120 # sauber herunterfahren vor dem Aushaengen
|
terminationGracePeriodSeconds: 120 # sauber herunterfahren vor dem Aushaengen
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
|
|||||||
+5
-2
@@ -16,6 +16,7 @@ spec:
|
|||||||
app: artista-modelcamp-app
|
app: artista-modelcamp-app
|
||||||
db-client: "true"
|
db-client: "true"
|
||||||
spec:
|
spec:
|
||||||
|
automountServiceAccountToken: false
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
@@ -28,6 +29,8 @@ spec:
|
|||||||
command: ["prisma", "migrate", "deploy"]
|
command: ["prisma", "migrate", "deploy"]
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef: { name: artista-modelcamp-secrets }
|
- secretRef: { name: artista-modelcamp-secrets }
|
||||||
|
resources:
|
||||||
|
limits: { memory: 512Mi }
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities: { drop: ["ALL"] }
|
capabilities: { drop: ["ALL"] }
|
||||||
@@ -67,9 +70,9 @@ spec:
|
|||||||
- name: media
|
- name: media
|
||||||
persistentVolumeClaim: { claimName: artista-modelcamp-media }
|
persistentVolumeClaim: { claimName: artista-modelcamp-media }
|
||||||
- name: cache
|
- name: cache
|
||||||
emptyDir: {}
|
emptyDir: { sizeLimit: 512Mi }
|
||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir: {}
|
emptyDir: { sizeLimit: 64Mi }
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -11,12 +11,14 @@ spec:
|
|||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 1
|
backoffLimit: 1
|
||||||
|
activeDeadlineSeconds: 900
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
db-client: "true"
|
db-client: "true"
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
automountServiceAccountToken: false
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1001
|
runAsUser: 1001
|
||||||
@@ -29,6 +31,8 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef: { name: artista-modelcamp-config }
|
- configMapRef: { name: artista-modelcamp-config }
|
||||||
- secretRef: { name: artista-modelcamp-secrets }
|
- secretRef: { name: artista-modelcamp-secrets }
|
||||||
|
resources:
|
||||||
|
limits: { memory: 512Mi }
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities: { drop: ["ALL"] }
|
capabilities: { drop: ["ALL"] }
|
||||||
Reference in new issue
Block a user