PromucFlow_constructor/app/server/appsmith-plugins
Anagh Hegde 8d696f1c75
feat: PGSql MTLS support (#31067)
## Description
Mutual TLS, or mTLS for short, is a method for mutual authentication.
mTLS ensures that the parties at each end of a network connection are
who they claim to be by verifying that they both have the correct
private key.
This PR adds support for mTLS for postgres datasource. Unlike the
standard way of storing the certs in disk, we store them in the
database. This has been achieved via the custom implementation of SSL
Factory. The postgres driver support passing the custom ssl factory
while creating connection, which then will be used for handling and
establishing the connection.


#### PR fixes following issue(s)
Fixes #31326 

#### Type of change
- New feature (non-breaking change which adds functionality)

## Testing
#### How Has This Been Tested?
- [ ] Manual

#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


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

## Summary by CodeRabbit

- **New Features**
- Enhanced the Postgres plugin to support SSL certificate validation for
secure database connections. Users can now select between `VERIFY_CA`
and `VERIFY_FULL` modes for SSL verification, ensuring a higher level of
security for database communications.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-03-04 14:38:27 +05:30
..
amazons3Plugin fix: s3 endpoint url field while importing json (#29424) 2023-12-08 11:10:39 +05:30
anthropicPlugin fix: using data key for messages in AI plugins (#29639) 2023-12-15 13:44:43 +05:30
appsmithAiPlugin feat: Add knowledge retrieval in Appsmith AI (#30725) 2024-02-05 17:15:45 +05:30
arangoDBPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
awsLambdaPlugin chore: Fixing failing test cases in AWS lambda (#29854) 2023-12-26 12:22:35 +05:30
databricksPlugin feat: Adding UserAgent Tag in databricks datasource configuration, a recommended practice (#31195) 2024-02-22 10:53:35 +05:30
dynamoPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
elasticSearchPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
firestorePlugin chore(deps): Update Guava in Firestore and Google Sheets plugins (#27203) 2023-09-14 15:32:54 +05:30
googleAiPlugin fix: using data key for messages in AI plugins (#29639) 2023-12-15 13:44:43 +05:30
googleSheetsPlugin chore: GSheet Internal error logging updated (#29897) 2023-12-28 12:49:21 +05:30
graphqlPlugin chore(deps): Upgrade graphql-java version to gev fix for CVE-2023-2976 (#27400) 2023-09-19 09:09:29 +05:30
jsPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
mongoPlugin fix: removed ab_mock_mongo_schema_enabled, ab_gsheet_schema_enabled flag code (#30113) 2024-01-16 14:00:51 +05:30
mssqlPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
mysqlPlugin fix: sorting schema options alphabetically (#29460) 2023-12-13 13:21:23 +05:30
openAiPlugin feat: Databricks plugin (#29746) 2023-12-26 10:04:09 +05:30
oraclePlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
postgresPlugin feat: PGSql MTLS support (#31067) 2024-03-04 14:38:27 +05:30
redisPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
redshiftPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
restApiPlugin test: Add AssertJ for plugins, for better assertions (#31380) 2024-03-04 07:33:45 +05:30
saasPlugin chore: Applied Spotless formatter (#25173) 2023-07-07 00:43:11 +05:30
smtpPlugin chore: JUnit test cases added for rate limit functions (#28399) 2023-10-26 21:40:55 +05:30
snowflakePlugin feat: Add isSuggested value to templates for all plugins (#26623) 2023-08-30 11:49:25 +01:00
pom.xml test: Add AssertJ for plugins, for better assertions (#31380) 2024-03-04 07:33:45 +05:30