Skip to content

Commit f2bb064

Browse files
authored
Merge pull request #217729 from seesharprun/cosmos-update-resource-token-ttl
Cosmos DB | Fix resource token lifetime
2 parents 25301d0 + 9097139 commit f2bb064

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/cosmos-db/secure-access-to-data.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,31 +41,31 @@ The process of key rotation and regeneration is simple. First, make sure that **
4141

4242
1. Select **Keys** from the left menu, then select **Regenerate Secondary Key** from the ellipsis on the right of your secondary key.
4343

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":::
4545

4646
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.
4747

4848
1. Replace your primary key with the secondary key in your application.
4949

5050
1. Go back to the Azure portal and trigger the regeneration of the primary key.
5151

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":::
5353

5454
# [If your application is currently using the secondary key](#tab/using-secondary-key)
5555

5656
1. Navigate to your Azure Cosmos DB account on the Azure portal.
5757

5858
1. Select **Keys** from the left menu, then select **Regenerate Primary Key** from the ellipsis on the right of your primary key.
5959

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":::
6161

6262
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.
6363

6464
1. Replace your secondary key with the primary key in your application.
6565

6666
1. Go back to the Azure portal and trigger the regeneration of the secondary key.
6767

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":::
6969

7070
---
7171

@@ -100,7 +100,7 @@ Azure Cosmos DB RBAC is the ideal access control method in situations where:
100100

101101
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.
102102

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).
104104

105105
## <a id="resource-tokens"></a> Resource tokens
106106

@@ -110,7 +110,7 @@ Resource tokens provide access to the application resources within a database. R
110110
- Are created when a [user](#users) is granted [permissions](#permissions) to a specific resource.
111111
- Are recreated when a permission resource is acted upon on by POST, GET, or PUT call.
112112
- 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.
114114
- Provide a safe alternative to giving out the primary key.
115115
- Enable clients to read, write, and delete resources in the Azure Cosmos DB account according to the permissions they've been granted.
116116

@@ -232,4 +232,4 @@ As a database service, Azure Cosmos DB enables you to search, select, modify and
232232
- To learn more about Azure Cosmos DB database security, see [Azure Cosmos DB Database security](database-security.md).
233233
- 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).
234234
- 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

Comments
 (0)