auth: release JWKS refresh goroutine on shutdown #524
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#524
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cmd/thwap-pagesd/main.gobuilds the auth middleware but never callsauth.Middleware.Close(). keyfunc's background JWKS refresher goroutine is cancelled only via the context released byClose(), so it leaks for the lifetime of the process.Context: PR #521 (
cmd/thwap-pagesd/main.go,internal/auth/auth.go:58).Suggested fix: call
Close()during shutdown, e.g. alongside graceful shutdown work in #120.