Managed secret providers
Pinecone
Connect Pinecone to Alter Vault for secure API access
Overview
Section titled “Overview”Use Pinecone credentials to make authenticated API calls through Alter Vault without exposing API keys in code.
| Property | Value |
|---|---|
| Provider ID | pinecone |
| Category | AI |
| Credential Type | API Key |
Step 1: Get Credentials
Section titled “Step 1: Get Credentials”Log in to the Pinecone Console
Log in to the Pinecone Console at app.pinecone.io.
Navigate to API Keys
Select a project and navigate to API Keys.
Create a key
Click Create API Key and name it.
Copy the key
Copy the key — it is only shown once.
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 Pinecone
Go to Managed Secrets > Add Provider > Pinecone.
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-INDEX-HOST.pinecone.io/query", grant_id="YOUR_GRANT_ID", json={"vector": [0.05, 0.61, 0.76, 0.74], "topK": 5, "includeMetadata": True},)- The key is injected via the
Api-Keyheader. - The same API key authorizes both the control plane (
api.pinecone.io) and the index data plane — copy the index’s host from the Pinecone Console and query it directly.