fix: Don't store empty values when Docker Secret resolution fails in all()

- Update all() first pass to skip storing empty values when secret resolution fails
- Ensures second pass can still resolve secrets from *_FILE variables
- Prevents empty values from blocking secret resolution in second pass
- Should fix issue where REDIS_PASSWORD was empty even though REDIS_PASSWORD_FILE existed
This commit is contained in:
2025-11-02 21:58:40 +01:00
parent c530fbf8f1
commit bd9df7e630

View File

@@ -192,6 +192,9 @@ final readonly class Environment
$resolved[$key] = $secretValue;
continue;
}
// If secret resolution failed, don't add empty value yet
// We'll check again in second pass with *_FILE pattern
continue;
}
// Include non-empty values
$resolved[$key] = $value;