Skip to content

Commit

Permalink
teleport: add users - admin, guest
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor111@gmail.com>
  • Loading branch information
batazor committed Jan 5, 2023
1 parent 86578db commit 0405177
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ops/Helm/addons/teleport/templates/user/admin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: resources.teleport.dev/v5
kind: TeleportRole
metadata:
name: admin
spec:
allow:
rules:
- resources: ['user', 'role']
verbs: ['list', 'create', 'read', 'update', 'delete']

---
apiVersion: resources.teleport.dev/v2
kind: TeleportUser
metadata:
name: shortlink
spec:
roles: ['admin']
17 changes: 17 additions & 0 deletions ops/Helm/addons/teleport/templates/user/guest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: resources.teleport.dev/v5
kind: TeleportRole
metadata:
name: guest
spec:
allow:
rules:
- resources: ['user', 'role']
verbs: ['list', 'read']

---
apiVersion: resources.teleport.dev/v2
kind: TeleportUser
metadata:
name: guest
spec:
roles: ['guest']

0 comments on commit 0405177

Please sign in to comment.