Skip to content

Commit

Permalink
[Heartbeat] Only setuid in elastic-agent image (#28577) (#28592)
Browse files Browse the repository at this point in the history
Fixes #28572 by only invoking setuid in the elastic-agent container, and
no longer in the heartbeat container. See the linked issue for details.

(cherry picked from commit da2bc89)

Co-authored-by: Andrew Cholakian <[email protected]>
  • Loading branch information
mergify[bot] and andrewvc authored Oct 22, 2021
1 parent b4bdd6e commit a44d4fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dev-tools/packaging/templates/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ USER {{ .user }}
{{- if (and (eq .BeatName "heartbeat") (not (contains .from "ubi-minimal"))) }}
# Setup synthetics env vars
ENV ELASTIC_SYNTHETICS_CAPABLE=true
ENV BEAT_SETUID_AS={{ .user }}
ENV SUITES_DIR={{ $beatHome }}/suites
ENV NODE_VERSION=14.17.5
ENV PATH="$NODE_PATH/node/bin:$PATH"
Expand Down

0 comments on commit a44d4fe

Please sign in to comment.