PromucFlow_constructor/app/client/cypress/e2e/Regression/ServerSide
Anna Hariprasad f3374bd5fd
feat: Added SSH Tunnel for Postgres (#35449)
@appsmithorg/contributor-support

Hi @rohan-arthur 

Fixes #30792 

[**Video
Demonstration**](https://drive.google.com/file/d/1IOGlTsPVgeBNOpq3vydO01lrcN10S8ZS/view?usp=sharing)

**What's in this pr :**

- Added connection mode option for SSH Tunnel.
- Added SSH Host, Port, SSH Username and SSH key fields.
- Added Validation logic for SSH fields.
- Added SSH connection logic.
- Added three test cases for SSH connection.

**Screenshots :**

![image](https://github.com/user-attachments/assets/8332a0f7-f184-401d-acea-b46aa07fe759)

![image](https://github.com/user-attachments/assets/37f8b372-5532-4133-8e3e-f41d5ad6e91f)

![image](https://github.com/user-attachments/assets/eee5a119-70e5-4ddb-bf13-8316ab9b160b)

![image](https://github.com/user-attachments/assets/a3cb0d12-9255-4b2e-b2c8-00c98227ca39)

![image](https://github.com/user-attachments/assets/6acd9b7f-f16e-48e4-8dfc-996ef62d2262)

Please review this pr. Let me know if any changes required.





<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Summary by CodeRabbit

- **New Features**
- Introduced SSH tunneling support for PostgreSQL connections, allowing
users to configure SSH settings for enhanced security.
- Added a new "Connection method" option in the configuration, enabling
selection between "Standard" and "SSH tunnel" connections, with relevant
fields for SSH details.

- **Bug Fixes**
- Improved error handling by adding specific error messages for missing
SSH configuration parameters, providing clearer feedback to users.
- Updated error messages for authentication issues to include missing
passwords.

- **Tests**
- Enhanced test coverage with new unit tests for validating the
configuration of PostgreSQL data sources, particularly for SSH
connections.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-08-29 11:09:08 +01:00
..
ActionExecution test: Cypress - tags added - @tag.Workspace, @tag.Datasource, @tag.JS, @tag.PropertyPane (#29704) 2023-12-18 17:41:37 +05:30
ApiTests fix: API multipart spec flakiness (#35927) 2024-08-28 17:47:44 +05:30
AppLevelImport chore: Add cypress specs for partial import and export functionality (#30166) 2024-01-17 11:20:01 +05:30
Datasources feat: Added SSH Tunnel for Postgres (#35449) 2024-08-29 11:09:08 +01:00
GenerateCRUD fix: mysql2 spec flakiness (#35950) 2024-08-28 19:16:12 +05:30
JsFunctionExecution chore: update storybook (#32828) 2024-04-22 12:17:28 +03:00
LoginTests test: Cypress | Replacing some external api's with TED + Flaky fix (#31118) 2024-02-23 13:18:01 +05:30
MySQL_Datatypes fix: removed ab_mock_mongo_schema_enabled, ab_gsheet_schema_enabled flag code (#30113) 2024-01-16 14:00:51 +05:30
OnLoadTests test: Fix extracing pageId from app page URL (#34401) 2024-06-22 18:33:29 +05:30
Params test: remove startRoutesForDatasource from commands (#33688) 2024-05-30 10:09:04 +05:30
Postgres_DataTypes test: fix flaky binary spec (#35861) 2024-08-29 10:08:45 +05:30
QueryPane feat: Added SSH Tunnel for Postgres (#35449) 2024-08-29 11:09:08 +01:00