Skip to content

Getting Started

Overview

This guide walks you through connecting a Snowflake account to Britive and granting your first just-in-time access session to a Snowflake role — with no standing role grants and full audit logging on every checkout.

What you’ll accomplish:

  • Create a Britive integration role and user in Snowflake
  • Onboard the Snowflake application in the Britive console
  • Create an access profile for a Snowflake role
  • Check out and verify JIT access end-to-end

Prerequisites

Before you begin, make sure you have:

  • A Britive tenant with administrator access
  • Snowflake ACCOUNTADMIN or SECURITYADMIN access to create roles and users
  • SnowSQL CLI or access to the Snowflake web console

Never hardcode credentials. Use environment variables, your secret manager, or the Britive Secrets Store.

How It Works

Britive uses a dedicated Snowflake service user with key-pair authentication to manage role grants. At checkout, Britive grants the target Snowflake role to the requesting user. At checkin (or on expiry), the role grant is revoked — no standing role assignments remain.

User → Britive Console → Snowflake SQL API → GRANT ROLE (timed) → REVOKE ROLE

Onboarding the Application

Connect your Snowflake account to your Britive tenant. This is a one-time setup performed by an administrator.

For detailed onboarding reference, see the Britive documentation and the britive/onboarding GitHub repository.

Using the Britive Console

Create the Britive role and user in Snowflake

In SnowSQL or the Snowflake web console, create a custom role BRITIVEROLE with the required privileges and a service user BRITIVEUSER with key-pair authentication assigned that role.

Generate a key pair

openssl genrsa -out britive_rsa_key.pem 2048
openssl rsa -in britive_rsa_key.pem -pubout -out britive_rsa_key.pub

Add the application in Britive

In the Britive console, navigate to ApplicationsAdd ApplicationSnowflake. Enter your Snowflake account identifier, the username (BRITIVEUSER), and upload the private key.

Verify the connection

The application status should show Connected. Britive will scan and import your Snowflake roles and databases.

Create Your First Access Profile

Using the Britive Console

Open the Snowflake application

Navigate to Applications → select your Snowflake application → ProfilesAdd Profile.

Configure the profile

FieldValue
NameA descriptive name (e.g., Analytics-DataViewer)
EnvironmentSelect your Snowflake account
ExpirationSet a max session duration (e.g., 4h0m0s)

Add permissions

Under Permissions, add the Snowflake roles to include in this profile.

Add a policy

Under Policies, assign members and configure conditions.

Save and activate

Click Save.

Verify

Check out the profile

Navigate to My Access → find your profile → click Check Out.

Confirm Snowflake access

Connect to Snowflake and verify the role is active:

SHOW GRANTS TO USER your_username;

Check in

Return to My Access → click Check In. Run the query again and confirm the role grant no longer appears.

Troubleshoot

SymptomLikely CauseFix
Application shows “Disconnected”Private key mismatch or BRITIVEUSER disabledVerify the key pair and that the user is active in Snowflake
Roles not visibleBRITIVEROLE lacks MANAGE GRANTS privilegeGrant MANAGE GRANTS to BRITIVEROLE
Checkout failsUser doesn’t exist in SnowflakeEnsure the Britive user email matches a Snowflake user login name

Next Steps

Last updated on