Skip to content

[v14] Validate desktop names#31767

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

[v14] Validate desktop names#31767
zmb3 merged 1 commit intobranch/v14from
bot/backport-31739-branch/v14

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Sep 12, 2023

Backport #31739 to branch/v14

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/v14 with commit 70d76ed Sep 12, 2023
@zmb3 zmb3 deleted the bot/backport-31739-branch/v14 branch September 12, 2023 22:40
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