Release v2.8.3 — migrate license to self-contained signed token#18
Merged
Conversation
Backend notchia.app a évolué vers le design où la clé EST un token signé
Ed25519 (nia_live_<b64url(payload)>.<b64url(signature)>), au lieu de
l'ancien design opaque + roundtrip serveur. L'app shippée v2.8.x rejetait
les nouvelles clés au format check (Crockford base32 only, < 64 chars).
Refactor LicenseManager.swift :
- Nouveau pubkey Ed25519 embarqué (2f0af78c... — celui qui matche la clé
privée backend notchia.app, vérifié contre la clé lifetime d'Axel)
- isPlausibleKey : accepte nia_live_<b64url>.<b64url> + garde nia_admin_
- activate() : parse token + Curve25519.Signing.PublicKey.isValidSignature
100% local, ZÉRO appel serveur à l'activation
- Nouveau LicenseTokenPayload {v, sub, plan, iat, exp?, jti, max}
- Mapping plan → Tier (lifetime/monthly), exp → expiresAt
- Re-check révocation 1×/semaine vers notchia.app/api/license/validate
(best-effort, offline → on garde le Pro)
- State.proGrace retiré (plus de notion de grâce, le token est self-contained)
- Admin key (nia_admin_) intacte — bypass SHA-256 local
Sync UI :
- LicenseSettings : retire les case .proGrace, ajoute .expired
- NotchIAApp.licenseErrorMessage : ajoute .expired
- 4 nouvelles strings i18n EN/FR/ES/DE
Vérifié : la clé lifetime d'Axel passe Curve25519.Signing.PublicKey.isValid
Signature avec le nouveau pubkey. Smoke test 6s OK.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Owner
Author
|
/release 2.8.3 |
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.
Backend notchia.app emits Ed25519-signed self-contained tokens. App now verifies them locally. Old nia_admin_ keys still work. Tested with real lifetime key.