You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great work on Filament v4 — I noticed the new ->strictAuthorization() feature that is a very welcome addition.
I'd like to propose enabling strictAuthorization() by default for new Filament projects by adding it to the panel stub (or we introduce a global approach by adding it to the AdminPanelProvider).
A few reasons:
No breaking change: This wouldn’t affect existing projects or upgrades, so it's safe as a default.
Closed by default: Defaulting to a closed state aligns with the principle of least privilege. Explicit permission declarations help avoid surprises.
Laravel’s policy generation is incomplete: For example, deleteAny isn’t generated by default: Github: Laravel Policy stub
Without strictAuthorization, this could lead to unintended access to bulk actions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Dennis, hi team,
Thanks for the great work on Filament v4 — I noticed the new ->strictAuthorization() feature that is a very welcome addition.
I'd like to propose enabling strictAuthorization() by default for new Filament projects by adding it to the panel stub (or we introduce a global approach by adding it to the AdminPanelProvider).
A few reasons:
Github: Laravel Policy stub
Without strictAuthorization, this could lead to unintended access to bulk actions.
Curious to hear your thoughts.
Best,
Janis
Beta Was this translation helpful? Give feedback.
All reactions