My app often generates HTML, reads it, and turns it into a PDF.
So, a common pattern in my Sidekiq workers is something like this:
url = "/model/id"
html = open(url, &:read)
Using Declarative Authorization, I know how to:
# make "/model/id' accessible to authorised users
# make "/model/id" inaccessible to everyone else
But how do I make it accessible to my Sidekiq workers?