Skip to content

Permit routing to agentless nodes with non-UUID metadata.name#50915

Merged
rosstimothy merged 1 commit intomasterfrom
tross/fix_agentless_routing
Jan 9, 2025
Merged

Permit routing to agentless nodes with non-UUID metadata.name#50915
rosstimothy merged 1 commit intomasterfrom
tross/fix_agentless_routing

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

We suggest that a UUID is used for agentless nodes metadata.name field, but we do not enforce it. This causes several edge cases and slightly weird UX in places that expect the name to be a UUID. Most notably, this presents dialing problems for the web ui as described in #50914. To allowing dialing to function in all cases for these servers, routing has been updated to permit matches on metadata.name, however, the match is given a lower score then a match on a UUID. This should permit dialing, though, it may still result in ambiguity.

Closes #50914.

Changelog: Prevent routing issues for agentless nodes that are created with non-UUID metadata.name fields.

We suggest that a UUID is used for agentless nodes metadata.name
field, but we do not enforce it. This causes several edge cases
and slightly weird UX in places that expect the name to be a UUID.
Most notably, this presents dialing problems for the web ui as
described in #50914.
To allowing dialing to function in all cases for these servers,
routing has been updated to permit matches on metadata.name, however,
the match is given a lower score then a match on a UUID. This should
permit dialing, though, it may still result in ambiguity.

Closes #50914.
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from hugoShaka January 9, 2025 19:00
@rosstimothy rosstimothy added this pull request to the merge queue Jan 9, 2025
Merged via the queue into master with commit 17edb10 Jan 9, 2025
@rosstimothy rosstimothy deleted the tross/fix_agentless_routing branch January 9, 2025 20:54
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
…ational#50915)

We suggest that a UUID is used for agentless nodes metadata.name
field, but we do not enforce it. This causes several edge cases
and slightly weird UX in places that expect the name to be a UUID.
Most notably, this presents dialing problems for the web ui as
described in gravitational#50914.
To allowing dialing to function in all cases for these servers,
routing has been updated to permit matches on metadata.name, however,
the match is given a lower score then a match on a UUID. This should
permit dialing, though, it may still result in ambiguity.

Closes gravitational#50914.
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.

Using a non-UUID name for OpenSSH causes Web UI to not find node in inventory

3 participants