Repository navigation
Add optional PostgreSQL TLS support across PlanDev services - #1916
Open
nikhilred2619 wants to merge 4 commits into
Open
nikhilred2619 wants to merge 4 commits into
nikhilred2619 wants to merge 4 commits into
Conversation
Read PLANDEV_DB_SSL_MODE and PLANDEV_DB_SSL_ROOT_CERT into the PostgresStore records of merlin-server, scheduler-server and workspace-server, and pass them to pgjdbc as the sslMode/sslRootCert data source properties in all five app drivers. Nothing is set when both variables are unset, so the pgjdbc default is unchanged. Invalid settings (unknown mode, verify-* without a root cert, missing or malformed PEM file) fail at startup. Refs NASA-AMMOS#1773
Map PLANDEV_DB_SSL_MODE and PLANDEV_DB_SSL_ROOT_CERT to the node-postgres ssl option for the action-server pool, the per-action worker pool and the sequencing-server pool. The ssl key is omitted when both variables are unset, so the node-postgres default (including PGSSLMODE) is unchanged. verify-ca keeps chain verification and skips only the host name check. The helper is duplicated in each server rather than shared, as agreed on the issue. Refs NASA-AMMOS#1773
Collaborator
|
Thanks @nikhilred2619 - @duranb is working on some fixes to our process for running CI workflows (test/scan) on fork PRs, once that is resolved @Mythicaeda and I will be able to give this a proper review. |
This branch has not been deployed
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.
Description
Adds opt-in PostgreSQL TLS support across the Java services, action server, sequencing server, and Hasura database connections.
disable,require,verify-ca, andverify-full.Related issue
Addresses #1773.
Testing
Gateway support and the deployment guide are provided in separate companion pull requests.