Skip to content

Managed secret providers

DataStax Astra DB

Connect DataStax Astra DB to Alter Vault for secure API access

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

PropertyValue
Provider IDastra
CategoryDatabase
Credential TypeApplication Token

Log in to the Astra Portal

Log in to the Astra Portal.

Generate a token

Open the database’s Overview tab and click Generate Token.

Copy the token

Copy the application token (starts with AstraCS:) — it is only shown once.

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add DataStax Astra DB

Go to Managed Secrets > Add Provider > DataStax Astra DB.

Enter credentials

Paste your Application Token into the credential field.

Save

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

response = await alter_app.request(
HttpMethod.POST,
"https://YOUR-DB-ID-REGION.apps.astra.datastax.com/api/json/v1/default_keyspace/my_collection",
grant_id="YOUR_GRANT_ID",
json={"find": {"filter": {}, "options": {"limit": 5}}},
)
  • The token is injected via the Token header at the database’s Data API endpoint.