Security issue: JDBC URI contains plaintext password & username
See original GitHub issueIssue Description
Proposal
Spline Agent should contain URI filtering for, at least, passwords. Captured Lineage data are send insecurely thru HTTP protocol to Producer, which can be located out of the secured network, so anyone can listen and capture the password.
I believe this issue should be solved on either Agent and UI sides. Best solution is not sent it at all or securely mask it (f.e. with asterisks).
Example
Current state:
DataSource URI: jdbc:sqlserver://sample.database.windows.net:1433;database=sample;user=sample;password=password;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30:
Future state:
DataSource URI: jdbc:sqlserver://sample.database.windows.net:1433;database=sample;user=;password=;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30:
Version
For version 0.5.1 Agent, UI.
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (14 by maintainers)
Please check it now, should be working. It was my oversight, the filtering was applied for the n-th level of nested properties, but not the 1st one. I’ve added more unit tests as well.
Hello @wajda , looking at the most recent changes and the PR for this issue, cases like this are completely solved:
However, there is still the case:
Would it be possible to change the regex in the properties such that this scenario is also handled? Thanks in advance for your help!