-
Notifications
You must be signed in to change notification settings - Fork 5
Configure drush to skip requiring ssl for remote db connections #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tekante
wants to merge
2
commits into
master
Choose a base branch
from
disable-forced-db-ssl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| command: | ||
| sql: | ||
| cli: | ||
| options: | ||
| extra: '--disable-ssl' | ||
| query: | ||
| options: | ||
| extra: '--disable-ssl' | ||
| dump: | ||
| options: | ||
| extra: '--disable-ssl' | ||
| extra-dump: '--disable-ssl' | ||
| drop: | ||
| options: | ||
| extra: '--disable-ssl' | ||
| create: | ||
| options: | ||
| extra: '--disable-ssl' | ||
| site: | ||
| install: | ||
| options: | ||
| extra: '--disable-ssl' | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
MariaDB 11.4 mysql client --disable-ssl flag💡 Result:
For the MariaDB 11.4 command-line client (
mariadb, and often themysqlsymlink on MariaDB installs), the way to disable TLS/SSL is:Disable SSL entirely:
--disable-ssl(synonym:--skip-ssl) [1][2]Example:
If you only meant “don’t verify the server cert” (but still use TLS):
--disable-ssl-verify-server-cert[1]If you’re coming from Oracle MySQL docs:
--ssl-mode=DISABLEDis the MySQL-style flag, but the MariaDB client historically did not support--ssl-mode(see MariaDB issue discussion) [3].Make it permanent (no flag each time):
[2]
Sources: MariaDB client option docs [1], MariaDB docs mirror [1], Stack Overflow discussion of MariaDB 11 client SSL defaults and
--skip-ssl/config file [2], MariaDB Jira about missing--ssl-modeand equivalence to--skip-ssl/--disable-ssl[3].🌐 Web query:
mysqldump disable SSL flag MariaDB💡 Result:
To disable TLS/SSL for
mysqldumpwhen using MariaDB’s client, use:mysqldump --skip-ssl -h HOST -u USER -p DBNAME > dump.sql--sslenables TLS, and the way to disable it is--skip-ssl. [1]Notes:
mariadb-dump(withmysqldumpas a legacy name/symlink), and the same flag works:mariadb-dump --skip-ssl .... [2]--ssl-mode=DISABLED, MariaDB commonly uses--skip-sslinstead. [3]Sources:
[1] https://manpages.debian.org/experimental/mariadb-client-10.6/mysqldump.1.en.html
[2] https://mariadb.com/kb/en/mysqldump/
[3] https://stackoverflow.com/questions/61649764/mysql-error-2026-ssl-connection-error-ubuntu-20-04
🌐 Web query:
Drush site:install options.extra configuration support💡 Result:
Yes—
site:installsupports an--extraoption, and you can configure it indrush.ymlas a command-specific option.CLI option
drush site:installincludes--extra=EXTRA(“Add custom options to the SQL connect string”). [1]drush.ymlconfigurationIn
drush.yml, command-specific options go undercommand.<namespace>.<command>.options, so forsite:install:Drush’s config docs show this exact structure for
site:installoptions (e.g.,account-name,account-pass). [2]Note: the config key is
extra, notoptions.extra—options:is the YAML section name Drush uses for “command options.” [2]Sources: [1] [2]
Update
sql.dump.options.extrato use--skip-sslinstead of--disable-sslfor mysqldump compatibility.The
--disable-sslflag is valid for the MariaDB mysql client but mysqldump requires--skip-sslto disable SSL. Update the dump configuration:Diff
sql: dump: options: - extra: '--disable-ssl' + extra: '--skip-ssl' extra-dump: '--disable-ssl'The
site:installoptions.extraconfiguration is valid. Verify thatextra-dumpundersql.dump.optionsis a supported Drush configuration key for your version.📝 Committable suggestion
🤖 Prompt for AI Agents