Skip to content

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

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

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

Conversation

@tigrato
Copy link
Copy Markdown
Contributor

@tigrato tigrato commented Apr 25, 2025

Backport #54323 to branch/v16

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/v16 with commit 7dc6268 Apr 25, 2025
40 checks passed
@tigrato tigrato deleted the bot/backport-54323-branch/v16 branch April 25, 2025 20:46
@fheinecke fheinecke mentioned this pull request Apr 30, 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