You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our setup uses Basic Auth for users via a transparent proxy that exchange the Basic Auth credentials to JWT token and passes to the backend. When we have Trino Gateway set up behind this transparent proxy, users would need to provide credentials via Basic Auth as required for other part of Trino.
While the Trino Gateway UI can load properly under Basic Auth, it looks like the ajax calls made by this UI do not carry the Basic Auth credentials in the request headers. All the resources (images / css / js files) are loaded properly with Basic Auth credentials inherited from the page itself, but the ajax calls don't carry these credentials.
It seems to me that this might be related to the getHeaders function as defined here:
From my limited understanding this would require for Trino Gateway to support JWT token auth .. at this stage this is not the case.
I am not sure if adding the basic auth credentials to the ajax calls would solve your issue but you could try and if it works send a PR.
For our use case, we are not expecting Trino Gateway to use the basic auth creds for its own authentication. Our setup has a basic auth to protect the whole domain, and the fact that the ajax calls don't carry basic auth creds causes these calls to get HTTP 401.
I have tried to fix it myself but cannot find a way to propagate the basic creds with my limited frontend knowledge.
Our setup uses Basic Auth for users via a transparent proxy that exchange the Basic Auth credentials to JWT token and passes to the backend. When we have Trino Gateway set up behind this transparent proxy, users would need to provide credentials via Basic Auth as required for other part of Trino.
While the Trino Gateway UI can load properly under Basic Auth, it looks like the ajax calls made by this UI do not carry the Basic Auth credentials in the request headers. All the resources (images / css / js files) are loaded properly with Basic Auth credentials inherited from the page itself, but the ajax calls don't carry these credentials.
It seems to me that this might be related to the
getHeaders
function as defined here:trino-gateway/webapp/src/api/base.ts
Lines 123 to 138 in 23e8320
I'm not sure how to make it work though, but at this point, our UI is rendered without data because of this header not being carried.
Does anyone else run into this issue too?
The text was updated successfully, but these errors were encountered: