Commit 0fcb45d
committed
Fix heartbeat ownership check: compare user_id not pubkey hash
The JWT claims.user_id is a hash (e.g. "5e38e312...") which matches
the node_id from the join flow. The previous code ran it through
normalize_pubkey() producing "ed25519:5e38e312..." which never matches
the node's mgmt_pubkey ("ed25519:L9LKzhu..."). Now simply checks
claims.user_id == hb_node_id.1 parent 2a22da8 commit 0fcb45d
1 file changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
247 | 240 | | |
248 | 241 | | |
249 | 242 | | |
| |||
0 commit comments