appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[FEATURE] SSH Tunnel for Database connections (MySQL)

Open akbansa opened this issue 5 years ago • 16 comments

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.

Front logo Front conversations

akbansa avatar Sep 09 '20 07:09 akbansa

@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 image

Nikhil-Nandagopal avatar Sep 09 '20 08:09 Nikhil-Nandagopal

@Nikhil-Nandagopal Yes, it's there for PostgreSQL but not for MySQL.

Here is the screenshot for the same: image

akbansa avatar Sep 09 '20 08:09 akbansa

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 .

Nikhil-Nandagopal avatar Sep 09 '20 08:09 Nikhil-Nandagopal

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.

sharat87 avatar Sep 09 '20 12:09 sharat87

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.

Nikhil-Nandagopal avatar Sep 09 '20 13:09 Nikhil-Nandagopal

Got another request from a friend about SSH for MySQL.

areyabhishek avatar May 06 '21 23:05 areyabhishek

@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.

sharat87 avatar May 07 '21 04:05 sharat87

Linking an internal discussion thread regarding this issue https://theappsmith.slack.com/archives/C01HUHMDPS9/p1622718510217300 for future reference.

ajinkyakulkarni avatar Jun 08 '21 11:06 ajinkyakulkarni

It would be basic to have this feature for my company to start using AppSmith

pcollellmir avatar Sep 28 '21 15:09 pcollellmir

What time can we expect a SSH tunnel for MySQL / MariaDB?

mkduew avatar Dec 10 '21 16:12 mkduew

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.

MichalisDBA avatar Apr 01 '22 06:04 MichalisDBA

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.

rodrigoscdc avatar Apr 01 '22 11:04 rodrigoscdc

Hi guys, any update about this feature. I'm really interested on it. Thanks

lgallego-nq avatar Sep 19 '22 06:09 lgallego-nq

we need this

andredealmei avatar Nov 04 '22 13:11 andredealmei

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

gabrielgarza avatar Dec 01 '22 04:12 gabrielgarza

Interesting! The SSH Tunneling gives us the best security when accessing our data remotely. I think it's a must for now.

daoudbahaz avatar Dec 07 '22 09:12 daoudbahaz

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!

zackkatz avatar Feb 17 '23 20:02 zackkatz

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.

danieliser avatar Feb 18 '23 00:02 danieliser

+1

nitzanav avatar Feb 21 '23 21:02 nitzanav

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.

baender avatar Mar 17 '23 10:03 baender

Any Updates on this?

This is a blocker for my team too. Without SSH Tunneling for DB connections, we cannot use Appsmith.

fahall avatar Apr 03 '23 20:04 fahall

@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

zackkatz avatar Apr 03 '23 20:04 zackkatz

Looks like there's now a task for this https://github.com/appsmithorg/appsmith/issues/22064. 🤞

fahall avatar Apr 04 '23 18:04 fahall

Closing it as core changes have been merged in release.

sumitsum avatar Aug 30 '23 16:08 sumitsum

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.

prerakhere avatar Jan 03 '24 10:01 prerakhere

Hi @prerak-jain the SSH tunnel feature is only implement for MySQL integration at the moment.

sumitsum avatar Jan 03 '24 10:01 sumitsum

Any workarounds you would suggest in case of postgres? Otherwise I can't access the data and I am completely blocked in that case.

prerakhere avatar Jan 03 '24 10:01 prerakhere

  • @rohan-arthur @sribalajig

sumitsum avatar Jan 03 '24 10:01 sumitsum

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

Nikhil-Nandagopal avatar Jan 31 '24 10:01 Nikhil-Nandagopal