Skip to content

List API: Display all Objects a User has Access to in an RBAC implementation #691

Answered by zepatrik
landerss1 asked this question in Q&A
Discussion options

You must be logged in to vote

Nice, that looks very good 👍

One small thing: some of your tuples (e.g. {"namespace":"policies","object":"/system/my-api/*/rw","relation":"access","subject":"roles:/system/system-admin"}) are not actually what you think they are. The subject is not interpreted as a subject set, but as a subject ID instead because there is no #. But in general your tuples represent what you described 👍
Regarding naming, you might want to actually have the permissions namespace called apis or endpoints instead, but that is just from the, I assume, broken down example. It might make sense in the bigger picture that I don't see 😉

Regarding the list API, it's purpose is to list the tuples exactly as they are s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by landerss1
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
2 participants