Conversation
…s not supported by "openssl s_client"
|
Srayman
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



This change fixes a bug where
addSubjectAlternativeToHostscannot work with a URL generated and stored inMC_PSQL_DB_URLbecause it passes the protocol toopenssl s_client ... -starttls <protocol>andpostgresis a valid STARTTLS protocol option whilepostgresqlis not.Note
Low Risk
Single scheme string in Pulumi env output; behavior change is limited to URL parsing for STARTTLS and standard drivers accept
postgres://.Overview
Summary
Mega Components host SAN automation (
addSubjectAlternativeToHosts) reads the URL scheme and passes it toopenssl s_client -starttls. URLs built aspostgresql://produced an invalid STARTTLS protocol;postgres://matches what OpenSSL expects so TLS cert discovery and/etc/hostsupdates work for database connections.Related Issues
None
Changes Made
MC_PSQL_DB_URLfrombuildDatabaseEnvVarsuses thepostgres://scheme instead ofpostgresql://(same host, credentials, port, andsslmode=require)Testing
None
Breaking Changes
None (both schemes are widely accepted PostgreSQL connection URLs; only consumers that required the literal
postgresqlprefix would differ)Reviewed by Cursor Bugbot for commit 9d33186. Configure here.