cube-js / cube

📊 Cube — The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.49k stars 1.74k forks source link

Starburst connector, including security features (roles, oauth2 passthrough) #7600

Open Je-Cp opened 6 months ago

Je-Cp commented 6 months ago

Is your feature request related to a problem? Please describe. Passing Oauth2 context (access and refresh token) from OIDC provider used on cube authentication to Starburst, plus a BIAC role using X-Trino-role header https://docs.starburst.io/latest/security/oauth2.html https://docs.starburst.io/latest/security/oauth2-passthrough.html https://docs.starburst.io/latest/starburst-rest-api.html#authorization

Describe the solution you'd like Fork existing Presto connector to a dedicated Trino/Starburst one.

Describe alternatives you've considered None

Additional context Add any other context or screenshots about the feature request here.

igorlukanin commented 5 months ago

Hey @Je-Cp 👋 Thanks for posing this! Just FYI, there's already a Trino connector which is distinct from the one for Presto. The rest of your proposal makes sense to me.