Skip to content
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

[v13] Validate desktop names #31766

Merged
merged 1 commit into from
Sep 12, 2023
Merged

[v13] Validate desktop names #31766

merged 1 commit into from
Sep 12, 2023

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Sep 12, 2023

Backport #31739 to branch/v13

Changelog: fail with an error if desktops are created with invalid names

Desktops cannot contain '.' characters in their names, as we use SNI
to pass the desktop name in the TLS handshake. This wasn't a problem
in the past when Teleport was the only thing that created desktops,
as we were sure to sanitize names. With non-AD access we encourage
users to register their own desktops via API or tctl, and they often
encounter a confusing TLS error when they use an invalid name.

With this change:

    ➜ tctl create -f desktop-resource.yaml
    ERROR: invalid name "this-is-a.test": desktop names cannot contain periods

Fixes #31644
@zmb3 zmb3 added this pull request to the merge queue Sep 12, 2023
Merged via the queue into branch/v13 with commit cd94f5f Sep 12, 2023
22 checks passed
@zmb3 zmb3 deleted the bot/backport-31739-branch/v13 branch September 12, 2023 22:37
@camscale camscale mentioned this pull request Sep 20, 2023
@fheinecke fheinecke mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants