Managed secret providers
Sentry (API Key)
Connect Sentry to Alter Vault using an auth token for secure API access
Overview
Section titled “Overview”Use Sentry credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | sentry |
| Category | Monitoring & Observability |
| Credential Type | Bearer Token |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to Sentry
Log in to Sentry at sentry.io.
Go to Settings → Account → API → Auth Tokens
Go to Settings → Account → API → Auth Tokens at sentry.io/settings/account/api/auth-tokens/.
Create a new token
Click ‘Create New Token’ and configure scopes.
Copy your auth token
Copy the generated auth token (personal tokens start with sntryu_, organization tokens with sntrys_).
Enter hostname if self-hosted
If using a self-hosted instance, enter the hostname in the Sentry Hostname field.
Step 2: Add to Alter Vault
Section titled “Step 2: Add to Alter Vault”Open the Developer Portal
Go to portal.alterauth.com and navigate to the application.
Add Sentry
Go to Managed Secrets > Add Provider > Sentry.
Enter credentials
Paste your Auth Token into the credential field. If using a self-hosted instance, also enter your Sentry hostname in the Sentry Hostname field.
Save
Click Save. You’ll receive a grant_id to use with the SDK.
Using in Code
Section titled “Using in Code”response = await alter_app.request( HttpMethod.GET, "https://YOUR_SENTRY_HOST/api/0/projects/", grant_id="YOUR_GRANT_ID", # Use sentry.io for cloud or your self-hosted hostname)