-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run collectors as nonroot user #2413
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
- do we still need this?
- wondering if we need to test this in openshift as well?
@@ -5,6 +5,8 @@ WORKDIR /go/src/ | |||
ARG TARGETARCH | |||
RUN GOOS=linux GOARCH=$TARGETARCH make build-odigoscol | |||
|
|||
FROM gcr.io/distroless/base:latest | |||
# Choose a minimal image with sh + acl utils | |||
FROM registry.access.redhat.com/ubi9:9.5-1736404036 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to use redhat base image even for non-rhel images?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need that
d7d3e57
to
bb88a34
Compare
@blumamir I rolled back the changes to |
@@ -5,6 +5,8 @@ WORKDIR /go/src/ | |||
ARG TARGETARCH | |||
RUN GOOS=linux GOARCH=$TARGETARCH make build-odigoscol | |||
|
|||
FROM gcr.io/distroless/base:latest | |||
# Choose a minimal image with sh + acl utils | |||
FROM registry.access.redhat.com/ubi9:9.5-1736404036 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need that
Name: "set-logs-acls", | ||
Image: commonconfig.ControllerConfig.CollectorImage, | ||
Command: []string{ | ||
"/bin/sh", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but I'll test if we'll need similar selinux changes for openshift (like in odiglet:
func ApplyOpenShiftSELinuxSettings() error { |
d26077b
to
4736786
Compare
odigosresource
processorhostmetrics
scope by mounting less directories