fix: honour enrolment tokens issued outside the running process #10

Merged
day01 merged %!d() commits from %!s() into %!s() 2026-08-11 16:59:02 +00:00
Owner

Summary

  • On enrol miss in memory, reload unspent tokens from the store before refusing.
  • Lets issue-token CLI write to Postgres while the long-running server accepts the token without a restart.

Test plan

  • a_token_issued_by_another_process_is_still_honoured
  • Deploy new control image; issue-token via CLI; enrol without restart
## Summary - On enrol miss in memory, reload unspent tokens from the store before refusing. - Lets `issue-token` CLI write to Postgres while the long-running server accepts the token without a restart. ## Test plan - [x] `a_token_issued_by_another_process_is_still_honoured` - [ ] Deploy new control image; issue-token via CLI; enrol without restart
day01 added 1 commit 2026-08-11 16:47:17 +00:00
		Co-authored-by: Cursor <cursoragent@cursor.com>
	
day01 merged commit d3eb1a188e into %!s() 2026-08-11 16:59:02 +00:00
day01 deleted branch fix/honour-enrolment-tokens-from-the-store 2026-08-11 16:59:02 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: syncode/control#10