Skip to content

[v18] Add OTP fallback for SSHAgentMFAWebSessionLogin#57161

Merged
okraport merged 6 commits intobranch/v18from
bot/backport-57133-branch/v18
Jul 25, 2025
Merged

[v18] Add OTP fallback for SSHAgentMFAWebSessionLogin#57161
okraport merged 6 commits intobranch/v18from
bot/backport-57133-branch/v18

Conversation

@okraport
Copy link
Copy Markdown
Contributor

Backport #57133 to branch/v18

changelog: Fixed fallback for web login when second factor is set to on but only OTP is configured.

okraport and others added 6 commits July 24, 2025 17:53
In the case Teleport `second_factor` is set to `on`,
it is possible for a user to only have OTP configured.
Prior to this commit this would result in a auth fail
as the created challenge only supported TOTP.

Server side would recieve an incomplete `AuthenticateWebUserRequest`
object, which fails validation via `CheckAndSetDefaults` and
as such only a failed login audit event was emitted with no
additional logs.

This mode of failure can be reproduced with
`tsh bench -d web sessions --auth=local`.

changelog: Fixed fallback for web login when second factor is set to `on` but only OTP is configured.
Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
@okraport okraport enabled auto-merge July 25, 2025 09:27
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from rosstimothy July 25, 2025 10:04
@okraport okraport added this pull request to the merge queue Jul 25, 2025
Merged via the queue into branch/v18 with commit 14d56b8 Jul 25, 2025
42 checks passed
@okraport okraport deleted the bot/backport-57133-branch/v18 branch July 25, 2025 10:27
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