Skip to content

[v17] Prevent panicing if license expiry is not populated#49876

Merged
rosstimothy merged 1 commit intobranch/v17from
bot/backport-49844-branch/v17
Dec 6, 2024
Merged

[v17] Prevent panicing if license expiry is not populated#49876
rosstimothy merged 1 commit intobranch/v17from
bot/backport-49844-branch/v17

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #49844 to branch/v17

changelog: prevent a panic if the auth server does not provide a license expiry

Panic was caught by a customer running 16.4.9

http: panic serving [2a13:5947:111:20::1c86:2e30]:49995: runtime error: invalid memory address or nil pointer dereference
goroutine 597943 [running]:
net/http.(*conn).serve.func1()
    net/http/server.go:1903 +0xbe
panic({0x556eb28d1e60?, 0x556eb95ef2d0?})
    runtime/panic.go:770 +0x132
github.com/gravitational/teleport/lib/web.(*Handler).getUserContext(0xc002599408, {0xc002599408?, 0xc00bb18b40?}, 0xc00f4859e0, {0x1?, 0x1?, 0xc00bb18b40?}, 0xc00bb18b40, {0x556eb3eeb8f8, 0xc001af2f20})
    github.com/gravitational/teleport/lib/web/apiserver.go:1230 +0x6ef
github.com/gravitational/teleport/lib/web.(*Handler).bindDefaultEndpoints.(*Handler).WithClusterAuth.func50({0x556eb3ea4940, 0xc00d6158c0}, 0xc00f4859e0, {0xc00d615920, 0x1, 0x3})
@rosstimothy rosstimothy enabled auto-merge December 6, 2024 14:57
@rosstimothy rosstimothy added this pull request to the merge queue Dec 6, 2024
Merged via the queue into branch/v17 with commit d16d6de Dec 6, 2024
@rosstimothy rosstimothy deleted the bot/backport-49844-branch/v17 branch December 6, 2024 16:40
@fheinecke fheinecke mentioned this pull request Dec 11, 2024
@fheinecke fheinecke mentioned this pull request Mar 18, 2025
@fheinecke fheinecke mentioned this pull request Apr 9, 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