access: Authorize takes a context #1925

Closed
opened 2026-11-12 16:35:17 +00:00 by sam · 1 comment
Owner

Authorizer.Authorize has no context.Context, so access.Live stores the process context in a struct and request deadlines never reach a policy reload. Add ctx as the first parameter at both implementations and all nine call sites; Live derives its version deadline from the caller.

Done when Live has no stored context and no containedctx nolint.

Authorizer.Authorize has no context.Context, so access.Live stores the process context in a struct and request deadlines never reach a policy reload. Add ctx as the first parameter at both implementations and all nine call sites; Live derives its version deadline from the caller. Done when Live has no stored context and no containedctx nolint.
sam added the chorelow labels 2026-11-12 16:35:17 +00:00
Author
Owner

Done in afaea346: Authorize and AuthorizeDelivery take ctx; Live no longer stores a context; NewPending lost its unused ctx. task check passed.

Done in afaea346: Authorize and AuthorizeDelivery take ctx; Live no longer stores a context; NewPending lost its unused ctx. task check passed.
sam closed this issue 2026-11-12 16:57:20 +00:00
sam added a new dependency 2026-11-13 02:50:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1925