rallly: seccompProfile RuntimeDefault in the pod context
Sets seccompProfile.type: RuntimeDefault in the pod security context, so the container runtime's default syscall filter applies to every container in the pod. The value lives in the pod context rather than the container context because it covers init containers and any container added later without being repeated; a container that needs a different filter can still override it under securityContext.container, which wins over the pod value. Verified in k3d against the database path rather than a static page: under the filter the app opens its connection to Postgres and Prisma applies all migrations (141 rows in _prisma_migrations, 31 tables created), and the server-rendered pages answer with HTTP 200. The kernel reports Seccomp: 2 (filter mode) inside the container. Major bump: runtime behavior changes. Refs #84
This commit is contained in:
3 files changed
+12
-2
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ icon: https://raw.githubusercontent.com/lukevella/rallly/main/apps/landing/publi
|
|||||||
|
|
||||||
type: application
|
type: application
|
||||||
|
|
||||||
version: 7.0.0+up4.12.3
|
version: 8.0.0+up4.12.3
|
||||||
appVersion: "4.12.3"
|
appVersion: "4.12.3"
|
||||||
|
|
||||||
maintainers:
|
maintainers:
|
||||||
|
|||||||
@@ -220,7 +220,8 @@ AVD-KSV-0022 for the older deployed chart version (#84).
|
|||||||
"runAsUser" 20000
|
"runAsUser" 20000
|
||||||
"runAsGroup" 1000
|
"runAsGroup" 1000
|
||||||
"fsGroup" 1000
|
"fsGroup" 1000
|
||||||
"fsGroupChangePolicy" "Always" -}}
|
"fsGroupChangePolicy" "Always"
|
||||||
|
"seccompProfile" (dict "type" "RuntimeDefault") -}}
|
||||||
{{- include "rallly.defaultedDict" (dict "defaults" $defaults "given" $given "path" "rallly.securityContext.pod") -}}
|
{{- include "rallly.defaultedDict" (dict "defaults" $defaults "given" $given "path" "rallly.securityContext.pod") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,15 @@ rallly:
|
|||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
fsGroupChangePolicy: Always
|
fsGroupChangePolicy: Always
|
||||||
|
# RuntimeDefault applies the container runtime's default seccomp filter,
|
||||||
|
# which blocks the syscalls a normal workload never makes. It sits in the
|
||||||
|
# pod context on purpose: from here it covers every container in the pod
|
||||||
|
# including init containers, while a container-level seccompProfile would
|
||||||
|
# have to be repeated for each one (and silently missed on the next one
|
||||||
|
# added). A container that genuinely needs a different filter can still
|
||||||
|
# override it under securityContext.container, which wins over this value.
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
container:
|
container:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
|||||||
Reference in new issue
Block a user