NASA-AMMOS / aerie

A software framework for modeling spacecraft.
https://nasa-ammos.github.io/aerie-docs/
MIT License
73 stars 19 forks source link

Update Postgres 16.2 -> 16.4 #1543

Closed dandelany closed 2 months ago

dandelany commented 2 months ago

Upgrading Postgres from 16.2 to 16.4, since 16.2 has known security issues that flag our vulnerability scanner. Submitting a PR as a draft for now to see if it breaks any CI tests & if it fixes the "scan" step of the Publish workflow.

Per Postgres Docs I think this should be a safe change that does not require dump/restore or any other instructions/considerations, but let me know if you have any concerns with this, @Mythicaeda

skovati commented 2 months ago

The issue isn't really with postgres, but rather than the debian version (bookworm) that the postgres image is based on includes Go v1.18.2 (since the image installs a small util called gosu), which has a few critical CVEs.

These are basically false positives as far as I understand.

See also: https://github.com/docker-library/postgres/issues/1223

It doesn't look like this small util cuts releases often, so we might have this failing check for a while. We can suppress these few CVEs if desired.

All that being said, we should definitely keep up with postgres patch releases.

dandelany commented 2 months ago

Thanks for the context @skovati - I know the issue(s) are in a deeper layer of the Debian stack but I was hoping the official postgres 16.4 image would also include updates to these underlying dependencies...

image image
dandelany commented 2 months ago

Thanks @Mythicaeda -