Managed secret providers
Datadog
Connect Datadog to Alter Vault for secure API access
Overview
Section titled “Overview”Use Datadog credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | datadog |
| Category | Monitoring & Observability |
| Credential Type | API Key |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to Datadog
Log in to Datadog at app.datadoghq.com/account/login.
Go to Organization Settings → API Keys
Go to Organization Settings → API Keys.
Create an API key
Click ‘New Key’ to create an API key and copy it.
Get the Application Key
For the Application Key, go to Organization Settings → Application Keys and create a new key tied to a user account.
Enter your Datadog site
If the organization is on a non-US1 site (EU, US3, US5, AP1, AP2, gov), enter the matching site in the Datadog Site field (e.g. datadoghq.eu).
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 Datadog
Go to Managed Secrets > Add Provider > Datadog.
Enter credentials
Paste your API Key and Application Key into their respective fields.
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://api.YOUR_DATADOG_SITE/api/v1/events", # YOUR_DATADOG_SITE e.g. datadoghq.com (US1), datadoghq.eu (EU), us3.datadoghq.com, etc. grant_id="YOUR_GRANT_ID",)- The login URL redirects to your correct Datadog site. If your organization is on a non-US1 site (EU, US3, US5, AP1, AP2, gov), you can also log in directly at your site’s URL.