You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/secure-access-to-data.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,31 +41,31 @@ The process of key rotation and regeneration is simple. First, make sure that **
41
41
42
42
1. Select **Keys** from the left menu, then select **Regenerate Secondary Key** from the ellipsis on the right of your secondary key.
43
43
44
-
:::image type="content" source="./media/database-security/regenerate-secondary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the secondary key" border="true":::
44
+
:::image type="content" source="./media/database-security/regenerate-secondary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the secondary key." border="true":::
45
45
46
46
1. Validate that the new secondary key works consistently against your Azure Cosmos DB account. Key regeneration can take anywhere from one minute to multiple hours depending on the size of the Azure Cosmos DB account.
47
47
48
48
1. Replace your primary key with the secondary key in your application.
49
49
50
50
1. Go back to the Azure portal and trigger the regeneration of the primary key.
51
51
52
-
:::image type="content" source="./media/database-security/regenerate-primary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the primary key" border="true":::
52
+
:::image type="content" source="./media/database-security/regenerate-primary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the primary key." border="true":::
53
53
54
54
# [If your application is currently using the secondary key](#tab/using-secondary-key)
55
55
56
56
1. Navigate to your Azure Cosmos DB account on the Azure portal.
57
57
58
58
1. Select **Keys** from the left menu, then select **Regenerate Primary Key** from the ellipsis on the right of your primary key.
59
59
60
-
:::image type="content" source="./media/database-security/regenerate-primary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the primary key" border="true":::
60
+
:::image type="content" source="./media/database-security/regenerate-primary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the primary key." border="true":::
61
61
62
62
1. Validate that the new primary key works consistently against your Azure Cosmos DB account. Key regeneration can take anywhere from one minute to multiple hours depending on the size of the Azure Cosmos DB account.
63
63
64
64
1. Replace your secondary key with the primary key in your application.
65
65
66
66
1. Go back to the Azure portal and trigger the regeneration of the secondary key.
67
67
68
-
:::image type="content" source="./media/database-security/regenerate-secondary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the secondary key" border="true":::
68
+
:::image type="content" source="./media/database-security/regenerate-secondary-key.png" alt-text="Screenshot of the Azure portal showing how to regenerate the secondary key." border="true":::
69
69
70
70
---
71
71
@@ -100,7 +100,7 @@ Azure Cosmos DB RBAC is the ideal access control method in situations where:
100
100
101
101
See [Configure role-based access control for your Azure Cosmos DB account](how-to-setup-rbac.md) to learn more about Azure Cosmos DB RBAC.
102
102
103
-
For information and sample code to configure RBAC for the Azure Cosmso DB for MongoDB, see [Configure role-based access control for your Azure Cosmso DB for MongoDB](mongodb/how-to-setup-rbac.md).
103
+
For information and sample code to configure RBAC for the Azure Cosmos DB for MongoDB, see [Configure role-based access control for your Azure Cosmos DB for MongoDB](mongodb/how-to-setup-rbac.md).
104
104
105
105
## <aid="resource-tokens"></a> Resource tokens
106
106
@@ -110,7 +110,7 @@ Resource tokens provide access to the application resources within a database. R
110
110
- Are created when a [user](#users) is granted [permissions](#permissions) to a specific resource.
111
111
- Are recreated when a permission resource is acted upon on by POST, GET, or PUT call.
112
112
- Use a hash resource token specifically constructed for the user, resource, and permission.
113
-
- Are time bound with a customizable validity period. The default valid time span is one hour. Token lifetime, however, may be explicitly specified, up to a maximum of five hours.
113
+
- Are time bound with a customizable validity period. The default valid time span is one hour. Token lifetime, however, may be explicitly specified, up to a maximum of 24 hours.
114
114
- Provide a safe alternative to giving out the primary key.
115
115
- Enable clients to read, write, and delete resources in the Azure Cosmos DB account according to the permissions they've been granted.
116
116
@@ -232,4 +232,4 @@ As a database service, Azure Cosmos DB enables you to search, select, modify and
232
232
- To learn more about Azure Cosmos DB database security, see [Azure Cosmos DB Database security](database-security.md).
233
233
- To learn how to construct Azure Cosmos DB authorization tokens, see [Access Control on Azure Cosmos DB Resources](/rest/api/cosmos-db/access-control-on-cosmosdb-resources).
234
234
- For user management samples with users and permissions, see [.NET SDK v3 user management samples](https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/Usage/UserManagement/UserManagementProgram.cs)
235
-
- For information and sample code to configure RBAC for the Azure Cosmso DB for MongoDB, see [Configure role-based access control for your Azure Cosmso DB for MongoDB](mongodb/how-to-setup-rbac.md)
235
+
- For information and sample code to configure RBAC for the Azure Cosmos DB for MongoDB, see [Configure role-based access control for your Azure Cosmos DB for MongoDB](mongodb/how-to-setup-rbac.md)
0 commit comments