π Azure Cosmos DB Account Private Endpoints are not used π’
- Contextual name: π Private Endpoints are not used π’
- ID:
/ce/ca/azure/cosmos-db/private-endpoints-use
- Located in: π Azure Cosmos DB
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
BEST_PRACTICE
- Policy Category:
SECURITY
Similar Policiesβ
- Internal
dec-x-b4d3d9dc
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-b4d3d9dc | 2 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Private endpoints limit network traffic to approved sources.
Rationaleβ
For sensitive data, private endpoints allow granular control of which services can communicate with Cosmos DB and ensure that this network traffic is private. You set this up on a case by case basis for each service you wish to be connected.
Impactβ
Only whitelisted services will have access to communicate with the Cosmos DB.
Auditβ
From Azure Portalβ
- Open the portal menu.
- Select the Azure Cosmos DB blade.
- Select the Azure Cosmos DB account.
- Select
Networking
.- Ensure
Public network access
is set toSelected networks
.- Ensure the listed networks are set appropriately.
- Select
Private access
.- Ensure a private endpoint exists and
Connection state is Approved
.From Azure Policyβ
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the associated Policy definition in Azure.
- Policy ID: 58440f8a-10c5-4151-bdce-dfbaad4a20b7 - Name:
CosmosDB accounts should use private link
... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Open the portal menu.
- Select the Azure Cosmos DB blade.
- Select the Azure Cosmos DB account.
- Select
Networking
.- Select
Private access
.- Click
+ Private Endpoint
.- Provide a Name.
- Click
Next
.- From the Resource type drop down, select
Microsoft.AzureCosmosDB/databaseAccounts
.- From the Resource drop down, select the Cosmos DB account.
- Click
Next
.- Provide appropriate Virtual Network details.
- Click
Next
.- Provide appropriate DNS details.
- Click
Next
.- Optionally provide Tags.
- Click
Next
:Review + create
.- Click
Create
.