Authorization and secrets

Database RLS enforces access and external API secrets remain server-side.

Raw Markdown

Authorization boundary

Postgres RLS policies enforce access to maps, sources, channels, and related records. Client code may hide or disable actions for usability, but it must not be the only authorization check.

Required verification

Every new or changed RLS policy requires database tests covering the relevant owner, editor, viewer, anonymous, administrator, and service-role boundaries.

Secrets

External API secrets are available only to server-side workers and Edge Functions. They must not enter browser configuration, generated artifacts, logs, map recipes, or this knowledge bundle.