Add preset device trust roles#30865
Merged
codingllama merged 2 commits intomasterfrom Aug 23, 2023
Merged
Conversation
Contributor
Author
|
As created in the server: kind: role
metadata:
description: Administer trusted devices
id: 1692725645911361000
labels:
teleport.internal/resource-type: preset
name: device-admin
spec:
allow:
rules:
- resources:
- device
verbs:
- list
- create
- read
- update
- delete
- create_enroll_token
- enroll
deny: {}
options:
cert_format: standard
create_db_user: false
create_desktop_user: false
desktop_clipboard: true
desktop_directory_sharing: true
enhanced_recording:
- command
- network
forward_agent: false
idp:
saml:
enabled: true
max_session_ttl: 30h0m0s
pin_source_ip: false
port_forwarding: true
record_session:
default: best_effort
desktop: true
ssh_file_copy: true
version: v6kind: role
metadata:
description: Enroll trusted devices
id: 1692367644874884000
name: device-enroll
spec:
allow:
rules:
- resources:
- device
verbs:
- enroll
deny: {}
options:
cert_format: standard
create_db_user: false
create_desktop_user: false
desktop_clipboard: true
desktop_directory_sharing: true
enhanced_recording:
- command
- network
forward_agent: false
idp:
saml:
enabled: true
max_session_ttl: 30h0m0s
pin_source_ip: false
port_forwarding: true
record_session:
default: best_effort
desktop: true
ssh_file_copy: true
version: v6kind: role
metadata:
description: Require trusted device to access resources
id: 1692725645922416000
labels:
teleport.internal/resource-type: preset
name: require-trusted-device
spec:
allow:
db_labels:
'*': '*'
db_names:
- '*'
db_users:
- '*'
kubernetes_groups:
- '{{internal.kubernetes_groups}}'
- system:masters
- developers
- viewers
kubernetes_labels:
'*': '*'
logins:
- '{{internal.logins}}'
node_labels:
'*': '*'
deny: {}
options:
cert_format: standard
create_db_user: false
create_desktop_user: false
desktop_clipboard: true
desktop_directory_sharing: true
device_trust_mode: required
enhanced_recording:
- command
- network
forward_agent: false
idp:
saml:
enabled: true
max_session_ttl: 30h0m0s
pin_source_ip: false
port_forwarding: true
record_session:
default: best_effort
desktop: true
ssh_file_copy: true
version: v6 |
zmb3
approved these changes
Aug 22, 2023
Contributor
Author
|
FYI @sshahcodes. |
Contributor
Author
|
Tests should be good now, sorry for the delay. |
jakule
approved these changes
Aug 22, 2023
|
@codingllama See the table below for backport results.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the following preset/example roles: