Skip to content

Trino 428 and empty catalogs #37

Closed Answered by sbernauer
dshershov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dshershov!

I have not tested it, but seems to me like the catalogs are loaded, but you are missing the permissions to access them.
The new authorizer does not only have a simple check "can user foo do bar?", but also an batched API, which sends an array of (catalogs/schemas/tables) to OPA and gets a yes/no for each entry. All of that with a single OPA API call, so we can save round-trips.

You can see the OPA rules used in integration-tests here.
I guess you are missing something like

    extended[i] {
        some i
        input.action.filterResources[i]
        is_admin
    }

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sbernauer
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants