From e8038c19a64e026eae218a98be97bc63bda61459 Mon Sep 17 00:00:00 2001 From: Israel Blancas Date: Fri, 1 Sep 2023 10:53:02 +0200 Subject: [PATCH] Allow copy of files for non-root user (#2069) Signed-off-by: Israel Blancas --- ...e-httpd-autoinstrumentation-for-non-root.yaml | 16 ++++++++++++++++ autoinstrumentation/apache-httpd/Dockerfile | 1 + 2 files changed, 17 insertions(+) create mode 100755 .chloggen/2068-fix-apache-httpd-autoinstrumentation-for-non-root.yaml diff --git a/.chloggen/2068-fix-apache-httpd-autoinstrumentation-for-non-root.yaml b/.chloggen/2068-fix-apache-httpd-autoinstrumentation-for-non-root.yaml new file mode 100755 index 0000000000..fed0105e51 --- /dev/null +++ b/.chloggen/2068-fix-apache-httpd-autoinstrumentation-for-non-root.yaml @@ -0,0 +1,16 @@ +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: bug_fix + +# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action) +component: autoinstrumentation + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: Allow the usage of the Apache HTTPD autoinstrumentation to be run as non-root user. Change the files permission to allow their copy from a non-root user. + +# One or more tracking issues related to the change +issues: [2068] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: diff --git a/autoinstrumentation/apache-httpd/Dockerfile b/autoinstrumentation/apache-httpd/Dockerfile index 748326b578..af9c12e6c1 100644 --- a/autoinstrumentation/apache-httpd/Dockerfile +++ b/autoinstrumentation/apache-httpd/Dockerfile @@ -20,6 +20,7 @@ FROM alpine:latest COPY --from=agent /opt/opentelemetry/agent/opentelemetry-webserver-sdk /opt/opentelemetry +RUN chmod 775 -R /opt/opentelemetry/ RUN chmod a+w /opt/opentelemetry/logs CMD ["cat", "Just delivering the Opentelemetry Apache/Nginx agent"] \ No newline at end of file