Ask HN: How do you do authorization for background jobs?
https://news.ycombinator.com/item?id=30255337When a flow is directly triggered by a users action, we have the Cookie/Token of the user to do AuthN/AuthZ.
However when we need to run background jobs or some asynchronous workflow on behalf of the user, we do not have the Cookie/Token of the user. We do have the user id but not the session. How do you solve for AuthZ specifically for your background jobs and dependent microservices?