access: Authorize takes a context #1925
Notifications
Due Date
No due date set.
Blocks
#1920 Effective Go: critical paths
sam/archie
Reference: sam/archie#1925
Reference in new issue
Block a user
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.
Done in
afaea346: Authorize and AuthorizeDelivery take ctx; Live no longer stores a context; NewPending lost its unused ctx. task check passed.