Admin-Plattform für die Tenants von Onyscribe: Editor mit Live-Vorschau (echter Core in Sandbox), Versionen, KI-Agent (Cortecs), OIDC-Abgleich über die Login-Developer-API, Deploy-Engine (Mittwald, gesperrt ohne DEPLOY_LIVE, Freigabe pro Tenant), Core-Vertrag (Schema/Manifest), Core-Releases mit Kompatibilitätsprüfung, Canary-Rollout und Rollback, Zustandsabgleich. Runbook: docs/RUNBOOK_PARALLELTEST.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
292 B
Python
16 lines
292 B
Python
from __future__ import annotations
|
|
|
|
from cryptography.fernet import Fernet
|
|
|
|
from app.settings import SECRET_KEY
|
|
|
|
_f = Fernet(SECRET_KEY.encode())
|
|
|
|
|
|
def encrypt(v: str) -> str:
|
|
return _f.encrypt(v.encode()).decode()
|
|
|
|
|
|
def decrypt(v: str) -> str:
|
|
return _f.decrypt(v.encode()).decode()
|