Awesome Reviewers

Reviewer · Security

Document authorization boundary limits

When a connector or integration relies on a restricted role, read-only transaction, or scoped credential as its security boundary, don't assume the restriction is airtight — identify and document every known way it can be bypassed or doesn't apply, and give concrete mitigation steps. For database roles, call out side-effect-capable functions (e.g.,...

Instruction

When a connector or integration relies on a restricted role, read-only transaction, or scoped credential as its security boundary, don’t assume the restriction is airtight — identify and document every known way it can be bypassed or doesn’t apply, and give concrete mitigation steps. For database roles, call out side-effect-capable functions (e.g., pg_sleep, advisory locks), privilege-escalation paths (superuser, membership in pg_signal_backend), and extensions that open separate connections (e.g., dblink_exec) that let a role circumvent a “read-only” transaction; recommend avoiding those roles/extensions unless explicitly required. For cloud IAM/STS-based auth, document regional or environment limitations (e.g., global STS endpoint tokens not working in opt-in regions, GovCloud, or China) so users don’t assume a credential type works everywhere, and prefer regional endpoints over global ones when available. Always pair the minimal-privilege recommendation (e.g., GRANT SELECT only, scoped IAM role) with an explicit list of what to exclude or avoid, for example:

CREATE ROLE kibana_reader LOGIN PASSWORD '<password>';
GRANT CONNECT ON DATABASE mydb TO kibana_reader;
GRANT USAGE ON SCHEMA public TO kibana_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO kibana_reader;
-- Avoid: superuser, pg_signal_backend membership, dblink extension

This ensures developers and operators understand the real scope of a security control rather than trusting its name (e.g., “read-only” or “role-based”) at face value.