Check-in installs refreshed license key (#58) #60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/checkin-refresh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #58.
The license server now re-signs the same license id on subscription renewal and returns it from
/v1/checkinas{status, key}. This PR makes the check-in loop consume that:checkin()parses the 200 body and returns the key alongside ok/revoked.installRefreshedKeyLockedinstalls the key only if it verifies against the embedded public key, carries the same license id as the currently installed license, and isn't expired. Anything else is logged and ignored — a compromised or misbehaving license server can never swap in a different license.{"status":"ok"}responses (older servers) behave exactly as before.Tests: install path (seats/expiry/persistence), foreign-id rejection, keyless compatibility. gofmt/vet/build/test green on the runner.