Skip to content

[v15] fix: fixes a possible panic during auth start if upsert operation fails#54325

Merged
tigrato merged 1 commit intobranch/v15from
bot/backport-54323-branch/v15
Apr 25, 2025
Merged

[v15] fix: fixes a possible panic during auth start if upsert operation fails#54325
tigrato merged 1 commit intobranch/v15from
bot/backport-54323-branch/v15

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Apr 25, 2025

Backport #54323 to branch/v15

changelog: Fixed a potential panic during Auth Server startup when the backend returns an error.

This PR fixes a possible panic caused by a failure caused by a backend
failure. If the failure occurs, we replaced the user object with the
result of the `{Upsert|Create}User` operation. If the operation fails,
both calls return `nil, err` and when building the error stream, we
accessed a nil user.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
@tigrato tigrato added this pull request to the merge queue Apr 25, 2025
Merged via the queue into branch/v15 with commit f40d0cd Apr 25, 2025
34 checks passed
@tigrato tigrato deleted the bot/backport-54323-branch/v15 branch April 25, 2025 20:47
@doggydogworld doggydogworld mentioned this pull request Apr 28, 2025
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