security-hardening

Installation
SKILL.md

Security Hardening

When to use this skill

Load when users ask about access control, security, auditing, or user management.

RBAC (Role-Based Access Control)

  • Create roles: CREATE ROLE analyst
  • Grant permissions: GRANT SELECT ON db.* TO analyst
  • Assign to users: GRANT analyst TO user1
  • Hierarchical: roles can inherit from other roles
  • Check grants: SHOW GRANTS FOR user1

Row Policies

  • Restrict row access per user: CREATE ROW POLICY p ON db.table FOR SELECT USING tenant_id = currentUser()
  • Policies are AND-ed together
  • Use for multi-tenant data isolation
  • Check policies: system.row_policies

Quotas

Related skills
Installs
2
GitHub Stars
217
First Seen
Apr 19, 2026