Before you start
You’ll need:- A Snowflake account (trial or production)
- A configured warehouse
- Snowflake credentials with appropriate permissions
- A database and schema to query
- Network access from your OpenSRE environment to Snowflake
Connecting to Snowflake
The guided way
For a step-by-step walkthrough:The direct way: Environment variables
Or add these to your.env:
OpenSRE requires
SNOWFLAKE_ACCOUNT_IDENTIFIER and SNOWFLAKE_TOKEN to activate the integration. Generate a programmatic access token in Snowflake under your user’s security settings.Option 3: Persistent store
Finding your account identifier
Snowflake account identifiers can vary depending on your region and organization setup.- Open the Snowflake web interface
- Open your account or profile settings
- Locate your account identifier
- Use the full value for
SNOWFLAKE_ACCOUNT_IDENTIFIER
Use the full account identifier shown by Snowflake. Do not remove region or organization information unless your Snowflake deployment documentation explicitly instructs you to do so.
Best practice: Create a dedicated role for OpenSRE
Instead of using an administrative account, create a role with only the permissions OpenSRE requires.Investigation tools
When OpenSRE investigates a Snowflake-related alert, this tool is available:Query history
Runs bounded, read-only queries against Snowflake query history to surface recent failed queries, long-running statements, and warehouse usage patterns during an incident.Security recommendations
- Use a dedicated Snowflake user for OpenSRE
- Grant only the permissions required for investigations
- Rotate credentials regularly
- Monitor access through Snowflake audit logs