Skip to content

Managing user access to kubernetes resource in teleport role or kubernetes RBAC ? #40161

Answered by webvictim
mositafan10 asked this question in Q&A
Discussion options

You must be logged in to vote

I think the reason you're seeing this difference is because your role is using version: v6 rather than version: v7: https://goteleport.com/docs/changelog/#extended-kubernetes-per-resource-rbac

When using version: v7, this should work the way you're describing. Even though the editor Kubernetes group has greater permissions, setting kubernetes_resources should cause Teleport to filter out any resources in other namespaces before the response is passed back to the user.

So here's what should happen:

  • if you run kubectl -n test get services I'd expect that you see all services in the test namespace
  • if you run kubectl -n test get pods you should see nothing (even if there are pods in the test

Replies: 1 comment

Comment options

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