Commit Graph

411 Commits

Author SHA1 Message Date
decentclock
2a4945f44a tester: add ota control message sends to ctrl bin 2022-09-25 21:28:44 -04:00
decentclock
f59aa3de57 factory: init, writes upgrades from sd card to flash and sets up ESP to boot newly written app 2022-09-25 21:28:36 -04:00
decentclock
79fea3092d ota: pull update binary from http server, write it to sd card, and factory reset 2022-09-25 16:59:48 -04:00
decentclock
f208a5af5e propagate errors to user in handle_control_response 2022-09-24 16:08:33 -04:00
Evan Feenstra
0002374a7f configurable within time for timestamp auth 2022-09-23 10:43:14 -07:00
decentclock
426735758a Automatically switch ESP from AP to Client mode when config received 2022-09-23 12:35:25 -04:00
Evan Feenstra
54ce203b60 strip debuginfo on release profile 2022-09-22 18:20:54 -07:00
Evan Feenstra
82e491e842 Merge pull request #65 from stakwork/broker-auth
Broker auth
2022-09-22 13:00:39 -07:00
Evan Feenstra
24ed444fea run from debian:bullseye-slim only 2022-09-21 12:39:25 -07:00
Evan Feenstra
381b765f9a some notes 2022-09-20 09:45:56 -07:00
Evan Feenstra
aeb48e36c3 tester and esp32 create signed timestamp for auth 2022-09-16 12:30:33 -07:00
Evan Feenstra
5de335c797 more clears 2022-09-15 16:12:34 -07:00
Evan Feenstra
d5eb32d2d8 vls error response 2022-09-15 14:15:36 -07:00
Evan Feenstra
55383f1337 error parser 2022-09-15 12:03:24 -07:00
Evan Feenstra
33a4d95dbf Merge pull request #63 from stakwork/error-handler
handle errors in broker
2022-09-15 12:00:26 -07:00
Evan Feenstra
cbb262829c handle errors in broker 2022-09-15 12:00:03 -07:00
Evan Feenstra
15d9e916a2 Merge pull request #62 from stakwork/refactor-config-store
Refactor config store
2022-09-14 15:04:06 -07:00
Evan Feenstra
fad091c413 broker Dockerfile 2022-09-14 15:01:29 -07:00
Evan Feenstra
dc2afb0547 fix improt 2022-09-14 14:11:13 -07:00
Evan Feenstra
7aa4dd72da use sphinx-rs glyph types 2022-09-13 16:25:39 -07:00
Evan Feenstra
1577766394 fix nonce checker 2022-09-12 16:01:51 -07:00
Evan Feenstra
708003ca4d policy stored in flash, more FlashPersister impls, handle_control_response util, ControlResponse::Error, simple policy 2022-09-12 15:13:48 -07:00
Evan Feenstra
17fee73ccb fix new_with_persister, return the original msg from controller.handle 2022-09-12 11:28:35 -07:00
Evan Feenstra
51659c74ac central topics consts shared between modules 2022-09-12 10:37:04 -07:00
Evan Feenstra
6d566107f6 separate config and seed store, simplify flash access, more methods in FlashPersister 2022-09-10 17:36:07 -07:00
decentclock
3d940ed349 readme fixes 2022-09-09 15:18:59 -04:00
Evan Feenstra
81d436bc42 Merge pull request #60 from stakwork/broker-ctrl
refactor broker to use tokio rather than std::thread
2022-09-09 11:48:07 -07:00
Evan Feenstra
2b1e184395 impl set_nonce for FlashPersister 2022-09-09 11:47:35 -07:00
Evan Feenstra
8c48ebda07 update tester main, Nonce message is the only one with nonce unchecked 2022-09-09 11:40:23 -07:00
Evan Feenstra
13f23f7111 tester ctrl configurable nonce and url 2022-09-09 10:33:09 -07:00
Evan Feenstra
fdd8b54e40 broker rocket.toml 2022-09-09 10:18:19 -07:00
Evan Feenstra
8e48f904ae control persister with flash, ctrl handler func, return mqtt pub 2022-09-08 16:42:44 -07:00
Evan Feenstra
de68957cdf round trip ControlMessage auth test 2022-09-08 14:47:58 -07:00
Evan Feenstra
21ed9f97ea control msg tester, fix mqtt router startup 2022-09-07 17:05:31 -07:00
Evan Feenstra
3992dfe6fe refactor broker to use tokio rather than std::thread 2022-09-07 12:05:54 -07:00
Evan Feenstra
8bf5ca4941 Merge pull request #59 from stakwork/policy-setter
Policy setter
2022-09-07 11:57:59 -07:00
Evan Feenstra
440cbf2e59 merge master 2022-09-06 14:36:24 -07:00
Evan Feenstra
b8090d6c12 start ControlMessage in tester 2022-09-02 17:09:41 -07:00
Evan Feenstra
4698d8bbae controller to parse and validate incoming ControlMessage bytes 2022-09-02 14:39:07 -07:00
Evan Feenstra
7b70bb7580 nonce utils in parser, key derivation utils to get node id from seed 2022-09-02 12:48:09 -07:00
Evan Feenstra
81c3cced36 start control msg validator 2022-09-01 17:52:00 -07:00
Evan Feenstra
adabb4583e Merge pull request #58 from stakwork/event-msgs
Event msgs
2022-09-01 09:38:17 -07:00
Evan Feenstra
272bc567aa policy setter in signer 2022-09-01 09:36:35 -07:00
Evan Feenstra
30ef762605 sub vls, cotrol, and ota topics 2022-08-31 13:39:09 -07:00
Evan Feenstra
bfa13efd70 match topic string 2022-08-31 13:32:06 -07:00
Evan Feenstra
f767aee3dc incoming topic 2022-08-31 13:27:59 -07:00
decentclock
3d7008eacc Merge pull request #57 from stakwork/broker-config-file
Add broker config file with network and port settings
2022-08-31 16:07:17 -04:00
Evan Feenstra
d98af6d7e0 add Control and Ota to the event enum 2022-08-31 13:01:14 -07:00
decentclock
d0b5c4c4c1 Check that broker and signer are on the same network 2022-08-31 14:52:50 -04:00
decentclock
6f81516a60 Check that broker and CLN are on the same network 2022-08-31 14:52:50 -04:00