Impersonate issue or misconfiguration with cache #29670
Replies: 2 comments
-
@jpambrun-vida ¡Hola! I'm here to assist you with any issues you encounter. Let's work together to solve this problem. To ensure that the cache in Superset respects user-specific access levels when using Trino with OPA policies and impersonation enabled, you need to configure impersonation correctly and enable specific feature flags.
By following these steps, you can ensure that the cache in Superset respects user-specific access levels when using Trino with OPA policies and impersonation enabled. |
Beta Was this translation helpful? Give feedback.
-
The bot hallucinated quite a bit, but gave something to search for. I needed to add FEATURE_FLAGS = {
# ...
"CACHE_IMPERSONATION" : True
} I imagine this feature is still under testing, but the default (of comingling cache for impersonated queries) is quite unexpected. |
Beta Was this translation helpful? Give feedback.
-
I have a trino database with OPA policies granting different row and columns levels access depending on the user. In superset I have the trino backend set impersonate.
I have a rather serious issue where if a user with wide access loads a dashboard, his cached results are presented to the lower access users.
Am I misconfiguring something? I assume that when impersonate is enable, the cache key need to include the user so that it can't be re-use for user with different level of access?
Beta Was this translation helpful? Give feedback.
All reactions