-
Notifications
You must be signed in to change notification settings - Fork 10.3k
An error occurred while reading the key ring #3370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You may not be using directly, but ASP.NET uses it internally for cookies and csrf values. Does it only happen in tests? Are the tests running parallel? What are the tests doing? How is the test setup configured? (you must have a pipeline somewhere to encounter this) If you're spinning up the asp.net pipeline you could just configure data protection to use the in memory provider. |
Yes, and only when running in docker
They are and disabling parallelism appears to resolve the issue
Basic CRUD operations.
Xunit & Microsoft.AspNetCore.Mvc.Testing I'll try in the memory provider and see if that allows us to run on multiple threads. It would be a shame to lose that perf. |
Well in memory would increase perf in testing as well, so bonus :D |
So I finally got a chance to look at this problem again. Am I correct in saying I just need to do an implementation of IXmlRepository Interface in order to create an in-memory store. Or is there a prebuilt provider. I don't see any on Here |
Sorry, I missed this. There's a prebuilt one for you, EphemeralXmlRepository, which you can get to via EphemeralDataProtectionProvider, and UseEphemeralDataProtectionProvider |
Uh oh!
There was an error while loading. Please reload this page.
We are running some integration tests in a docker container and it appears that we are encountering the following exception. Everything is pretty standard we don't even directly reference the data protector and it all works outside the container.
.NET core 2.1
Exception
Dockerfile
The text was updated successfully, but these errors were encountered: