Skip to content

Verify signed device licence allowances and terminal replies - #1240

Merged
enaboapps merged 1 commit into
mainfrom
feat/1238-licence-lease-verifier
Oct 31, 2026
Merged

enaboapps merged 1 commit into
mainfrom
feat/1238-licence-lease-verifier

Conversation

@enaboapps

@enaboapps enaboapps commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Adds a separate trust domain for SWPL1 device allowances and SWPS1 terminal replies. Verifies exact signed bytes, device identity, generation, expiry, and request nonce/action/freshness. Rejects purchase/lease signer overlap and allowances longer than 30 days. Public fixtures match switchify-supabase#19 byte-for-byte.

Closes #1238. Foundation for #1239; this PR does not change app access behaviour or launch the app.

Validation on Node 24/Rust 1.97.1: prediction-model, lint, npm test (320 UI + 21 Node), npm build, cargo fmt check, clippy all-targets -D warnings, cargo test (859 unit + 9 config pass, 4 existing ignored). Three new Rust tests cover cross-language fixtures, expiry and negative verification. No production keys or secrets in tests; fixture signing seeds are explicitly public test material.

CI prerequisite: stacked on #1243 (supported macOS runner), then #1241 builds on this verifier. Rebased head 688e220 has an identical scoped patch to reviewed b050438; independent review found no issues on the new head.

@enaboapps enaboapps added this to the v1.4.0 milestone Oct 31, 2026
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
site Ready Ready Preview Oct 31, 2026 3:01pm UTC

Request Review

@enaboapps
enaboapps force-pushed the feat/1238-licence-lease-verifier branch from 688e220 to 0c4cc99 Compare October 31, 2026 15:01
@enaboapps
enaboapps merged commit 3aff7dc into main Oct 31, 2026
10 checks passed
@enaboapps
enaboapps deleted the feat/1238-licence-lease-verifier branch October 31, 2026 15:30

This branch was successfully deployed

1 active deployment
Preview — 0c4cc997 Deployed Oct 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify device-bound signed licence leases and terminal responses

1 participant