GitHub user dosubot[bot] added a comment to the discussion: websocket connection to superset
<!-- Answer --> Yes, this makes the root cause clear: the repeated `invalid signature` errors in your websocket server logs mean the JWT secret used to sign tokens in Superset does not match the secret used to verify them in the websocket server. Both must be identical and at least 32 bytes long for authentication to work [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/async_events/async_query_manager.py). Check that the value of `GLOBAL_ASYNC_QUERIES_JWT_SECRET` is exactly the same (no extra spaces, line breaks, or encoding issues) in both your Superset config and your websocket server config/environment. After updating, restart both pods so they pick up the new secret. Once the secrets match, the `invalid signature` errors should disappear and websocket connections will succeed [source](https://github.com/apache/superset/discussions/33293). If you still see errors after syncing the secrets, double-check how each service loads the secret at runtime (print the value inside each pod/container to confirm). Let me know if you need help with that. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/85376d88-b1d2-4631-921d-f5b37e0c1c82?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34703) GitHub link: https://github.com/apache/superset/discussions/34703#discussioncomment-14108833 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
