I recently upgraded my OctoberCMS instance from 459 to 464 and had no issues on my local machine. However, today I deployed to production and I'm getting a lot of errors like this one (basically on every GET request):
2020/01/18 21:00:51 [error] 19992#19992: *130 FastCGI sent in stderr: "
PHP message: PHP Notice: unserialize(): Error at offset 0 of 100 bytes in /var/www/example.com/public/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php on line 149
PHP message: PHP Notice: unserialize(): Error at offset 0 of 40 bytes in /var/www/example.com/public/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php on line 149
PHP message: PHP Notice: unserialize(): Error at offset 0 of 66 bytes in /var/www/example.com/public/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php on line 149" while reading response header from upstream, client: 0.0.0.0, server: example.com, request: "GET /backend HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock:", host: "example.com", referrer: "https://example.com/backend/backend/auth/signin"
Additionally I'm no longer able to login into the backend.
After some research I found there was a change with cookie serialization recently: https://github.com/octobercms/library/commit/09e859a13ee5663ee6cb6f0c02a4a97e09deefa7#diff-056b9862465e028cb597e2d0baf41b70
After adding my cookies to the new "unencryptedCookies" config key everything started working again, but this doesn't look like a permanent solution.
Is there a way to avoid this? I need the cookies to be encrypted.
Any kind of help would be much appreciated!