custom_properties
custom_properties · Supabase RLS helper tables and functions for managing user properties and custom claims.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100974 | custom_properties | custom_properties | 0.0.3 | SEC | Unknown | SQL |
Usage
Sources:
custom_properties is a Supabase-oriented Trusted Language Extension that stores named properties for users and exposes helpers intended for row-level-security policies. The published dbdev package and available SQL are version 0.0.3; the current control file says 0.0.4, but no matching 0.0.4 install script is present at the reviewed commit.
Package workflow
Generate a migration, review it, choose the destination schema, and apply it through the normal migration process:
After installation, policy code can query the helpers (replace user_roles if a different schema was selected):
The SQL assumes Supabase objects such as auth.users, auth.uid(), authenticated, and service_role; it creates tables, RLS policies, grants, and SECURITY DEFINER functions. It also defines a disabled-by-default trigger that can rewrite auth.users.raw_app_meta_data. Audit the generated migration, function search paths, grants, and optional trigger before deployment. Do not assume the control-file version is installable until upstream supplies the corresponding SQL.