Skip to content
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

True negative: ssl-mode query params in connectionString considered as invalid #2610

Open
davidkhala opened this issue Apr 22, 2024 · 1 comment

Comments

@davidkhala
Copy link

When I tried to create connection by raw connection string

...
mysql.createConnection(`mysql://avnadmin:${password}@mysql-davidkhala.d.aivencloud.com:22013/defaultdb?ssl-mode=REQUIRED`)

The warning prompts like

Ignoring invalid configuration option passed to Connection: ssl-mode. This is currently a warning, but in future versions of MySQL2, an error will be thrown if you pass an invalid configuration option to a Connection

This validation is not agreed by Aiven Cloud. The above connection string format is copied directly from Aiven Cloud's Service URI section
image

@sidorares
Copy link
Owner

Try this instead:

mysql.createConnection(`mysql://avnadmin:${password}@mysql-davidkhala.d.aivencloud.com:22013/defaultdb?ssl={"rejectUnauthorized":true}`);

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

No branches or pull requests

2 participants