tpagectl: login OIDC discovery has no timeout #587
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#587
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?
discoverEndpointsininternal/tpagectl/auth/login.goperforms the OIDC discovery GET withhttp.DefaultClient, which has no timeout. Against a blackholed or unresponsive issuer,tpagectl loginwould hang indefinitely — the--timeoutflag only bounds theDeviceAccessTokenpolling, not discovery orDeviceAuth.Suggested fix: bound the discovery request (e.g. a client with a timeout, or reuse the
--timeoutdeadline on the context).Ref: PR #585
Fixed in #634: OIDC discovery uses a dedicated
http.Clientwith a 30s timeout instead of the unboundedhttp.DefaultClient.