Skip to content

Managed secret providers

Apache Druid

Connect Apache Druid to Alter Vault for secure API access

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

PropertyValue
Provider IDdruid
CategoryDatabase
Credential TypeAPI Key

Log in to Imply Polaris

Log in to Imply Polaris (hosted Apache Druid).

Create an API key

Go to Administration > API Keys and create a key.

Copy the key

Copy the key — Polaris keys are used directly after Basic in the Authorization header.

Open the Developer Portal

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

Add Apache Druid

Go to Managed Secrets > Add Provider > Apache Druid.

Enter credentials

Paste your API Key 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-ORG.YOUR-REGION.YOUR-CLOUD.api.imply.io/v1/projects/PROJECT_ID/query/sql",
grant_id="YOUR_GRANT_ID",
json={"query": "SELECT __time, page, user FROM wikipedia LIMIT 5"},
)
  • Imply Polaris API keys are pre-encoded: the header is Authorization: Basic <api-key> with the key verbatim.
  • Self-managed Druid clusters with basic auth enabled use base64(username:password) instead.