-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add labels to Windows Desktop Service, add endpoint for searching them #16436
Changes from all commits
4de6493
b2a4113
f93f41a
1129310
fa4e733
53591ab
42ec60b
7702543
8082921
da443e6
fd6dcf7
493e03c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,9 @@ windows_desktop_service: | |
environment: dev | ||
- match: '^.*\.prod\.example\.com$' | ||
labels: | ||
environment: prod | ||
environment: prod | ||
|
||
# Labels to attach to the Windows Desktop Service. This is used internally, so | ||
# any custom labels added won't affect the Windows hosts. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what the "This is used internally" sentence means. Since this field is only used internally, when would someone want to set a custom value for it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They shouldn't, but I didn't know if we allowed for config properties that are only used internally to go undocumented on the config reference page. |
||
labels: | ||
teleport.internal/resource-id: "resource-id" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1999,6 +1999,8 @@ func (set RoleSet) checkAccess(r AccessCheckable, mfa AccessMFAParams, matchers | |
case types.KindWindowsDesktop: | ||
getRoleLabels = types.Role.GetWindowsDesktopLabels | ||
additionalDeniedMessage = "Confirm Windows user." | ||
case types.KindWindowsDesktopService: | ||
getRoleLabels = types.Role.GetWindowsDesktopLabels | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm is this right? This looks like it only applies to the actual resources, not the Teleport agents that report them. |
||
default: | ||
return trace.BadParameter("cannot match labels for kind %v", r.GetKind()) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would check with Lisa on this. I don't remember the details but there is some reason why
ListResources
isn't supported for desktops.