License revocation and renewal (shape)
Serial
Every issued license should carry a stable serial (e.g. ACME-2026-001) in the signed payload:
mesa-license issue --customer ACME --serial ACME-2026-001 ...
The serial is the revocation key; it is not a secret.
Revocation list
{
"version": 1,
"issuedAt": "2026-11-28T00:00:00Z",
"entries": [
{ "serial": "ACME-2026-001", "revokedAt": "2026-11-28T00:00:00Z", "reason": "contract ended" }
]
}
- Offline installs cannot be remotely killed; revocation is a commercial action + a signed list delivered to the customer/operator.
- A delivered license stays valid until expiry unless replaced by a new license or a revocation is actually installed/enforced by the customer.
- Renewal issues a new signed license with the same customer/serial policy (or a new serial), new expiry/limits; project data stays.
Signed envelope
The list is signed as base64(payload).base64(signature) (Ed25519), same envelope as licenses:
mesa-license revocation sign --file revoked.json --private-key-file issuer.pem --out revoked.signed --json
Verifiers check the signature and then the list shape; a delivered revocation list is only effective if the customer chooses to install/enforce it.
mesa-license revocation verify --file revoked.signed --public-key <base64> --json
mesa-license revocation check --license customer.license --list revoked.signed --public-key <base64> --json
check matches the license serial; it does not modify the license or contact a server.
Validation shape: src/license/revocation.mjs (test/license-revocation.test.mjs).
Process
- record serial/customer/limits in the delivery ticket;
- on renewal/revocation, issue/update the list and notify the customer;
- support asks for serial, never the private key or full license contents beyond verification.
源文件 · mesa-pro/docs/revocation.md