Skip to content

[v14] tsh: fix panic when loading profile#38304

Merged
zmb3 merged 1 commit intobranch/v14from
bot/backport-38197-branch/v14
Feb 15, 2024
Merged

[v14] tsh: fix panic when loading profile#38304
zmb3 merged 1 commit intobranch/v14from
bot/backport-38197-branch/v14

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented Feb 15, 2024

Backport #38197 to branch/v14

changelog: fix a potential panic in the tsh status command.

When unmarshaling the profile YAML, it's possible for the unmarshal
to complete without error while not populating the profile struct,
which leads to a panic.

Fix the nil pointer dereference by unmarshaling into a Profile
instead of a *Profile, and further improve the error message
when this happens.

Fixes #38188
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from Joerger February 15, 2024 22:00
@zmb3 zmb3 added this pull request to the merge queue Feb 15, 2024
Merged via the queue into branch/v14 with commit ff715b5 Feb 15, 2024
@zmb3 zmb3 deleted the bot/backport-38197-branch/v14 branch February 15, 2024 23:43
@fheinecke fheinecke mentioned this pull request Feb 16, 2024
This was referenced Aug 6, 2024
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