Skip to content

Integrations

Upstash

Connect Upstash to Alter Vault for secure API access

Use Upstash credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Template IDupstash
CategoryDatabase
Credential TypeREST Token

Log in to the Upstash Console

Log in to the Upstash Console.

Open the database

Open the database; its page shows the Endpoint and the Token / Readonly Token.

Copy the token

Copy the Token (or the Readonly Token for read-only integrations).

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 the REST Token into the credential field.

Enter the deployment endpoint

Paste the database’s Endpoint from the Upstash console into the REST URL field. Alter derives this credential’s allowed hosts from that exact host, so proxied calls can only ever reach the deployment. The allowlist cannot be widened or edited separately; rotate the credential with a new endpoint to retarget it.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.GET,
"https://YOUR-DATABASE.upstash.io/get/mykey",
grant_id="YOUR_GRANT_ID",
)
  • Each database has its own Endpoint and token pair.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
command/bodyadmin, delete, read, writePOST/
command/pathadmin, delete, read, writeGET/{command}
command/path_postadmin, delete, read, writePOST/{command}
pipelineadmin, delete, read, writePOST/pipeline
multi-execadmin, delete, read, writePOST/multi-exec
publishwritePOST/publish/{channel}/{message}
subscribereadPOST/subscribe/{channel}
monitorreadPOST/monitor

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.