-
Notifications
You must be signed in to change notification settings - Fork 91
Additional rcudb validation #1396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -272,6 +272,11 @@ def __run_rcu(self): | |||
rcu_sys_pass = rcu_db_info.get_preferred_sys_pass() | |||
rcu_schema_pass = rcu_db_info.get_preferred_schema_pass() | |||
|
|||
databaseType = rcu_db_info.get_database_type() | |||
if databaseType is not None and databaseType not in ['SSL', 'ATP', 'ORACLE']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make this list a constant in case we ever need to use it elsewhere and/or change the items in the list.
self.__set_connection_property(location, DRIVER_PARAMS_NET_FAN_ENABLED, 'false') | ||
self.__set_connection_property_info(location, DRIVER_PARAMS_TRUSTSTOREPWD_PROPERTY, truststore_pwd, | ||
properties_set, encrypted=True) | ||
self.__set_connection_property_info(location, DRIVER_PARAMS_NET_SSL_VERSION, '1.2', properties_set) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the SSL version value should be a constant since presumably, it may change in the future?
Kudos, SonarCloud Quality Gate passed! |
This PR adds more validations to RCUDbinfo:
(1) databaseType must be ATP, SSL or ORACLE
(2) check for file existence for data source params property that reference file: keystore, truststore
(3) log RCU data source driver param setting to assist diagnostics