Skip to content
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

Add fixes for CVE-2024-5535 and CVE-2024-24790 #18

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build the image for creating the executable
############################
FROM docker.io/library/golang:1.22-alpine3.19 as builder
FROM docker.io/library/golang:1.22.5-alpine3.19 as builder

# Install git + SSL ca certificates + make
RUN apk update && apk upgrade && apk add --no-cache git ca-certificates make unzip g++ && update-ca-certificates && apk --no-cache add openssl wget && rm -rf /var/cache/apk/*
Expand Down Expand Up @@ -53,6 +53,9 @@ COPY --from=builder /app/synthetic-heart/agent /app/synthetic-heart/agent
# Create a /tmp/ diretctory (required for go plugin for Unix Domain Socket)
COPY --from=builder /app/synthetic-heart/.emptyfile /tmp/.emptyfile

# Fix for CVE-2024-5535
RUN apk add "openssl>3.1.6-r0"

WORKDIR /app/synthetic-heart

# Run the binary.
Expand Down