Skip to content
Local time9:41am12 March, 2025

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

CategorySecurity
Also filed underTest quality
Checks in this category119
ISO/IEC 25010Security
Breaks caught9