What it does
A SECURITY DEFINER function runs with the DEFINER's rights, not the caller's, the database's own escalation, and the only thing standing between a caller and those rights is the permission check inside the body.
How it helps you
Permission checks inside privileged functions get named in tests.
Tested against itself
9 deliberate breaks, all caught
We change this check on purpose and watch its test fail. Each dot is one of those changes.
Details
| Category | Security |
|---|---|
| Also filed under | Test quality |
| Checks in this category | 119 |
| ISO/IEC 25010 | Security |
| Breaks caught | 9 |