Skip to content

Introduce set_env method in db options factory - #5413

Draft
philippthun wants to merge 1 commit into
cloudfoundry:mainfrom
sap-contributions:mysql-tls-disable-peer-verification
Draft

Introduce set_env method in db options factory#5413
philippthun wants to merge 1 commit into
cloudfoundry:mainfrom
sap-contributions:mysql-tls-disable-peer-verification

Conversation

@philippthun

@philippthun philippthun commented Sep 2, 2026

Copy link
Copy Markdown
Member

VCAP::CloudController::DB invokes dedicated factories for MySQL and Postgres connection options. Add set_env methods to the factories that set required environment variables depending on the adapter type and call it just before building the connection options. This mechanism provides a single place where e.g. MARIADB_TLS_DISABLE_PEER_VERIFICATION can be set instead of exporting it in various code places.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

VCAP::CloudController::DB invokes dedicated factories for MySQL and
Postgres connection options. Add 'set_env' methods to the factories that
set required environment variables depending on the adapter type and
call it just before building the connection options. This mechanism
provides a single place where e.g. MARIADB_TLS_DISABLE_PEER_VERIFICATION
can be set instead of exporting it in various code places.
@philippthun
philippthun force-pushed the mysql-tls-disable-peer-verification branch from c937123 to 029ba10 Compare September 2, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant