appsmith
appsmith copied to clipboard
[FEATURE] SSH Tunnel for Database connections (MySQL)
Summary
I believe you guys must have SSH Tunnel support to connect to a database (for MySQL).
Motivation
Most of the companies have their production database behind a server. So providing an SSH tunnel will enable those users to use the platform with confidence and not compromising on security.
@akbansa Thanks for the feature request! I believe we do support this feature today. Were you having trouble accessing it? What type of database are you trying to connect to?
Here is a screenshot of our tunnel feature

@Nikhil-Nandagopal Yes, it's there for PostgreSQL but not for MySQL.
Here is the screenshot for the same:

Thanks for the update and the clarification! We'll get this prioritised and ship this out soon
On Wed, Sep 9, 2020, 13:59 Anshul Bansal [email protected] wrote:
@Nikhil-Nandagopal https://github.com/Nikhil-Nandagopal Yes, it's there for PostgreSQL but not for MySQL.
Here is the screenshot for the same: [image: image] https://user-images.githubusercontent.com/13042781/92574117-52724400-f2a4-11ea-8540-aa478d563c8b.png
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/appsmithorg/appsmith/issues/518#issuecomment-689412694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5XPJRTXCXNO5R25ICLBODSE44FRANCNFSM4RBLRHEA .
Hello @akbansa, thank you for reporting this. The SSH Tunnel configuration in the Postgres datasources is a bug, since the feature is not currently supported by Appsmith. A solution to this problem is currently already being worked upon.
After a bit of deliberation, we recommend anyone trying to access their db behind a VPC to whitelist our ip In the meanwhile, we'll work on a slightly more involved solution to support SSH Tunnel and remove the incorrect tunnel option for other databases.
Got another request from a friend about SSH for MySQL.
@areyabhishek, I've written about this in a GitHub discussion recently (link: https://github.com/appsmithorg/appsmith/discussions/4094#discussioncomment-652646). Is there a reason they prefer to connect via SSH tunneling as opposed to whitelisting our IP for direct connections? Asking because that'll put into perspective whatever I'm missing in their use cases.
Linking an internal discussion thread regarding this issue https://theappsmith.slack.com/archives/C01HUHMDPS9/p1622718510217300 for future reference.
It would be basic to have this feature for my company to start using AppSmith
What time can we expect a SSH tunnel for MySQL / MariaDB?
Is this still active in development? We too use MySql server that listens at localhost level and the only way to access the DB from an external app is via SSH Tunnel.
Hello Guys do you have any update about this feature on the near roadmap of developing? This feature will be great because my Postgres and MsSql are in local server and the connections we do by ssh certificate.
Hi guys, any update about this feature. I'm really interested on it. Thanks
we need this
We need this feature too, we can't connect to our Postgres DB unless we have SSH Tunneling. We would start using Appsmith if not for this
Interesting! The SSH Tunneling gives us the best security when accessing our data remotely. I think it's a must for now.
My web host only allows database connections via a SSH tunnel. I'm trying to connect to WordPress-powered ecommerce data. This is a blocker for me to be able to use Appsmith—please add!
This should definitely be there as most hosts block all access by default and some setups, specifically using Appsmith via docker locally might have roaming/changing IPs, so whitelisting can be tedious every time you connect.
Workaround for some users might be to create local MySQL DB and then use Airbyte, which does offer MySQL over SSH, to sync to a local DB on the same server as Appsmith or another of your choice as Airbyte is a 2 way sync tool.
Essentially you would be making your own data-warehouse, but it is a simple solution.
+1
I agree with the others. Our SysOps-Team decided that SSH tunnel for database access is the way to go. As a developer I can not circumvent that setup, I also can not make them whiteliste an IP for direct access.
I would love to use appsmith for development but the lack of this feature prevents me from using your product.
Any Updates on this?
This is a blocker for my team too. Without SSH Tunneling for DB connections, we cannot use Appsmith.
@fahall Good news: @mohanarpit shared on Hacker News that they were going to bump this on the internal priority list!
https://news.ycombinator.com/item?id=35371190
Looks like there's now a task for this https://github.com/appsmithorg/appsmith/issues/22064. 🤞
Closing it as core changes have been merged in release.
I still can't see SSH options while connecting to my postgres database sitting inside an isolated subnet inside a VPC. I can only connect to my database by SSHing through a bastion host.
Hi @prerak-jain the SSH tunnel feature is only implement for MySQL integration at the moment.
Any workarounds you would suggest in case of postgres? Otherwise I can't access the data and I am completely blocked in that case.
- @rohan-arthur @sribalajig
Same as @prerakhere, we can not use Appsmith until SSH Tunnel to PostgreSQL database is possible as our database is secured behind a Bastion.
@andredealmei @prerakhere I've raised a feature request for this here #30792 you can leave a comment there to get it prioritised