SQL Permission Templates
Minimal-privilege SQL scripts for granting AnomalyArmor read-only access to your databases. Each script includes:- Step-by-step setup instructions
- Customizable placeholders
- Verification queries
- Cleanup commands
PostgreSQL
For PostgreSQL, RDS, Aurora, Supabase
Snowflake
Role and user setup for Snowflake
Databricks
Unity Catalog grants
How to Use
- Open the script page for your database
- Copy the SQL code
- Replace the placeholder values (marked with
your_prefix) - Run as a database admin or owner
- Verify using the test queries provided
Security Best Practices
Use dedicated service accounts
Use dedicated service accounts
Create a dedicated user for AnomalyArmor rather than using personal accounts. This ensures:
- Monitoring continues when employees leave
- Clear audit trail of AnomalyArmor activity
- Easy permission revocation if needed
Grant only what's needed
Grant only what's needed
AnomalyArmor only needs SELECT access for:
information_schemaor equivalent for discovery- Tables you want to monitor for freshness
- All scripts default to read-only access
Use key-pair authentication when available
Use key-pair authentication when available
For Snowflake and other databases that support it:
- More secure than passwords
- No password rotation required
- Supports hardware security modules
Need Help?
PostgreSQL Guide
Detailed PostgreSQL setup instructions
Snowflake Guide
Detailed Snowflake setup instructions
Databricks Guide
Detailed Databricks setup instructions
Contact Support
Get help from our team
