Repository navigation
fix: Subscription registration fails silently when CREDENTIAL_ENCRYPTION_KEY is not set (#148) - #168
Merged
vybe merged 2 commits intoMar 25, 2026
Conversation
…ION_KEY is not set (Abilityai#148) Fresh deployments had no encryption key, causing subscription registration to fail with an unhelpful 500 error. Now: start.sh auto-generates the key, backend returns 503 with clear instructions if missing, and frontend shows a warning banner with setup steps. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…bilityai#148 Add encryption-status endpoint and early validation documentation to subscription-management.md. Add entry to feature-flows.md index. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
AndriiPasternak31
force-pushed
the
feature/148-silent-subscription-fail
branch
from
March 25, 2026 15:16
951f0d4 to
2a95a20
Compare
vybe
pushed a commit
that referenced
this pull request
Jul 21, 2026
#1716) The enterprise submodule pointer on dev (and main) was 7 commits stale, so five merged enterprise commits were stranded — never reachable from a mounted enterprise install: - c2e9059 activate the ephemeral_agents module (+ serialize first-boot DDL, #147/#148) — WITHOUT this the module is never register_module()'d, so ghost (ephemeral) agents 403 on every install. This is the headline fix. - 7f40361 retention: mirror OSS defaults so the panel reports the window in force (#168) — the enterprise companion to P0 #1638. - ce68594 retention: manage operator_queue + agent_reports windows (#145). - a85154e / 78fe782 / 9f43772 — client-portal briefing + STT key + test repair. Fast-forward only (f5d69be6 is a linear ancestor of 7f40361), so this is a pure pointer move — no enterprise code review re-opens here; those commits were already reviewed and merged in trinity-enterprise. Inert for OSS-only builds (the submodule is `update = none`; CI never inits it — the "backend boots without enterprise submodule" job is unaffected). main picks this up via the dev → main release cut. Related to ent#185
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CREDENTIAL_ENCRYPTION_KEYinstart.shso new deployments work out of the boxGET /api/subscriptions/encryption-statusendpoint; return HTTP 503 with actionable instructions instead of generic 500Changes
scripts/deploy/start.sh— auto-generate key if empty in.envsrc/backend/routers/subscriptions.py— new endpoint + early validationsrc/frontend/src/views/Settings.vue— encryption status check, warning banner, disabled buttondocs/memory/changelog.md— changelog entryTest Plan
CREDENTIAL_ENCRYPTION_KEYfrom.env, run./scripts/deploy/start.sh— key auto-generatedGET /api/subscriptions/encryption-statusreturns{"configured": true/false}Closes #148
Generated with Claude Code