postgres-readonly-queries
Pass
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill follows security best practices for database access by enforcing read-only sessions at the driver level (
conn.set_session(readonly=True)), which is the most effective way to prevent write operations. - [SAFE]: It includes client-side validation to ensure queries start with safe keywords like SELECT, SHOW, or EXPLAIN, and it blocks multi-statement queries to prevent SQL injection patterns like
SELECT 1; DROP TABLE. - [SAFE]: The skill handles credentials responsibly by suggesting a separate configuration file with restricted file permissions (
chmod 600) and sanitizing error messages to prevent leaking passwords in output. - [SAFE]: Operational safety is maintained through mandatory execution timeouts (30 seconds) and display limits (10,000 rows) to prevent resource exhaustion.
Audit Metadata