Description
With the newest version 2.1.3 we are getting the wrong MachineName attached to our logs. At least it is not the machine name. (I have obfuscated the MachineName)
This is an entry written with 2.1.2
{"Timestamp":"2019-05-20T18:12:18.7714079+00:00","Level":"Warning","MessageTemplate":"No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.","Properties":{"KeyId":"2b3669f8-7c20-40da-b5cd-84214c9603f5","EventId":{"Id":35},"SourceContext":"Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager","MachineName":"company.product.environment.service","ThreadId":1},"Renderings":{"KeyId":[{"Format":"B","Rendering":"{2b3669f8-7c20-40da-b5cd-84214c9603f5}"}]}}
This is one written with 2.1.3
{"Timestamp":"2019-05-20T17:36:18.3793019+00:00","Level":"Warning","MessageTemplate":"No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.","Properties":{"KeyId":"17c4225e-a144-4059-b8e5-fc002265e678","EventId":{"Id":35},"SourceContext":"Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager","MachineName":"company","ThreadId":1},"Renderings":{"KeyId":[{"Format":"B","Rendering":"{17c4225e-a144-4059-b8e5-fc002265e678}"}]}}
We are using alpine-images (2.1.10) with non-root user if it is relevant. Opening a shell on the running container and executing ECHO %HOSTNAME prints out "company.product.environment.service". No matter if I use 2.1.2 or 2.1.3.
Some more info about the non-root user. The username is company
and it is part of group company