AUTH_REMOTE_USER is not working after upgrade Apache superset 6.0.0rc4/3 #36446
Replies: 2 comments 1 reply
-
|
AUTH_REMOTE_USER is still supported in Superset 6.0.0rc3/rc4, but there are multiple reports that it stopped working after the upgrade, even though it worked in 5.0.0. This appears to be a regression or breaking change—no official fix or migration note exists yet, and some users have reverted to 5.0.0 as a workaround [source]. The most common causes for failures are: the REMOTE_USER environment variable not being set (either by the proxy or by missing middleware), the proxy not forwarding the correct header, or issues with subpath/app root configuration (SUPERSET_APP_ROOT) and middleware ordering. Superset expects either the proxy to inject the username into REMOTE_USER, or for you to use ADDITIONAL_MIDDLEWARE in Here’s a quick checklist:
Sample middleware for copying a proxy header: class RemoteUserMiddleware(object):
def __init__(self, app):
self.app = app
def __call__(self, environ, start_response):
user = environ.pop('HTTP_X_PROXY_REMOTE_USER', None)
if user:
environ['REMOTE_USER'] = user
return self.app(environ, start_response)
ADDITIONAL_MIDDLEWARE = [RemoteUserMiddleware]If you’re still stuck, check the open issues and consider sharing your config and logs in the relevant threads. For now, reverting to 5.0.0 is the only confirmed workaround [source]. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
@dosu, This is custom code that previously worked in Apache Superset v5. Part of configOverrides in values.yaml. Were there any changes introduced in Apache Superset v6 that could potentially affect this implementation? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Has anyone encountered this issue? I couldn’t find any documentation regarding AUTH_REMOTE_USER in version 6.0.0. I’m aware that Flask App Builder was updated to version 5.0.
Beta Was this translation helpful? Give feedback.
All reactions