Skip to content

Hide Session Recordings and Clusters option for normal users #7856

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

You must be logged in to vote

You should be able to give those users a role with deny clauses like this:

kind: role
metadata:
  name: deny-sessions-clusters
spec:
  deny:
    rules:
    - resources:
      - remote_cluster
      verbs:
      - '*'
    - resources:
      - trusted_cluster
      verbs:
      - '*'
    - resources:
      - session
      verbs:
      - '*'    
    - resources:
      - event
      verbs:
      - '*'

The menu items may still appear just due to the way the web UI is designed, but attempting to access them should result in an "access denied" error.

Replies: 1 comment

Comment options

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