-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
dotnet/AspNetCore.Docs
#26021Labels
DocsThis issue tracks updating documentationThis issue tracks updating documentationarea-dataprotectionIncludes: DataProtectionIncludes: DataProtectionbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.This issue / pr will introduce a breaking change, when resolved / merged.
Milestone
Description
I have a working app in ASP.NET Core 6 RC2. It stores data protection keys in Azure Blob Storage, and protects them with Key Vault:
builder.Services.AddDataProtection()
.PersistKeysToAzureBlobStorage(new Uri(config["DataProtectionBlobUri"]))
.ProtectKeysWithAzureKeyVault(
new Uri(config["DataProtectionKey"]),
new ClientSecretCredential(config["MicrosoftTenantId"], config["MicrosoftClientId"], config["MicrosoftClientSecret"])
);
In the Dockerfile, if I change these lines:
FROM mcr.microsoft.com/dotnet/aspnet:6.0.0-rc.2 AS base
...
FROM mcr.microsoft.com/dotnet/sdk:6.0.100-rc.2 AS build
to
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
...
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
Then the app still runs, but all existing cookies and encrypted strings are rejected. Reverting to RC2 makes everything work again.
An example error message is, when trying to decrypt a string: The payload was invalid. For more information go to http://aka.ms/dataprotectionwarning
The package versions are:
- Azure.Extensions.AspNetCore.DataProtection.Blobs v1.2.1
- Azure.Extensions.AspNetCore.DataProtection.Keys v1.1.0
- Azure.Storage.Blobs v12.10.0
Metadata
Metadata
Assignees
Labels
DocsThis issue tracks updating documentationThis issue tracks updating documentationarea-dataprotectionIncludes: DataProtectionIncludes: DataProtectionbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.This issue / pr will introduce a breaking change, when resolved / merged.