grafana / xk6-sql

Use SQL databases from k6 tests.
http://sql.x.k6.io
Apache License 2.0
114 stars 57 forks source link

Question: Does xk6-sql support ssl-mode required #41

Closed kempsterc closed 1 year ago

kempsterc commented 1 year ago

Does xk6-SQL support SSL-mode required?

My org recently enforced this on our AWS RDS databases, is this possible?

my connection string:

const db = sql.open( 'mysql', username:password@tcp(mysql.url:3306)/db_name );

the error I get now is:

GoError: Error 3159: Connections using insecure transport are prohibited while --require_secure_transport=ON.

I have tried this connection string:

const db = sql.open( 'mysql', username:password@tcp(mysql.url:3306)/db_name?sslmode=required );

with variations of ssl-mode=required sslMode=REQUIRED