Skip to content

Display more user friendly error for invalid os logins in Web UI#47420

Merged
rosstimothy merged 1 commit intomasterfrom
tross/web_access_denied_error
Oct 15, 2024
Merged

Display more user friendly error for invalid os logins in Web UI#47420
rosstimothy merged 1 commit intomasterfrom
tross/web_access_denied_error

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Oct 9, 2024

Host resolution no longer happens prior to connections in the Web UI and all dial attempts are by UUID. When an invalid login is attempted the error message constructed only contained the info provided to the dial request: a login and a Host UUID. To make this error more user friendly access denied errors are now augmented with the hostname if the user has permissions to that host and the error occurs only due to an invalid login.

Closes #23719

changelog: Include host name instead of host uuid in error messages when SSH connections are prevented due to an invalid login

Host resolution no longer happens prior to connections in the Web
UI and all dial attempts are by UUID. When an invalid login is
attempted the error message constructed only contained the info
provided to the dial request: a login and a Host UUID. To make
this error more user friendly access denied errors are now
augmented with the hostname if the user has permissions to that
host and the error occurs only due to an invalid login.

Closes #23719
@rosstimothy rosstimothy force-pushed the tross/web_access_denied_error branch from 34c6a3d to a2627f5 Compare October 9, 2024 23:02
@rosstimothy rosstimothy marked this pull request as ready for review October 10, 2024 13:41
@github-actions github-actions Bot requested a review from fspmarshall October 10, 2024 13:42
@github-actions github-actions Bot requested a review from Tener October 10, 2024 13:42
@rosstimothy
Copy link
Copy Markdown
Contributor Author

Friendly ping @fspmarshall

@rosstimothy rosstimothy added this pull request to the merge queue Oct 15, 2024
Merged via the queue into master with commit 01e71eb Oct 15, 2024
@rosstimothy rosstimothy deleted the tross/web_access_denied_error branch October 15, 2024 15:10
@public-teleport-github-review-bot
Copy link
Copy Markdown

@rosstimothy See the table below for backport results.

Branch Result
branch/v14 Failed
branch/v15 Create PR
branch/v16 Create PR

rosstimothy added a commit that referenced this pull request Oct 15, 2024
)

Host resolution no longer happens prior to connections in the Web
UI and all dial attempts are by UUID. When an invalid login is
attempted the error message constructed only contained the info
provided to the dial request: a login and a Host UUID. To make
this error more user friendly access denied errors are now
augmented with the hostname if the user has permissions to that
host and the error occurs only due to an invalid login.

Closes #23719
rosstimothy added a commit that referenced this pull request Oct 15, 2024
)

Host resolution no longer happens prior to connections in the Web
UI and all dial attempts are by UUID. When an invalid login is
attempted the error message constructed only contained the info
provided to the dial request: a login and a Host UUID. To make
this error more user friendly access denied errors are now
augmented with the hostname if the user has permissions to that
host and the error occurs only due to an invalid login.

Closes #23719
rosstimothy added a commit that referenced this pull request Oct 15, 2024
)

Host resolution no longer happens prior to connections in the Web
UI and all dial attempts are by UUID. When an invalid login is
attempted the error message constructed only contained the info
provided to the dial request: a login and a Host UUID. To make
this error more user friendly access denied errors are now
augmented with the hostname if the user has permissions to that
host and the error occurs only due to an invalid login.

Closes #23719
mvbrock pushed a commit that referenced this pull request Oct 16, 2024
)

Host resolution no longer happens prior to connections in the Web
UI and all dial attempts are by UUID. When an invalid login is
attempted the error message constructed only contained the info
provided to the dial request: a login and a Host UUID. To make
this error more user friendly access denied errors are now
augmented with the hostname if the user has permissions to that
host and the error occurs only due to an invalid login.

Closes #23719
github-merge-queue Bot pushed a commit that referenced this pull request Oct 17, 2024
) (#47603)

Host resolution no longer happens prior to connections in the Web
UI and all dial attempts are by UUID. When an invalid login is
attempted the error message constructed only contained the info
provided to the dial request: a login and a Host UUID. To make
this error more user friendly access denied errors are now
augmented with the hostname if the user has permissions to that
host and the error occurs only due to an invalid login.

Closes #23719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Access Denied for SSH showing unique id, not nodename

3 participants