Skip to content

[Snyk] Security upgrade alpine from 3.7 to 3.18.12#42

Open
RealTschoegl wants to merge 1 commit intomasterfrom
snyk-fix-e3f8fa645082ec956caa7d16e2dd08c3
Open

[Snyk] Security upgrade alpine from 3.7 to 3.18.12#42
RealTschoegl wants to merge 1 commit intomasterfrom
snyk-fix-e3f8fa645082ec956caa7d16e2dd08c3

Conversation

@RealTschoegl
Copy link

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the dockerfile dependencies of this project.

Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.

Snyk changed the following file(s):

  • keto/Dockerfile-alpine

We recommend upgrading to alpine:3.18.12, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Out-of-bounds Write
SNYK-ALPINE37-MUSL-458286
  714  
critical severity Out-of-bounds Write
SNYK-ALPINE37-MUSL-458286
  714  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

@macroscopeapp
Copy link

macroscopeapp bot commented Oct 4, 2025

Upgrade the final runtime container in keto/Dockerfile-alpine from alpine:3.7 to alpine:3.18.12 for Snyk-reported security upgrade

Update the multi-stage Docker build to use alpine:3.18.12 as the second-stage base image in keto/Dockerfile-alpine.

📍Where to Start

Start by reviewing the base image tag change in keto/Dockerfile-alpine.


Macroscope summarized fc9f828.

@gitstream-cm
Copy link

gitstream-cm bot commented Oct 4, 2025

Please mark whether you used AI to assist coding in this PR

  • AI Assisted
  • Not AI Assisted

Copy link

@gitstream-cm gitstream-cm bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ PR Review

The PR upgrades Alpine Linux from 3.7 to 3.18.12 to fix critical security vulnerabilities, which is important for security. However, this represents a major version jump that could introduce compatibility issues.

1 issues detected:

🐞 Bug - Major base image upgrades without proper testing can break application functionality due to changed dependencies or system behavior.

Details: Upgrading from Alpine 3.7 to 3.18.12 represents a significant version jump spanning multiple years of changes. This could introduce breaking changes in package availability, system libraries, or application behavior that may cause the application to fail at runtime.
File: keto/Dockerfile-alpine (19-19)

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using. We'd love your feedback! 🚀

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -X github.com/justpark/auth/keto/cmd.Version=$git_tag -X github.com/justpark/auth/keto/cmd.BuildTime=`TZ=UTC date -u '+%Y-%m-%dT%H:%M:%SZ'` -X github.com/justpark/auth/keto/cmd.GitHash=$git_commit" -a -installsuffix cgo -o keto

FROM alpine:3.7
FROM alpine:3.18.12
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐞 Bug - Major Version Jump: Test the application thoroughly with the new Alpine version in a staging environment before merging. Consider upgrading incrementally through intermediate versions to identify potential compatibility issues.

Suggested change
FROM alpine:3.18.12
FROM alpine:3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants