[SHOT-252] fix: Move MSSQL base to mcr.microsoft.com/mssql/rhel/server - #8239
[SHOT-252] fix: Move MSSQL base to mcr.microsoft.com/mssql/rhel/server#8239mimartin12 wants to merge 1 commit into
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the MSSQL image base swap from Code Review DetailsNo new findings this pass. The previously opened question below is still unresolved and remains the main open item, since CI validates only that the image builds — the entrypoint, healthcheck, and backup loop are never exercised on the new base.
PR Metadata Assessment
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #8239 +/- ##
==========================================
- Coverage 68.59% 63.29% -5.30%
==========================================
Files 2383 2401 +18
Lines 103921 104043 +122
Branches 9403 9426 +23
==========================================
- Hits 71286 65856 -5430
- Misses 30294 35931 +5637
+ Partials 2341 2256 -85 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Do we have any precedent for RHEL here? Would this be the only usage, anywhere? |
🎟️ Tracking
SHOT-252
📔 Objective
Moves
util/MsSql's base image frommcr.microsoft.com/mssql/server:2025-CU5-ubuntu-22.04tomcr.microsoft.com/mssql/rhel/server:2025-CU5-rhel-9.1. The RHEL/UBI9 base ships the OpenSSL FIPS provider in-image, so FIPS-enabled hosts load it instead of crash-looping on TLS init (the failure mode SHOT-251 patched by pinning to Ubuntu 22.04). Ubuntu 22.04 LTS support ends April 2027 and Microsoft can drop that tag on any future CU, so this replaces the pin with a base that doesn't need one.Also:
apt-get install gosu tzdatastep. Both come preinstalled or replaced (setpriv) on the RHEL base.entrypoint.sh's twogosucalls forsetpriv --reuid --regid --init-groups, with aHOMEexport added sincesetpriv(unlikegosu) doesn't reset it for the target user.MsSqlCI build matrix tolinux/amd64. It was silently inheriting a multi-arch default that doesn't apply to this base, or the Ubuntu one either.Validated on a real FIPS-enabled RHEL 9 VM, three images back to back on the same host:
ghcr.io/bitwarden/mssql:2026.7.2(current release, Ubuntu 24.04): crash-loops,Internal error occurred initializing the TLS configuration.RestartCount=0.RestartCount=0.PR #8195 alone already fixes the crash. This is the longer-term fix so we're not relying on an EOL-bound Ubuntu tag.
📸 Screenshots
N/A