cacti icon indicating copy to clipboard operation
cacti copied to clipboard

fix(weaver): remove sensitive logging

Open malsomesh9 opened this issue 7 months ago • 6 comments

Summary

Remove or sanitize sensitive logging in the code paths flagged by issue #2762.

Changes

  • stop logging full error objects in the Weaver Fabric network helpers and log only the error message
  • stop logging the Fabric admin enrollment secret in walletUtils
  • stop dumping the full connector response in the connector status script and log only the response status
  • apply the connector script fix in the current Ethereum connector script, which appears to be the renamed successor of the older Quorum path referenced in the original scan

Verification

  • reviewed the affected call sites and kept the operational behavior unchanged apart from the sanitized logging output

Fixes #2762

malsomesh9 avatar Apr 06 '26 18:04 malsomesh9

Updated this to avoid a misleading status-only message when the response shape is invalid. The script now logs a more general sanitized message so we can distinguish an unexpected status from a missing data payload, without dumping the full response body.

malsomesh9 avatar Apr 29 '26 13:04 malsomesh9

@LordKubaya What should i do next

malsomesh9 avatar May 04 '26 16:05 malsomesh9

Rebuilt this PR to remove the accidental merge commit. I created a clean branch from current main, cherry-picked the two intended PR commits, squashed them into a single commit, and force-pushed the updated branch.\n\nCurrent PR history is now one commit on top of main: b9488c7a4 ().\n\nI also kept a local backup ref before rewriting in case we need to recover the old branch state.

malsomesh9 avatar May 18 '26 09:05 malsomesh9

Hii @sandeepnRES I have done what u told above but still it is failing.

malsomesh9 avatar May 18 '26 09:05 malsomesh9

@malsomesh9 Thanks for the PR. Approved.

sandeepnRES avatar Jul 09 '26 19:07 sandeepnRES

@malsomesh9 Please check the commit lint, why it is failing, can you fix it. It'd probably need making commit message text don't cross 80 chars in every line. (72 for title, which is fine)

sandeepnRES avatar Jul 22 '26 20:07 sandeepnRES