Just FYI.
I have been experiencing TLS/SSL error: Hostname verification failed when connecting to Google Cloud SQL MySQL with client cert.
Rolled back deployment then investigating both a worked image and not one.
I found differences in those ruby:3.2.9-alpine based images:
Worked:
- ruby:3.2.9-alpine3.22 (alpine 3.22.2)
- mysql-dev mariadb-dev-11.4.9-r0
Errored:
- ruby:3.2.9-alpine3.23 (alpine 3.23.0)
- mysql-dev mariadb-dev-11.4.8-r0
As a workaround I changed base image
- FROM ruby:3.2.9-alpine
+ FROM ruby:3.2.9-alpine-3.22
I'll report if I found something else.
edit: both using mysql2 (0.5.7) and connecting to MySQL 5.7.44