Commit 9b8fcd9
authored
fix: bound the window in which the shared key still works for a worker (#233)
Per-worker fleet keys exist so CASHPILOT_API_KEY stops being enough to speak as
any particular worker. The cutover finalized when a worker first heartbeat with
its own key -- and for a worker that CANNOT persist that key, it never did. A
pre-1.0.0 image, a read-only /data, an ephemeral container: the shared key stayed
valid for that identity forever, the UI re-sent the per-worker key to whoever
held the shared one every 60 seconds, and the only trace was one log line a
minute.
The window now also closes 24 hours after the key is minted. Past it the shared
key is refused for that worker and the fleet page marks it "enrollment
incomplete", with what causes it and how to recover.
Absent is not expired: a missing or unparseable issue time reads as still
enrolling, and the migration backfills existing unconfirmed workers to now, so
this upgrade cannot take a mid-enrollment fleet offline.
docs/upgrade-v1.md claimed an old worker "can no longer heartbeat", which is why
nobody went looking for one still on the shared key. It now says what happens.1 parent 70ea57b commit 9b8fcd9
6 files changed
Lines changed: 488 additions & 7 deletions
File tree
- app
- templates
- docs
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| |||
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
743 | 758 | | |
744 | 759 | | |
745 | 760 | | |
| |||
1632 | 1647 | | |
1633 | 1648 | | |
1634 | 1649 | | |
1635 | | - | |
| 1650 | + | |
1636 | 1651 | | |
1637 | 1652 | | |
1638 | 1653 | | |
| |||
1711 | 1726 | | |
1712 | 1727 | | |
1713 | 1728 | | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1714 | 1750 | | |
1715 | 1751 | | |
1716 | 1752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3459 | 3459 | | |
3460 | 3460 | | |
3461 | 3461 | | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
| 3478 | + | |
| 3479 | + | |
| 3480 | + | |
| 3481 | + | |
| 3482 | + | |
| 3483 | + | |
| 3484 | + | |
| 3485 | + | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
3462 | 3505 | | |
3463 | 3506 | | |
3464 | 3507 | | |
3465 | 3508 | | |
3466 | 3509 | | |
3467 | 3510 | | |
3468 | | - | |
3469 | | - | |
| 3511 | + | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
3470 | 3523 | | |
3471 | 3524 | | |
3472 | 3525 | | |
| |||
3488 | 3541 | | |
3489 | 3542 | | |
3490 | 3543 | | |
3491 | | - | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
3492 | 3566 | | |
3493 | 3567 | | |
3494 | 3568 | | |
| |||
3565 | 3639 | | |
3566 | 3640 | | |
3567 | 3641 | | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
3568 | 3647 | | |
3569 | 3648 | | |
3570 | 3649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
313 | 318 | | |
314 | 319 | | |
315 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
0 commit comments