Managed secret providers
Cloudflare
Connect Cloudflare to Alter Vault for secure API access
Overview
Section titled “Overview”Use Cloudflare credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | cloudflare |
| Category | Developer Tools |
| Credential Type | Bearer Token |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to the Cloudflare Dashboard
Log in to the Cloudflare Dashboard at dash.cloudflare.com.
Go to My Profile → API Tokens
Go to My Profile → API Tokens at dash.cloudflare.com/profile/api-tokens.
Create a token
Click ‘Create Token’ and select a template or create custom.
Configure permissions
Configure permissions and click ‘Create Token’.
Copy the generated API token
Copy the generated API token (it won’t be shown again).
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 Cloudflare
Go to Managed Secrets > Add Provider > Cloudflare.
Enter credentials
Paste your API Token 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.GET, "https://api.cloudflare.com/client/v4/zones", grant_id="YOUR_GRANT_ID",)