Phase 1 PR4: cut Electron client onto unified auth-service - #18
Merged
Conversation
…ervice electron/main.js: LICENSE_SERVER repointed at auth-service (dev localhost:8001, prod webstudio.omnibioai.org) with /license/* paths (no /api prefix, unlike the old license_server.py). Strips access_token/refresh_token from the now-doubles-as-login /validate response before it's cached to license.json on disk -- that file is an offline-grace license cache, not a credential store. docker/nginx-router.conf: adds a /api/license/ strip-and-forward alias so already-installed pre-cutover builds keep working once license.omnibioai.org's DNS/routing points here, until they auto-update. Decommissioning license_server.py itself, the DNS cutover, and secret rotation are separate, deliberately-gated deployment steps -- not part of this commit. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
electron/main.js:LICENSE_SERVERrepointed at the unifiedomnibioai-authservice (devhttp://localhost:8001, prodhttps://webstudio.omnibioai.org-- the existing router domain that already proxies/license/to auth-service). Fetch paths changed from/api/license/*to/license/*(auth-service's router has no/apiprefix)./license/validate's response now carriesaccess_token/refresh_tokenJWTs (it doubles as an auth-service login on the unified endpoint).license.jsonon disk is an offline-grace license cache, not a credential store, so those fields are now stripped beforesaveLicense()persists it.docker/nginx-router.conf: addedlocation ^~ /api/license/(strip/apiand forward, same rewrite pattern as the existing/_svc/authblock) so already-installed pre-cutover Electron builds -- which hardcode/api/license/*and can't be updated without a new release -- keep working oncelicense.omnibioai.org's DNS/routing points at this router. Meant to be dropped once the soak period confirms no more/api/license/*traffic.Companion PR
omnibioai-auth#7 adds the server-side half: optionalemail+machine_idon/license/validate, the new/license/pull-tokenendpoint, and the legacy-license import script.Scope
This is app-code only. Deliberately NOT included, since this is the one step in the decommission with an external DNS/routing change and no clean rollback:
backend/license_server.py/backend/Dockerfile.licenselicense-serverservice block fromdocker-compose.ymlLICENSE_SECRET/ADMIN_KEYlicense.omnibioai.orgDNS/routing cutover and soak-period monitoringTests
node --check electron/main.jspasses. The one test from the original plan that can't be automated in CI -- a real old packaged Electron build hitting the new endpoint at the production hostname before DNS cutover -- has not been run; it's a manual/scripted step for the actual cutover, not this PR.🤖 Generated with Claude Code