feat: add private attachments and safe reconciliation experiment

This commit is contained in:
2026-11-06 17:55:51 +03:00
parent ec540a1a72
commit 59b2f031bc
35 changed files with 3341 additions and 20 deletions
+10
View File
@@ -0,0 +1,10 @@
import os
from pathlib import Path
def secret(name: str) -> str:
filename = os.environ.get(name + "_FILE")
value = Path(filename).read_text().strip() if filename else os.environ.get(name, "")
if not value:
raise RuntimeError("Отсутствует настройка " + name)
return value