Skip to content
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

warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60] #8

Open
yiyungent opened this issue Aug 23, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@yiyungent
Copy link
Owner

 warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {3b749522-27b1-4284-ba06-c5a8b7e77016} may be persisted to storage in unencrypted form.

Docker 下运行,警告

image

@yiyungent yiyungent added the help wanted Extra attention is needed label Aug 23, 2021
@yiyungent
Copy link
Owner Author

@yiyungent
Copy link
Owner Author

yiyungent commented Aug 24, 2021

services.AddSession(); 
services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "DataProtection"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant