Open amotl opened 1 day ago
We just found this is most likely the root cause.
The canonical recommendation is to downgrade to PyJWT in the meanwhile.
pip install 'pyjwt<2.10'
That patch submitted by Dependabot also demonstrates the problem.
@jkogut: Do you have any idea why only we might be affected, but Superset's test suite seems to still succeed, and nobody else seems to be tripped? Is it related to the value of the SECRET_KEY maybe?
@amotl yes indeed that was caused by the incorrect SECRET_KEY. Happened during test migration of superset instance. So indeed please double check SECRET_KEY. 🙏
@amotl actually I was wrong, correct SECRET_KEY only allowed me to get access token but cannot proceed further with getting chart list for instance:
def get_chart_list():
headers = {
'Authorization': f"Bearer {get_bearer_token()}"
}
response = requests.get(f"{base_url}/chart/", headers=headers, verify=False)
return response.json()
problem observed as reported on Superset 3.1.3, and fixed as recommended with installing PyJWT==2.9.0.
So still looks like new PyJWT 2.10.0 release can cause some problems with Superset API access.
Bug description
When setting up a fresh sandbox environment, PyJWT 2.10 gets installed, released on Nov 17, i.e. three days ago. That breaks a little integration test suite we are running [^1]. This is the exception being raised:
When downgrading to use
pyjwt<2.10
, the test suite succeeds again.You may want to accompany this by potentially adjusting dependencies or code in Apache Superset?
[^1]: ... which orchestrates CLI invocations of the
superset
program and HTTP calls to the Superset API, in order to validate it works well together with CrateDB.Superset version
3.x and 4.x
Additional context
The software test suite maintained here can be used to reproduce the problem.
We added relevant details to this ticket, where we started to investigate this issue.
Checklist