cairnd: auto-install refreshed license key from check-in response #58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Companion to cairn-license-server#3 (renewal refreshes the existing license instead of re-issuing).
The license server's
/v1/checkinresponse will carry the current signed key:{status: "ok", key: "CAIRN1…"}. cairnd's monthly check-in (license.ManagerCheckinLoop) should:statePath, log at info.Result: subscription renewals propagate to >50-seat instances hands-free within one check-in cycle — nobody re-pastes keys. Sub-50 instances never check in (by design) and don't need a license anyway.
Small change: manager parses the check-in response body (currently ignores it) + one guarded install path + tests (refresh accepted; different-id rejected; malformed key rejected; unchanged key = no-op).