03juan

03juan

Greetings

I was reviewing the security vulnerabilities of my production images, specifically the difference between the latest default Dockerfile configuration generated with mix phx.gen.release --docker, bullseye-20240423-slim

and Ubuntu’s recently released 24.04 LTS version, Noble Numbat, noble-20240423

Issue

Unfortunately the hexpm/elixir registry only has a few versions of elixir built with erlang 25.2.3 about 3 days ago, and only for arm64/v8.

Question

Is the service that creates these images set to build and release them slowly on purpose, or is there some issue with it?

The relevant OTP images do exist in builds.hex.pm/builds/otp/ubuntu-24.04/builds.txt

...
OTP-26.2.3 928d03e6da416208fce7b9a7dbbfbb4f25d26c37 2024-04-25T22:38:03Z
OTP-26.2.4 e26c5206dc98ec1b8f978fceaa61fd1354266ccb 2024-04-25T22:24:21Z
...

Temp fix

What I’m doing in the meantime is just building with the previous beta version of noble, and then copy and run the app with the official bare noble image

 ARG ELIXIR_VERSION=1.16.2
 ARG OTP_VERSION=26.2.4
 ARG DISTRO_NAME=ubuntu
 ARG BUILD_IMAGE_VERSION=noble-20240225
 ARG RELEASE_IMAGE_VERSION=noble-20240423

 ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-${DISTRO_NAME}-${BUILD_IMAGE_VERSION}"
 ARG RUNNER_IMAGE="${DISTRO_NAME}:${RELEASE_IMAGE_VERSION}"

Showing Posts 1 to 8

altdsoy

altdsoy

I was surprised to see an ubuntu release without any vulnerabilities at all (even with low or unspecified severity).. But if we look now, it’s just as the usual same “vulnerable” packages.. I guess the analyzing tool (Docker Scout) had just not yet finished at that time..

I usually use Alpine images (even for other stacks than Elixir/Phoenix) and it’s just running fine.. Any reason why going with Ubuntu instead of Alpine?

D4no0

D4no0

Alpine is using musl instead of glibc. From what I remember musl was reported to be slower in the context of OTP runtime.

dimitarvp

dimitarvp

Huh, seriously? Do you have a link? I’d love to test.

LostKobrakai

LostKobrakai

Read from this post going forward.

dimitarvp

dimitarvp

Thanks. Quite curious and informative. But in any case OTP 27 is due pretty soon (May 2024 IIRC) so it won’t matter.

It’s a shame that an effort to disentangle the legacy horrible mess that is libc leads to discovering how many pieces of software rely on its leaky abstractions but oh well, real software requires compromises.

03juan

03juan OP

I should’ve mentioned the vulnerability arc was just what led me to the issue that the registry is missing the latest images. Classic X-Y problem, my bad.

You’re 100% correct and I also suspected Scout hadn’t finished its scans, which is why I wanted to build and scan it locally to see what was going on.

This is the noble-20240423 hub image now but Scout is actually behind on reporting some of the latest glibc CVEs that have already been patched 4 days ago and awaiting repo updates to v2.40

03juan

03juan OP

The real issue in this thread is still pending:

What’s the deal with hexbob and the outstanding noble images
– Seinfeld

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews