nextcloud / nextcloud/notify_push

Unable to connect to MySQL DB with SSL and clear text password

Open
#604 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
344
Forks
64
Avg merge
2d 10h
Merged PRs (30d)
5

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce
  1. MySQL DB 8 set up with SSL and native password
  2. use Nextcloud config.php and override DATABASE_URL to enable ssl-mode=Required and set the ssl-ca
  3. launch the notify daemon
Expected behaviour

The notify daemon should connect to the database

Actual behaviour

Error: × Failed to connect to database: encountered unexpected or invalid data: mysql_cleartext_plugin disabled (sqlx_mysql::protocol::connect::auth_switch:30)
╰─▶ encountered unexpected or invalid data: mysql_cleartext_plugin disabled (sqlx_mysql::protocol::connect::auth_switch:30)

Server configuration

Web server: Apache

Database: MySQL 8

PHP version: 8.2

Nextcloud version: 30.0.2

DATABASE_URL=mysql://nextcloud:XXX@mysql.local/nextclouddb?ssl-ca=/etc/pki/ca-trust/source/anchors/rootca.pem /opt/nextcloud/notify_push /var/www/html/nextcloud/config/config.php

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the notify daemon's database connection path and reproduce the failure using the MySQL 8 setup, SSL options, and DATABASE_URL shown in the issue. Check how config.php passes the connection settings and inspect the reported sqlx_mysql::protocol::connect::auth_switch path. Done means the notify daemon connects successfully with SSL and the cleartext-password configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, rust
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.