Managed secret providers
Apache Druid
Connect Apache Druid to Alter Vault for secure API access
Overview
Section titled “Overview”Use Apache Druid credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | druid |
| Category | Database |
| Credential Type | API Key |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”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.
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 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.
Using in Code
Section titled “Using in Code”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.