Skip to main content

Azure Cosmos DB Credentials

Description​

General​

Details for Azure Cosmos DB​

  • Family: token

  • Category: data_storage

  • Company: Microsoft

  • High recall: False

  • Validity check available: True

  • Analyzer available: True

  • Revoker available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: False

  • Occurrences found for one million commits: 0.58

  • Prefixed: False

Secret Analyzer​

Analysis Method​

  • Provider allows scopes enumeration: False
  • Total network call count: 2
  • Total call count may vary: False

HTTP Calls​

Requests are designed to capture metadata and not to function effectively.

  • GET: /dbs
  • POST: /dbs

Other Calls​

Non-HTTP queries or HTTP calls made through a third-party app (e.g., Python package). No other calls for this analyzer.

Revoker​

Auth Credentials​

Valid credentials needed to authenticate the request.

  • tenant_id: Directory (tenant) ID of the Microsoft Entra tenant of the service principal

  • client_id: Application (client) ID of a service principal holding the DocumentDB Account Contributor role on the Cosmos DB account

  • client_secret: Client secret of the service principal

  • cosmos_db_account_resource_id: Resource ID of the Cosmos DB account, as shown in the Azure portal under Properties: /subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account_name}

HTTP Calls​

List of calls performed by the revoker.

  • POST: /subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account_name}/listKeys
  • POST: /subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account_name}/regenerateKey
  • POST: /{tenant_id}/oauth2/v2.0/token

Revocation Mode​

Revocation is asynchronous.