Mike Dilger
|
28fb96a9d5
|
3 new error variants needed for blossom work
|
2024-11-17 14:04:24 +13:00 |
|
Mike Dilger
|
1382fc397c
|
Error::FromHex(FromHexError)
|
2024-11-17 14:02:39 +13:00 |
|
Mike Dilger
|
fab1aa3c10
|
From<Error> for std::io::Error (map back, as some stream work will need this)
|
2024-11-17 14:01:02 +13:00 |
|
Mike Dilger
|
afe3cc9c7b
|
error: provide source() for 3 that were missing
|
2024-11-17 14:00:15 +13:00 |
|
Mike Dilger
|
918ed3fcb5
|
alpha sort of Error variants
|
2024-11-17 13:56:25 +13:00 |
|
Mike Dilger
|
94ad17fcc3
|
Use a streaming BoxedBody
|
2024-11-16 10:00:21 +13:00 |
|
Mike Dilger
|
2794515ab7
|
bin: chorus_cmd
|
2024-10-25 10:21:32 +13:00 |
|
Mike Dilger
|
94b7dfa57a
|
distinguish RateLimitExceeded error from ErrorClose
|
2024-07-14 11:40:20 +12:00 |
|
Mike Dilger
|
5711ca3503
|
Punish parse errors (else you can get DoS)
|
2024-07-14 10:00:49 +12:00 |
|
Mike Dilger
|
a76be24d68
|
Fix proxy setups (ip blocking, real IP); needs new chorus_is_behind_a_proxy config
|
2024-07-13 12:11:26 +12:00 |
|
Mike Dilger
|
726b824620
|
Clean up
|
2024-06-27 09:54:15 +12:00 |
|
Mike Dilger
|
8d36ca03b7
|
Management API: handles banpubkey, allowpubkey, and supportedmethods
|
2024-06-27 09:28:48 +12:00 |
|
Mike Dilger
|
cb2bcc9b40
|
Management API started (handles request, checks auth, does not service yet)
|
2024-06-26 12:08:40 +12:00 |
|
Mike Dilger
|
1c608ab1bf
|
Config::url() to get full URL of server (either as Websocket or HTTP)
|
2024-06-26 12:06:24 +12:00 |
|
Mike Dilger
|
bc44aafd2d
|
depend on serde_json
|
2024-06-26 12:02:28 +12:00 |
|
Mike Dilger
|
577243789e
|
Removal of errors that are now in pocket
|
2024-06-24 12:35:45 +12:00 |
|
Mike Dilger
|
02de9e2038
|
MAJOR switch to pocket
|
2024-05-07 08:52:22 +12:00 |
|
Mike Dilger
|
d7f8ed3f60
|
Split into bin and lib, so we can have extra binaries that use the lib
|
2024-02-21 12:10:10 +13:00 |
|
Mike Dilger
|
3321652481
|
Rank errors, require punishment of 1.0 before closing connection
|
2024-02-21 11:08:49 +13:00 |
|
Mike Dilger
|
798079a3f2
|
Restructure to propogate errors up further for counting and logging, while not over-replying
|
2024-02-21 10:55:36 +13:00 |
|
Mike Dilger
|
9b2d6365f0
|
Respond to REQ errors properly with CLOSED
|
2024-02-21 09:30:10 +13:00 |
|
Mike Dilger
|
c42452a41a
|
Handle timeouts like excessive errors
|
2024-02-20 21:29:40 +13:00 |
|
Mike Dilger
|
dbf7313d2b
|
Ban for 60 seconds after 3 errors, adjust ban times
|
2024-02-19 20:20:54 +13:00 |
|
Mike Dilger
|
b4e3f8a06d
|
Include more detail with AuthFailure
|
2024-02-19 17:43:28 +13:00 |
|
Mike Dilger
|
2b636f6776
|
NIP-09 deletion support
|
2024-02-19 12:09:15 +13:00 |
|
Mike Dilger
|
a1c81acd8f
|
Restructure handling code to ensure EVENT always gets an OK reply (except for early errors)
|
2024-02-18 10:02:52 +13:00 |
|
Mike Dilger
|
179f5486ba
|
ChorusError::AuthFailure
|
2024-02-18 08:53:52 +13:00 |
|
Mike Dilger
|
7a1750b9cd
|
ChorusError::UrlParse(url::ParseError)
|
2024-02-18 08:53:52 +13:00 |
|
Mike Dilger
|
fef0d7a542
|
MAJOR error rewrite to track file/line
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
68a8cc6ad4
|
Verify events (verify id and signature), configurable
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
fc35600e86
|
Handle tokio channel errors
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
564230f043
|
Handle websocket related errors
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
8701ae69dd
|
TLS
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
2c4c9a9264
|
depend on hyper
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
88f609c962
|
Store.find_events()
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
0e218e95ef
|
Store Events
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
2b9683404f
|
Store
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
e378df2865
|
json_filter: JSON parsing of Filter
|
2024-02-17 09:53:47 +13:00 |
|
Mike Dilger
|
24b7c84fef
|
mod types/parse/json_parse to assist type-specific json parsing
|
2024-02-17 09:49:44 +13:00 |
|
Mike Dilger
|
5782d5d120
|
mod types/parse/json_escape (with json_unescape)
|
2024-02-17 09:49:44 +13:00 |
|
Mike Dilger
|
23f516f3d9
|
mod types/parse/utf8: UTF-8 encoding/decoding:
This helps avoid a separate validation pass that happens when converting bytes to &str
We just work with bytes directly now
|
2024-02-17 09:49:44 +13:00 |
|
Mike Dilger
|
2a36c2ca2b
|
Macros for converting between binary and hex
|
2024-02-15 09:22:02 +13:00 |
|
Mike Dilger
|
4d9de16eba
|
Config, and loading at startup
|
2024-02-15 09:22:02 +13:00 |
|
Mike Dilger
|
0ee79ce787
|
Error type for crate
|
2024-02-15 09:13:35 +13:00 |
|