Mask one-time OAuth values in FastMCP OAuth proxy logs (0.1.1-dev.4) #108
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/oauth-proxy-log-redaction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
0.1.1-dev.3 redacted the access log, but a live test callback (fake
code/state) still showed thestatein the server log:FastMCP 4.1.3's OAuth proxy logs the transaction ID (= the returned
state) at ERROR for stale or forged callbacks, and authorization codes/transactions at DEBUG.OAuthProxySecretFilteronfastmcp.server.auth.oauth_proxy.proxymasks the arguments of exactly those messages (IdP callback with invalid transaction ID,Transaction %s missing consent_token,Authorization code not found/expired) and the f-stringForwarding to client callback for transaction …. Other messages (refresh-token prefixes, upstream errors) unchanged.0.1.1-dev.4, no API change.
Change review ·
efa7e987759c→4f05af8c74a9Call paths changed by this PR
Caller → changed symbol → callee. Each edge labels the line in the caller. One detected entry path (up to 3 hops) is included when found. Static evidence, not a runtime stack trace.
After
Changed symbols:
OAuthProxySecretFilter.filter—src/corn/access_log.py:58_attach—src/corn/access_log.py:66install—src/corn/access_log.py:72run_server—src/corn/server.py:550test_install_is_idempotent—tests/test_access_log.py:69test_oauth_proxy_one_time_values_are_masked—tests/test_access_log.py:86Bounded view: 6 more changed symbols and 0 neighbour references omitted.
Overall architecture after this change
Source: 4f05af8c74a9 ·
code-review 0.1.0-dev.1.Generated from resolved static calls between reviewed code areas. Numbers are call sites, not request counts.
Framework registration, dynamic dispatch, and unresolved calls are not shown. This is not a deployment map.
Showing 6 of 6 inter-area edges. Edit the reviewed source instead of this generated page.
This diagram is for the linked commit. It refreshes after required checks pass for a new head.