Commit Graph
9 Commits
Author SHA1 Message Date
Minei3oat 2f96739908 Use COPY instead of ADD
> Use ADD only when you need the additional capabilities it offers, but be mindful of potential security implications.
https://www.docker.com/blog/docker-best-practices-understanding-the-differences-between-add-and-copy-instructions-in-dockerfiles/
2025-09-28 22:28:46 +02:00
Minei3oat ebe62acd8d Cleanup duplicate installs 2025-09-28 22:25:26 +02:00
Minei3oat 8002680642 Reduce docker image size by 35%
Since docker caches each instruction as a layer, we have to clean cached packages at the end of each step for minimal image size.
2025-09-28 22:24:46 +02:00
Minei3oat 907c85d85d Add Content-Type=plain/text for metrics endpoint
Without the content type, prometheus will reject the metrics if no `fallback_scrape_protocol` is specified.

https://prometheus.io/docs/prometheus/3.0/migration/#scrape-protocols
https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format
2025-09-28 21:09:25 +02:00
Minei3oat 709de42ef2 Restrict bcrypt version to <5
Starting with version 5.0.0, bcrypt will throw a ValueError if the input is more than 72 bytes.
passlib's `hash` processes the input such that more than 72 bytes are passed to bcrypt, independently of the input length.
As a result, the backend of firegex breaks when calculating the hash in `set_psw`.
2025-09-28 20:43:46 +02:00
Minei3oat c979ad21ea Add tests for metrics endpoint 2025-03-05 08:51:55 +01:00
Minei3oat 26a2428512 Fix metrics endpoint 2025-02-25 00:59:58 +01:00
Minei3oat 71d30196a4 Fix nullpointer issue 2024-12-09 21:57:28 +01:00
Minei3oat 6ba4fd3f93 Add metrics endpoint for Netfilter Regex 2024-11-29 01:08:06 +01:00