PersistKeysToAzureBlobStorage: 'Unable to retrieve the decryption key.' #32592
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Extensions
ASP.NET Core extensions
needs-author-feedback
Workflow: More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Uh oh!
There was an error while loading. Please reload this page.
Azure.Extensions.AspNetCore.DataProtection.Blobs 1.2.1
We're using the ASP.NET Core Data Protection feature in a production environment with multiple instances and deployment slots.
Last week, after a deployment and a key rotation (default every 90 days) the Data Protection feature was no longer able to decrypt data from our database. It kept throwing CryptographicException: 'Unable to retrieve the decryption key.' and we lost fital information.
Our code setup looks like this:
During deployment (application startup) we saw ClientOtherError in the blob storage montoring.
The problem started after this deployment and keys file on the blob storage now contains weird entries.
Especially the creation, activation and expiration dates are strange. Below the last 3 entries. (total file size = 67kb)
Our demand on the Data Protection feature is high and I suspect that the AzureBlobXmlRepository can't handle rotation very well in an environment with many concurrent requests.
The text was updated successfully, but these errors were encountered: