AddDataProtection().PersistKeysToFileSystem() used with pods causes race condition and two data-protection keys to be generated at the same time. #28475
Labels
affected-medium
This issue impacts approximately half of our customers
area-dataprotection
Includes: DataProtection
bug
This issue describes a behavior which is not expected - a bug.
Needs: Author Feedback
The author of this issue needs to respond in order for us to continue investigating this issue.
severity-minor
This label is used by an internal tool
Status: No Recent Activity
Milestone
Describe the bug
I use
to generate data-protection keys. This produces the issue on initial application startup and possibly the same may happen during rotation of data-protection key. What essentially happens is:
The same may probably happen when the existing data-protection key is near expiration time and 2 instances running on separate pods decide do generate the new data-protection key.
Is it possible to do something about it?
To Reproduce
Use
and deploy your ASP.NET Core app two few pods.
Exceptions (if any)
Further technical details
The text was updated successfully, but these errors were encountered: