Skip to content

Commit

Permalink
Document SSO caveats on UserSpecV2.TrustedDeviceIDs (#44847)
Browse files Browse the repository at this point in the history
* Document SSO caveats on UserSpecV2.TrustedDeviceIDs

* Update generated protos

* Run `make -C integrations/operator manifests`

* Run `make -C integrations/terraform docs`
  • Loading branch information
codingllama authored Aug 1, 2024
1 parent 2885f03 commit 2966a67
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
7 changes: 7 additions & 0 deletions api/proto/teleport/legacy/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3490,6 +3490,13 @@ message UserSpecV2 {
LocalAuthSecrets LocalAuth = 9 [(gogoproto.jsontag) = "local_auth,omitempty"];

// TrustedDeviceIDs contains the IDs of trusted devices enrolled by the user.
//
// Note that SSO users are transient and thus may contain an empty
// TrustedDeviceIDs field, even though the user->device association exists
// under the Device Trust subsystem. Do not rely on this field to determine
// device associations or ownership, it exists for legacy/informative purposes
// only.
//
// Managed by the Device Trust subsystem, avoid manual edits.
repeated string TrustedDeviceIDs = 10 [(gogoproto.jsontag) = "trusted_device_ids,omitempty"];
}
Expand Down
7 changes: 7 additions & 0 deletions api/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Optional:
- `roles` (List of String) Roles is a list of roles assigned to user
- `saml_identities` (Attributes List) SAMLIdentities lists associated SAML identities that let user log in using externally verified identity (see [below for nested schema](#nested-schema-for-specsaml_identities))
- `traits` (Map of List of String)
- `trusted_device_ids` (List of String) TrustedDeviceIDs contains the IDs of trusted devices enrolled by the user. Managed by the Device Trust subsystem, avoid manual edits.
- `trusted_device_ids` (List of String) TrustedDeviceIDs contains the IDs of trusted devices enrolled by the user. Note that SSO users are transient and thus may contain an empty TrustedDeviceIDs field, even though the user->device association exists under the Device Trust subsystem. Do not rely on this field to determine device associations or ownership, it exists for legacy/informative purposes only. Managed by the Device Trust subsystem, avoid manual edits.

### Nested Schema for `spec.github_identities`

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/reference/terraform-provider/resources/user.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Optional:
- `roles` (List of String) Roles is a list of roles assigned to user
- `saml_identities` (Attributes List) SAMLIdentities lists associated SAML identities that let user log in using externally verified identity (see [below for nested schema](#nested-schema-for-specsaml_identities))
- `traits` (Map of List of String)
- `trusted_device_ids` (List of String) TrustedDeviceIDs contains the IDs of trusted devices enrolled by the user. Managed by the Device Trust subsystem, avoid manual edits.
- `trusted_device_ids` (List of String) TrustedDeviceIDs contains the IDs of trusted devices enrolled by the user. Note that SSO users are transient and thus may contain an empty TrustedDeviceIDs field, even though the user->device association exists under the Device Trust subsystem. Do not rely on this field to determine device associations or ownership, it exists for legacy/informative purposes only. Managed by the Device Trust subsystem, avoid manual edits.

### Nested Schema for `spec.github_identities`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ spec:
type: object
trusted_device_ids:
description: TrustedDeviceIDs contains the IDs of trusted devices
enrolled by the user. Managed by the Device Trust subsystem, avoid
manual edits.
enrolled by the user. Note that SSO users are transient and thus
may contain an empty TrustedDeviceIDs field, even though the user->device
association exists under the Device Trust subsystem. Do not rely
on this field to determine device associations or ownership, it
exists for legacy/informative purposes only. Managed by the Device
Trust subsystem, avoid manual edits.
items:
type: string
nullable: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ spec:
type: object
trusted_device_ids:
description: TrustedDeviceIDs contains the IDs of trusted devices
enrolled by the user. Managed by the Device Trust subsystem, avoid
manual edits.
enrolled by the user. Note that SSO users are transient and thus
may contain an empty TrustedDeviceIDs field, even though the user->device
association exists under the Device Trust subsystem. Do not rely
on this field to determine device associations or ownership, it
exists for legacy/informative purposes only. Managed by the Device
Trust subsystem, avoid manual edits.
items:
type: string
nullable: true
Expand Down
2 changes: 1 addition & 1 deletion integrations/terraform/tfschema/types_terraform.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2966a67

Please sign in to comment.