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

Security upgrade for docker node image #420

Merged
merged 5 commits into from
May 25, 2024

Conversation

Baptiste-Leterrier
Copy link
Contributor

Following a Snyk scan of the repo, vulnerabilities in the debian node docker image.

Bumped the version to node:22.1-bookworm-slim.

The schema.prisma file has been updated to include "debian-openssl-3.0.x" in the binaryTargets configuration. This ensures that the Prisma Client generates the necessary binaries for the correct OpenSSL version following the image upgrade.

Tested deployment on Debian 11 with Docker Engine - Community Version 26.0.1, API version 1.45

@sinamics
Copy link
Owner

also add FROM node:22.1-bookworm-slim in the devcontainer dockerfile.

@Baptiste-Leterrier
Copy link
Contributor Author

Baptiste-Leterrier commented May 25, 2024

Nice catch, also added in devcontainer dockerfile

Comment on lines 6 to 7
//binaryTargets = ["native", "debian-openssl-1.1.x", "linux-arm64-openssl-1.1.x"]
binaryTargets = ["native", "debian-openssl-1.1.x" ,"debian-openssl-3.0.x", "linux-arm64-openssl-1.1.x"]
Copy link
Owner

Choose a reason for hiding this comment

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

could we remove both 1.1.x version and also add linux-arm64-openssl-3.0.x

binaryTargets = ["native", "debian-openssl-3.0.x", "linux-arm64-openssl-3.0.x"]

I just tested arm64 build with 3.0, and it works just fine.

@sinamics sinamics merged commit 97cc63f into sinamics:main May 25, 2024
2 checks passed
@sinamics
Copy link
Owner

Thank you for the contribution ⭐

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.

None yet

3 participants