alphagov / re-request-an-aws-account

:partly_sunny: An interface for requesting AWS accounts
https://request-an-aws-account.gds-reliability.engineering/
1 stars 0 forks source link

Eng 487 change ruby base images from debian to alpine #364

Closed HauwaHakimi closed 1 month ago

HauwaHakimi commented 1 month ago

Changing base images to alpine to fix critical CVEs on previous debian images Made changes to cost centres initializers to allow us to run docker image locally for testing

HauwaHakimi commented 1 month ago

need more info about alpine linux change

Reason for Change

The main driver for this change is to address the critical vulnerability CVE-2023-45853 in MiniZip (part of zlib) that was present in the Debian-based images. This vulnerability, which could lead to integer overflow and heap-based buffer overflow, was not resolved in the Debian images we were using. Alpine Linux has resolved this vulnerability in their zlib packages, along with several other CVEs. Changing this image to alpine eliminates the CVE-2023-45853 and reduces the overall image size.

Updated Dockerfile to use Alpine-based images

Testing

Next Steps