Commit d5a753d
v0.1.8: update-awareness badge + HMAC-signed uploads
Two user-visible additions:
1. Plugin checks GitHub releases on init and shows a green/yellow/red
banner in SettingsPanel above CONFIGURATION:
* Current → "v0.1.8 — up to date" (muted)
* SlightlyStale (≤2 versions behind) → yellow, "Download update"
* TooOld (>2 versions behind) → RED, uploads BLOCKED until
user updates
* DevBuild → muted "dev build" (no nag for maintainers)
* Unknown → banner hidden (fails OPEN — network outage must
not silently brick parse uploads)
Threshold lives in UpdateChecker.StaleThresholdVersions (=2).
UploadClient.UpdateStatus gates the upload path. Plugin fires the
check once per ACT session (no cache — GH 60/h/IP limit is plenty
for the request volume, and re-checking on each start means the
banner clears instantly after a user installs an update).
2. Every upload now ships X-Lexicon-Signature = HMAC-SHA256(body,
api_token) via PayloadSigner. Companion server-side validator in
the EQ2Lexicon repo (commit 33e48a4) runs in opportunistic mode
for now so v0.1.7 installs aren't broken during the rollout.
Threat model documented in PayloadSigner.cs + CLAUDE.md: this
stops in-flight tampering and replay-with-stolen-token-only
attacks. It does NOT stop the legitimate token holder from
signing a forged parse — that's unfixable client-side, real
integrity has to come from server-side sanity caps.
Implementation notes:
* New src/Core types are pure + testable; UI assembly stays the
only place that imports ACT or WinForms.
* UploadClient.UserAgent now embeds the assembly version
(EQ2LexiconACTPlugin/0.1.8) so the server can roll out a strict
HMAC gate once telemetry shows enough 0.1.8+ traffic.
* 38 new xUnit tests: UpdateChecker (version parsing, status
matrix, JSON parsing, end-to-end orchestration with stub
fetcher), PayloadSigner (deterministic HMAC, key sensitivity,
body sensitivity, RFC 4231 § 4.3 Test Case 2 vector). 110/110.
Lockstep version bump on Core + UI per the project rule.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 375b2a2 commit d5a753d
11 files changed
Lines changed: 1065 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
109 | 143 | | |
110 | 144 | | |
111 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments