Skip to content

fix(mcp_adapter): stop writing the caller's password to stderr and the log (ISSUE-121) - #425

Merged
dwolfson merged 2 commits into
odpi:mainfrom
dwolfson:fix/issue-121-mcp-adapter-no-password-logging
Oct 5, 2026
Merged

dwolfson merged 2 commits into
odpi:mainfrom
dwolfson:fix/issue-121-mcp-adapter-no-password-logging

Conversation

@dwolfson

@dwolfson dwolfson commented Oct 5, 2026

Copy link
Copy Markdown
Member

Summary

  • ISSUE-121: run_report and _execute_egeria_call_blocking wrote the caller's user_pass to stderr, and run_report also logged it via loguru (three sites, two functions). A single _describe_call() helper now builds the diagnostic for all three: it keeps report/params/server/user and states the kind of credential (bearer token / explicit user/password / defaults from settings), never the value.
  • Corrects the ISSUE-121 entry: three sites not two, and the settings-fallback path never leaked (the string is built before the fallback, so it logged None).

Test plan

  • new test_mcp_adapter_no_secret_logging.py (5 tests) asserts a sentinel password/token is absent from stderr and a loguru sink; fails on the old code
  • full tests/micro-tests passes
  • Not done by code: debug-log archives written before this fix may already contain a password; rotating any real credential used through this adapter is the owner's call.

🤖 Generated with Claude Code

dwolfson and others added 2 commits October 5, 2026 07:41
…e log (ISSUE-121)

run_report and _execute_egeria_call_blocking printed user_pass to stderr, and
run_report also logged it via loguru. One _describe_call() helper now builds the
diagnostic for all three sites: it keeps report, params, server and user, and
says which kind of credential was supplied instead of its value. Also corrects
the ISSUE-121 entry (three sites in two functions; the settings-fallback path
never leaked).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 7bbd4ba into odpi:main Oct 5, 2026
4 checks passed
@dwolfson
dwolfson deleted the fix/issue-121-mcp-adapter-no-password-logging branch October 5, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant