Product: PowerShell Universal
Version: 5.0.8
This is an existing setup. Running an Ubuntu 20.04 Docker container on a Linux host. The issue occurs when upgrading from Version 4.3.3. After starting the docker container, the browser takes me to the https://example.com/first-run and promts for a default administrator username and password setup, instead of https://example.com/home and login. After a while it changes to http 502. The logs from the Docker container show the errors: “system.Security.Cryptography.CryptographicException: The key {xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} was not found in the key ring” and “Error unprotecting the session cookie”. I can see the key in the “.aspnet/DataProtection-Keys/ folder”.
I moved the key to a tmp/backup folder and restarted the container. This should prompt the creation of a new key, but one is never created.
When running PowerShell Universal Version 4.3.3, a new key gets generated and everything works correctly.