File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,6 @@ FROM debian:bookworm-slim as controller
90
90
# Link repo to the GitHub Container Registry image
91
91
LABEL org.opencontainers.image.source="https://github.com/fluxcd/source-controller"
92
92
93
- # Configure user
94
- RUN groupadd controller && \
95
- useradd --gid controller --shell /bin/sh --create-home controller
96
-
97
93
ARG TARGETPLATFORM
98
94
RUN apt update && apt install -y ca-certificates
99
95
@@ -102,5 +98,5 @@ COPY --from=build /workspace/source-controller /usr/local/bin/
102
98
COPY --from=libgit2-bullseye /libgit2/built-on-glibc-version /
103
99
COPY ATTRIBUTIONS.md /
104
100
105
- USER controller
101
+ USER 65534:65534
106
102
ENTRYPOINT [ "source-controller" ]
Original file line number Diff line number Diff line change 20
20
prometheus.io/port : " 8080"
21
21
spec :
22
22
terminationGracePeriodSeconds : 10
23
- # Required for AWS IAM Role bindings
24
- # https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html
25
23
securityContext :
24
+ # Required for AWS IAM Role bindings
25
+ # https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html
26
26
fsGroup : 1337
27
27
containers :
28
28
- name : manager
31
31
securityContext :
32
32
allowPrivilegeEscalation : false
33
33
readOnlyRootFilesystem : true
34
+ runAsNonRoot : true
35
+ capabilities :
36
+ drop : [ "ALL" ]
37
+ seccompProfile :
38
+ type : RuntimeDefault
34
39
ports :
35
40
- containerPort : 9090
36
41
name : http
You can’t perform that action at this time.
0 commit comments