brave / star-randsrv

Go wrapper service for the STAR randomness server.
Mozilla Public License 2.0
7 stars 5 forks source link

axum-prometheus 0.6 breaks aws build #277

Closed rillian closed 7 months ago

rillian commented 7 months ago

Updating to axum-prometheus v0.6.0 introduced a dependency on openssh-sys which in turn broke our "Generalized Reproducible Deployments" container build.

That build uses a rust:1.75.0-slim-bookworm container image to build our code which is missing the newly-required libssl-dev and pkg-config packages. We can address this by installing those packages before building, or switching to the non-slim base container, or by reverting the update.

It looks like the dependency is for https client use, for when prometheus is configured to push measurements to a gateway. Since we're using polling in our deployment, we may be able to disable the relevant feature in metrics-exporter-prometheus. I filed https://github.com/Ptrskay3/axum-prometheus/issues/42 to ask about that.