Error Storing keys in a directory & No XML encryptor configured
- Dominant language
- C#
- Stars
- 5.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting error
[14:44:46 WRN] 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. For more information go to https://aka.ms/aspnet/dataprotectionwarning {EventId={Id=60, Name="UsingEphemeralFileSystemLocationInContainer"}, SourceContext="Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository", ThreadId=1}
[14:44:46 WRN] No XML encryptor configured. Key {67af71a5-2d80-4417-a2c0-29b2a34eb323} may be persisted to storage in unencrypted form. {EventId={Id=35, Name="NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm"}, SourceContext="Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager", ThreadId=1}
Hostname | ip-172-31-23-41
OS Information | linux x86_64 Ubuntu 22.04.4 LTS
Kernel Version | 6.5.0-1014-aws
Total CPU | 1
Total memory | 995.4 MB
Version | 24.0.5 (API: 1.43)
Root directory | /var/lib/docker
Storage Driver | overlay2
Logging Driver | json-file
Volume Plugins | local
Network Plugins | bridge, host, ipvlan, macvlan, null, overlay
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two ASP.NET Data Protection warnings in the reported Docker environment and inspect the application's existing container and key-storage configuration. Determine the intended persistence and encryption setup; done means the deployment no longer loses protected data with the container or stores keys unencrypted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, docker
- Domain
- infrastructure, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100