Skip to content

[v13] Validate desktop names#31766

Merged
zmb3 merged 1 commit intobranch/v13from
bot/backport-31739-branch/v13
Sep 12, 2023
Merged

[v13] Validate desktop names#31766
zmb3 merged 1 commit intobranch/v13from
bot/backport-31739-branch/v13

Conversation

@zmb3
Copy link
Copy Markdown
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
@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.

3 participants