Commit 9fa9e27
fix(rotation): adapt phase-1 to main after rebase
Two changes required by main moving forward (PRs #127, #134, #137):
1. internal/api/server_test.go was added in PR #127 (remote console)
after Phase 1 branched. It uses the old ServerConfig.APIKey field
that Phase 1 replaced with KeyRing. Updated the test to construct
a one-entry KeyRing and send the legacy 64-hex bearer token.
2. PR #127 also added migration 000002_add_box_console_enabled,
colliding with Phase 1's 000002_add_box_agent_keys. Renumbered
Phase 1's migration to 000003. Migrations are content-addressed
by the embedded iofs, so the rename is mechanical — no schema
change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b654c53 commit 9fa9e27
3 files changed
Lines changed: 17 additions & 2 deletions
File tree
- gearbox-agent/internal/api
- gearbox/internal/framework/database/migrations/files
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
32 | 47 | | |
33 | 48 | | |
34 | | - | |
| 49 | + | |
35 | 50 | | |
36 | 51 | | |
37 | 52 | | |
| |||
42 | 57 | | |
43 | 58 | | |
44 | 59 | | |
45 | | - | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| |||
0 commit comments