Skip to content

Commit

Permalink
Merge pull request #5501 from ddiroma/BACKLOG-39521
Browse files Browse the repository at this point in the history
[BACKLOG-39521] Security credentials exposed on clear text when using…
  • Loading branch information
dcleao authored Jan 23, 2024
2 parents 7d098a3 + 347af4d commit 7c88769
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the GNU Lesser General Public License for more details.
*
*
* Copyright (c) 2002-2023 Hitachi Vantara. All rights reserved.
* Copyright (c) 2002-2024 Hitachi Vantara. All rights reserved.
*
*/

Expand Down Expand Up @@ -790,10 +790,7 @@ private void performBackup() throws ParseException, KettleException, URISyntaxEx
*/
private String buildURL( String contextURL, String apiPath ) throws ParseException, KettleException {
StringBuilder sb = new StringBuilder();
sb.append( contextURL ).append( apiPath )
.append( "?userid=" ).append( getUsername() )
.append( "&password=" )
.append( Encr.encryptPassword( Encr.decryptPasswordOptionallyEncrypted( getPassword() ) ) );
sb.append( contextURL ).append( apiPath );

return sb.toString();
}
Expand Down

0 comments on commit 7c88769

Please sign in to comment.