fix: address CodeRabbit review comments for encryption key persistence

- Always mirror encryption key to both .env and WRITEPATH (Docker safety)
- Guard array key access with isset() before reading in Encryption.php
- Fix encrypt_value() to not treat string '0' as empty
- Improve error logging for failed encryption attempts
This commit is contained in:
Ollama
2026-05-22 14:57:37 +02:00
parent 71c164ad18
commit bf5af2f2dc
3 changed files with 8 additions and 11 deletions

View File

@@ -147,6 +147,7 @@ class Encryption extends BaseConfig
$data = json_decode($content, true);
if (
!is_array($data)
|| !isset($data['key'])
|| !is_string($data['key'])
|| strlen($data['key']) < 64
) {