rusackas commented on code in PR #43388:
URL: https://github.com/apache/superset/pull/43388#discussion_r3833730939
##########
superset/mcp_service/mcp_config.py:
##########
@@ -322,6 +322,13 @@ class MCPAuthConfigError(ValueError):
# When enabled with MCP_STORE_CONFIG, uses Redis store.
MCP_CACHE_CONFIG: dict[str, Any] = {
"enabled": False, # Disabled by default
+ # Cache keys are method/tool + arguments only and cache hits are served
+ # ahead of per-request auth/RBAC, so a shared cache can return one
+ # caller's response to another. Response caching refuses to start
+ # unless this is explicitly set -- only appropriate when every request
+ # is guaranteed to come from the same principal (e.g. a single-user
+ # development deployment).
+ "dangerously_share_cache_across_principals": False,
Review Comment:
Good catch, fixed. Both scenario 2 and 3 in the docstring above now show
setting `dangerously_share_cache_across_principals = True` alongside `enabled =
True`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]