Skip to content

Commit

Permalink
Merge pull request #1806 from SaschaSchwarze0/sascha-seccomp-security…
Browse files Browse the repository at this point in the history
…context

Move seccomp profile definition to container securityContext
  • Loading branch information
openshift-merge-bot[bot] authored Feb 21, 2025
2 parents a3d5d5d + a557278 commit 8621bb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ metadata:
annotations:
# See https://github.com/moby/buildkit/blob/master/docs/rootless.md#about---oci-worker-no-process-sandbox for more information
container.apparmor.security.beta.kubernetes.io/step-build-and-push: unconfined
# The usage of seccomp annotation will be deprecate in k8s v1.22.0, see
# https://kubernetes.io/docs/tutorials/clusters/seccomp/#create-a-pod-with-a-seccomp-profile-for-syscall-auditing for more information
container.seccomp.security.alpha.kubernetes.io/step-build-and-push: unconfined
spec:
parameters:
- name: build-args
Expand Down Expand Up @@ -37,6 +34,8 @@ spec:
add:
- SETGID
- SETUID
seccompProfile:
type: Unconfined
workingDir: $(params.shp-source-root)
env:
- name: DOCKER_CONFIG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ metadata:
annotations:
# See https://github.com/moby/buildkit/blob/master/docs/rootless.md#about---oci-worker-no-process-sandbox for more information
container.apparmor.security.beta.kubernetes.io/step-build-and-push: unconfined
# The usage of seccomp annotation will be deprecate in k8s v1.22.0, see
# https://kubernetes.io/docs/tutorials/clusters/seccomp/#create-a-pod-with-a-seccomp-profile-for-syscall-auditing for more information
container.seccomp.security.alpha.kubernetes.io/step-build-and-push: unconfined
spec:
parameters:
- name: build-args
Expand Down Expand Up @@ -45,6 +42,8 @@ spec:
add:
- SETGID
- SETUID
seccompProfile:
type: Unconfined
workingDir: $(params.shp-source-root)
env:
- name: DOCKER_CONFIG
Expand Down

0 comments on commit 8621bb7

Please sign in to comment.