Allow /@TNS connections using Oracle Wallet (Secure External Password Store) - #230
Merged
Merged
Conversation
…d automatically by jdbc driver. So `cli` will only use the ORACLE_HOME resolution when TNS_ADMIN is not defined. Removed `oraclepki` as pom dependency. It is now delivered together with jdbc as part of java-api 3.2.5.
|
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.



Closes #225. Partly addresses #172: the password no longer has to appear on the command line.
Summary
utplsqlnow accepts a connect string with no user or password. The JDBC driver then reads the credentials from an Oracle Wallet, the same waysqlplus /@MYDBand SQLcl do:Details
TNS_ADMINhandling (DataSourceProvider)tnsnames.oraandojdbc.properties(where the wallet location goes) from theTNS_ADMINenvironment variable on its own.oracle.net.tns_admintoORACLE_HOME/network/adminonly when neither-Doracle.net.tns_adminnorTNS_ADMINis set. Previously it set the property wheneverORACLE_HOMEwas set, and because the property takes precedence in the driver, that silently overrodeTNS_ADMIN.-Doracle.net.tns_adminstill overrides everything.Behaviour change
If both
TNS_ADMINandORACLE_HOMEare set and point to different directories,TNS_ADMINnow wins, because the CLI no longer overrides it with theORACLE_HOMEpath. This matches how Oracle client tools resolve it. Connect strings that worked before are parsed the same way.