Feature ETP-1917: Enable SSL Support for PostgreSQL Connections in dbsourcemanager#11
Merged
Merged
Conversation
Contributor
|
Warning Git Police 👮One or more commit messages do not meet the required standards. Please correct them.
|
There was a problem hiding this comment.
Pull request overview
This pull request adds SSL connection support to the database source manager by modifying the getUnpooledConnection() method in DBSMOBUtil.java. The implementation enables secure PostgreSQL connections through configurable SSL parameters, with support for custom SSL factories and root certificate validation.
Key changes:
- Introduced dynamic connection properties building with SSL configuration support (bbdd.ssl, bbdd.sslmode, bbdd.sslfactory, bbdd.sslrootcert)
- Added validation logic for SSL root certificate files with error handling for missing or invalid certificates
- Enhanced error reporting by wrapping SQLException in RuntimeException with descriptive messages
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RomanMagnoli
force-pushed
the
feature/ETP-1917-Y26
branch
from
January 7, 2026 18:37
d6fa2bc to
0aec24d
Compare
etendobot
reviewed
Jan 7, 2026
etendobot
reviewed
Jan 7, 2026
etendobot
reviewed
Jan 7, 2026
etendobot
requested changes
Jan 7, 2026
etendobot
left a comment
Contributor
There was a problem hiding this comment.
Changes requested by agent. Please resolve blocking issues.
RomanMagnoli
force-pushed
the
feature/ETP-1917-Y26
branch
from
January 7, 2026 18:51
0aec24d to
1e43aaa
Compare
etendobot
approved these changes
Jan 7, 2026
RomanMagnoli
marked this pull request as ready for review
January 8, 2026 15:53
Matias-Bernal
approved these changes
Jan 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request enhances the way database connections are established in
DBSMOBUtil.java, specifically by adding support for SSL configuration when connecting to the database. The changes make the connection logic more robust and flexible, allowing for secure connections with customizable SSL parameters.Database connection improvements:
bbdd.ssl,bbdd.sslmode,bbdd.sslfactory, andbbdd.sslrootcert). If SSL is enabled, the code now checks for the presence ofbbdd.sslfactoryand uses it if specified; otherwise, it requires a valid root certificate file for certain SSL modes.RuntimeExceptionif SSL configuration is invalid or if the root certificate file is missing when required. Also added a more descriptive error message when failing to obtain a connection.