This commit is contained in:
2026-01-31 21:32:51 -08:00
parent bc3dbf28e8
commit ed44d69ef1
4 changed files with 75 additions and 4 deletions

View File

@@ -800,6 +800,15 @@ def save_config_and_verify(config: Dict[str, Any], retries: int = 3, delay: floa
store_key = None
if prov_key == expected_key or store_key == expected_key:
try:
# Log a short, masked fingerprint to aid debugging without exposing the key itself
import hashlib
fp = hashlib.sha256(expected_key.encode("utf-8")).hexdigest()[:8]
log(f"Verified AllDebrid API key persisted (fingerprint={fp})")
except Exception:
# If hashing/logging fails, don't abort the save
pass
return saved
# Not yet persisted; log and retry