Skip to main content

Command Palette

Search for a command to run...

A background job still needs a subject

Updated
1 min readView as Markdown
A
Practical lessons on auth, authorization, and access control.

Cron and queue workers often skip authorization because "there is no user." That creates a god-mode path. Give the job a service identity with the narrowest permissions it needs, and still check those permissions on every write so a bug in the worker cannot touch every tenant.