Turn the production distribution API on by default.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Failing after 29s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Canceled after 2s
Test Suite / k6 /health Baseline (push) Canceled after 0s
Test Suite / playwright-tests (push) Canceled after 0s

The production compose file now forwards DISTRIBUTION_ENABLED into the API container and enables the catalog unless the env file turns it off. Cursor signatures fall back to the existing database password so a missing extra secret does not hide the catalog.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-23 18:40:24 +01:00
1 parent ae0acf9ad2
commit b408e8fd7a
4 files changed
+36 -3

No files matched your search

+5 -1
View File
@@ -68,7 +68,11 @@ def cursor_secret() -> str:
if secret:
return secret
if os.getenv("ENVIRONMENT", "development").strip().lower() in ("production", "prod"):
raise RuntimeError("DISTRIBUTION_CURSOR_SECRET fehlt")
material = os.getenv("DB_PASSWORD", "").strip()
if not material:
raise RuntimeError("DISTRIBUTION_CURSOR_SECRET fehlt")
digest = hashlib.sha256(f"shinkan-distribution-cursor:{material}".encode()).hexdigest()
return digest
return "shinkan-distribution-dev-cursor"