Commit graph

177 commits

Author SHA1 Message Date
Gwendolyn
4b1ac9f194 convert django lazy string proxies to strings in the base schema validator, rather than in the serialization code of each source model 2023-12-11 20:59:19 +01:00
Laura Klünder
a8fda62d24 read x-mesh-secret header correctly 2023-12-09 20:24:48 +01:00
Laura Klünder
34af60782c merge RangeLocator into Locator and modernize code 2023-12-07 02:21:46 +01:00
Laura Klünder
78ee84842e APIKeyAuth in scopes 2023-12-04 23:13:58 +01:00
Laura Klünder
68d9d535c7 mesh websocket auth: use X-Mesh-Secret 2023-12-04 23:09:27 +01:00
Laura Klünder
4491f68dc7 move api auth from authorization header to X-API-Key header 2023-12-04 23:07:45 +01:00
Laura Klünder
ba4c2b7d0a rename newapi to api 2023-12-03 21:55:08 +01:00
Laura Klünder
c21c43a6da improve mesh api v2 documentation 2023-12-03 20:25:30 +01:00
Laura Klünder
5c203a7a2b editor geometries now available in new API 2023-12-03 16:37:05 +01:00
Laura Klünder
f1876903c3 fix some incorrect API scopes 2023-12-02 02:29:17 +01:00
Gwendolyn
7849611028 javascript typo 2023-12-02 02:25:43 +01:00
Gwendolyn
ac6f154f06 various ota fixes 2023-12-02 02:25:43 +01:00
Gwendolyn
c18abb1b8c firmware description should not be cached 2023-12-02 02:25:43 +01:00
Gwendolyn
62eb9eb081 includes for generated c types 2023-12-02 02:25:43 +01:00
Gwendolyn
013a480f6d switch ota status highest_chunk to next_expected_chunk 2023-12-02 02:21:42 +01:00
Gwendolyn
c2170ae741 remove update_id from request status message 2023-12-02 02:21:42 +01:00
Laura Klünder
0d772f860c fix! 2023-12-02 02:21:05 +01:00
Laura Klünder
c623ca3a5c fix? 2023-12-02 02:19:30 +01:00
Laura Klünder
22049f79c3 fix typo 2023-12-02 02:13:30 +01:00
Laura Klünder
664df23468 hide progress when we're done or failed 2023-12-02 02:03:05 +01:00
Laura Klünder
d789bb2382 don't fail with unhandled message type bluh bluh 2023-12-02 02:02:54 +01:00
Laura Klünder
e0916dfecd make the apply& vanish 2023-12-02 01:48:06 +01:00
Laura Klünder
a11fe365d1 format device status a bit better 2023-12-02 01:45:10 +01:00
Laura Klünder
9f89c4fa96 fix the thing 2023-12-02 01:42:04 +01:00
Laura Klünder
d15ca0832c fix ota status js a bit 2023-12-02 01:38:23 +01:00
Laura Klünder
d1dc2ed5e0 value → innerText 2023-12-02 01:14:35 +01:00
Laura Klünder
0cacabb3cd add security requirement scopes for some operations 2023-12-02 01:14:09 +01:00
Laura Klünder
929f9a2712 show device status in ota detail 2023-12-02 01:13:39 +01:00
Laura Klünder
41bc94fd6b fix received_bytes is not defined 2023-12-02 00:18:21 +01:00
Laura Klünder
5b227190a8 send mesh.ota_recipients_changed correctly from OTAForm 2023-12-02 00:12:56 +01:00
Jenny Danzmayr
78ff88a390 prevent side channel attacks in the mesh authorization code 2023-12-01 17:11:06 +01:00
Laura Klünder
a3bac07a23 mesh websocket authorization 2023-12-01 17:04:39 +01:00
Laura Klünder
0256c061ea starting OTA without reconnecting the node, canceling OTA too… wow 2023-12-01 16:39:27 +01:00
Laura Klünder
a3f763ad35 ota controls… hopefully nearly complete 2023-12-01 16:23:17 +01:00
Laura Klünder
bef3db6841 blubb bloobb 2023-12-01 15:19:51 +01:00
Laura Klünder
e295c62757 linter deserves happiness 2023-12-01 15:00:40 +01:00
Laura Klünder
434e1edcc0 more ota status stuff in python and more way to communicate status in c 2023-12-01 14:58:47 +01:00
Laura Klünder
6205ac1431 remove old mesh/firmware API 2023-11-30 23:09:32 +01:00
Laura Klünder
7a95d74fd6 fix typo 2023-11-30 23:07:43 +01:00
Laura Klünder
5208db4c67 fix firmwarschema serialize? maybe…? mew? 2023-11-30 23:04:03 +01:00
Laura Klünder
faad19f5a5 board boots with target firmware? OTA success! 2023-11-30 22:45:53 +01:00
Laura Klünder
7401c00216 some API fixes 2023-11-30 22:45:36 +01:00
Laura Klünder
62e97b0b2f show ota update progress in bytes 2023-11-30 22:31:42 +01:00
Laura Klünder
e579cb53b6 send all the data for the OTA 2023-11-30 22:03:22 +01:00
Laura Klünder
43791583e0 new api secret system, multiple api secrets, limited scopes, etc... 2023-11-30 22:02:40 +01:00
Laura Klünder
4307a7fc4d show firmware size and firmware download link in firmware build detail view 2023-11-30 21:33:39 +01:00
Laura Klünder
ebfdf1d69f fix firmware build serialization 2023-11-30 21:33:15 +01:00
Laura Klünder
317ff66c76 add manual ota update apply message form 2023-11-30 21:32:53 +01:00
Laura Klünder
375aa9f12c move mesh forms from site to mesh module… wtf 2023-11-30 21:31:51 +01:00
Laura Klünder
df7ae47a9a lets make the firmware build binary url harder to guess maybe 2023-11-30 21:26:57 +01:00