# I Need My CI/CD Pipeline to Access Cosmos DB Without Using a Secret

DevFeed: [I Need My CI/CD Pipeline to Access Cosmos DB Without Using a Secret](<https://devfeed.tech/articles/i-need-my-ci-cd-pipeline-to-access-cosmos-db-without-using-a-secret-50044.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/cosmosdb/i-need-my-ci-cd-pipeline-to-access-cosmos-db-without-using-a-secret/>)

Author: Iria Osara, Sudhanshu Khera

Published: 2026-08-26T16:47:16Z

Content type: tutorial

Language: en

Sources: [Azure Cosmos DB Blog](<https://devfeed.tech/sources/azure-cosmos-db-blog.md>)

Topics: [CI/CD](<https://devfeed.tech/topics/cicd.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Entra ID](<https://devfeed.tech/topics/entra-id.md>), [Security](<https://devfeed.tech/topics/security.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [authorization](<https://devfeed.tech/tags/authorization.md>), [azure-cosmos-db](<https://devfeed.tech/tags/azure-cosmos-db.md>), [azure-cosmos-db-for-nosql](<https://devfeed.tech/tags/azure-cosmos-db-for-nosql.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [entra-id](<https://devfeed.tech/tags/entra-id.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

A tutorial on allowing CI/CD pipelines to access Azure Cosmos DB without stored secrets. It explains workload identity federation, short-lived OIDC tokens, Entra ID, and the separate control-plane and data-plane permissions required for GitHub Actions or Azure DevOps.

## Source excerpt

In the last post we walked through why RBAC broke your app and how to fix it. Your app is now running on a managed identity, keys are off, and everything is green. Then your build pipeline runs, and it needs to seed test data. Suddenly you're staring at a secret in your CI settings [...] The post I Need My CI/CD Pipeline to Access Cosmos DB Without Using a Secret appeared first on Azure Cosmos DB Blog.