soi-toolkit / soi-toolkit-mule

SOI Toolkit and Mule ESB
Apache License 2.0
6 stars 1 forks source link

Soi-toolkit messageLogging logs visible password for SFTP inbound endpoint when using username/password #382

Open hdahl opened 9 years ago

hdahl commented 9 years ago

Original issue 382 created by soi-toolkit on 2014-11-27T14:16:40.000Z:

What steps will reproduce the problem?

  1. Create a project with SFTP inbound endpoint using username/password as authentication method and soi-toolkit messageLogging
  2. Enable Mule DEBUG logging for org.mule.transport.sftp
  3. Run application

What is the expected output? What do you see instead? In Mule log password is concealed with * on SFTP inbound endpoint but in soi-toolkit log password is visible. Soi-toolkit should also conceal password with preferably *. Note: This works fine on SFTP outbound endpoint.

/////////////////////////// Mule log 2014-11-27 14:41:31,639 DEBUG [[ic_113_MedinetTidomatUnderlag].connector.sftp.mule.default.receiver.01] org.mule.transport.sftp.SftpMessageReceiver - Polling. 1 files found at sftp://Username:****@sftp.lul.se:22/Tidomat/ToTidomat:[test.fil]

Soi-toolkit log \ logEvent-info.start *** IntegrationScenarioId=113 ContractId= LogMessage=101 ServiceImpl=svc_113-inbound-service Host=localhost (192.168.0.XXX) ComponentId=ic_113_MedinetTidomatUnderlag Endpoint=sftp://Username:Password@sftp.lul.se:22/Tidomat/ToTidomat MessageId=18d38240-763b-11e4-9cc1-b562a5116034 BusinessCorrelationId=18d46ca4-763b-11e4-9cc1-b562a5116034 BusinessContextId=

///////////////////////////////////

What version of the product are you using? Soi-toolkit 0.6.1 Mule ESB 3.4.0