Skip to content

Reference

Apache CouchDB

Connect Apache CouchDB to Alter Vault for secure API access

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

PropertyValue
Provider IDcouchdb
CategoryDatabase
Credential TypeBase64 Credentials

Create a CouchDB user

Follow the CouchDB security guide to create a user with access to the databases the integration needs.

Encode the credentials

Base64-encode the credentials: echo -n 'username:password' | base64.

Paste the encoded string

Paste the encoded string into the credential field.

Open the Developer Portal

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

Add Apache CouchDB

Go to Managed Secrets > Add Provider > Apache CouchDB.

Enter credentials

Paste your Base64 Credentials 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-COUCHDB-HOST/mydb/_find",
grant_id="YOUR_GRANT_ID",
json={"selector": {"type": "user"}, "limit": 5},
)
  • CouchDB uses HTTP Basic authentication — the stored value is injected as Authorization: Basic <encoded>.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
server/inforeadGET/
server/upreadGET/_up
server/all_dbsreadGET/_all_dbs
server/active_tasksreadGET/_active_tasks
server/replicateadmin, writePOST/_replicate
session/createadminPOST/_session
session/getreadGET/_session
db/getreadGET/{db}
db/headreadHEAD/{db}
db/createwritePUT/{db}
db/deletedeleteDELETE/{db}
db/create_docwritePOST/{db}
db/compactadminPOST/{db}/_compact
db/all_docsreadGET/{db}/_all_docs
db/all_docs_queriesreadPOST/{db}/_all_docs
db/bulk_docsdelete, writePOST/{db}/_bulk_docs
db/bulk_getreadPOST/{db}/_bulk_get
db/findreadPOST/{db}/_find
db/changesreadGET/{db}/_changes
db/index/createwritePOST/{db}/_index
db/index/listreadGET/{db}/_index
db/security/getreadGET/{db}/_security
db/security/putadminPUT/{db}/_security
doc/getreadGET/{db}/{docid}
doc/putwritePUT/{db}/{docid}
doc/deletedeleteDELETE/{db}/{docid}
view/queryreadGET/{db}/_design/{ddoc}/_view/{view}

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.