Skip to content

Commit b7d73d2

Browse files
wcabuswadepickett
andauthored
Added warning when using Redis to store Data Protection keys (#36219)
* Add warning when using Redis to store Data Protection keys Added a warning about using Redis cache to store Data Protection keys, since Redis doesn't persist data across service restarts by default. Provided links for configuration guidance. * Fix link formatting for Azure Managed Redis documentation * Update ms.date for key storage providers documentation --------- Co-authored-by: Wade Pickett <wpickett@microsoft.com>
1 parent 6dd4f6b commit b7d73d2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aspnetcore/security/data-protection/implementation/key-storage-providers.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Key storage providers in ASP.NET Core
33
author: tdykstra
44
description: Learn about key storage providers in ASP.NET Core and how to configure key storage locations.
55
ms.author: tdykstra
6-
ms.date: 06/11/2025
6+
ms.date: 11/07/2025
77
uid: security/data-protection/implementation/key-storage-providers
88
---
99
<!-- ms.sfi.ropc: t -->
@@ -275,6 +275,12 @@ public void ConfigureServices(IServiceCollection services)
275275

276276
:::moniker-end
277277

278+
> [!WARNING]
279+
> When using Redis to persist data protection keys, be aware that Redis doesn't persist data by default when restarting. This can cause Data Protection to issue new keys, invalidating previously protected data.
280+
>
281+
> You can configure Redis to enable data persistence to mitigate this: Redis documentation has information on [how to configure persistence](https://redis.io/docs/latest/operate/oss_and_stack/management/persistence/).
282+
> If you're using [Azure Managed Redis](/azure/redis/how-to-persistence), ensure you have enabled data persistence. [Azure Cache for Redis](/azure/azure-cache-for-redis/cache-how-to-premium-persistence?tabs=premium) needs a premium or higher tier to enable data persistence.
283+
278284
For more information, see the following topics:
279285

280286
* [StackExchange.Redis ConnectionMultiplexer](https://github.com/StackExchange/StackExchange.Redis/blob/main/docs/Basics.md)

0 commit comments

Comments
 (0)