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

tsh proxy db messes with NodeJs mariadb driver on JSON columns #52354

Open
Tchekda opened this issue Feb 20, 2025 · 0 comments
Open

tsh proxy db messes with NodeJs mariadb driver on JSON columns #52354

Tchekda opened this issue Feb 20, 2025 · 0 comments
Labels

Comments

@Tchekda
Copy link

Tchekda commented Feb 20, 2025

Expected behavior:

When connecting a NodeJS app to a remote MariaDB 11.4.4 via tsh proxy db, I am expecting to have the same functionality as if I were connecting locally to that same database.

Current behavior:

Currently, when connecting via tsh proxy db, the app is crashing on some MariaDB specific calls like JSON columns. The fix is to use mysql driver to have some compatibility on some features but not all of them.

Running this same app directly on the MariaDB server works perfectly fine with the mariadb driver.

This is why we concluded the tsh proxy db was faulty and wasn't fully compatible with MariaDB operations.

Bug details:

  • Teleport version:
Teleport v16.4.6 git: go1.22.10
Proxy version: 17.2.2
  • Recreation steps
    • Build a NodeJS app that connects to a MariaDB server and leverages JSON columns (via an ORM like sequelize)
    • See the output difference of a direct connection and a proxied one. In the first one the JSON is parsed correctly but in the second the JSON is returned as string
  • Debug logs
    • No logs found
@Tchekda Tchekda added the bug label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant