Managed secret providers
Upstash
Connect Upstash to Alter Vault for secure API access
Overview
Section titled “Overview”Use Upstash credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | upstash |
| Category | Database |
| Credential Type | REST Token |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to the Upstash Console
Log in to the Upstash Console.
Open the REST API section
Open the database and find the REST API section.
Copy the token
Copy the UPSTASH_REDIS_REST_TOKEN (or the read-only token for read-only integrations).
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 Upstash
Go to Managed Secrets > Add Provider > Upstash.
Enter credentials
Paste your REST Token into the credential 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-DATABASE.upstash.io/get/mykey", grant_id="YOUR_GRANT_ID",)- Each database has its own REST URL and token pair.