ShahanaFarooqui
3108ff93b8
plugins/clnrest: Update content security policy for server
2023-09-19 11:40:15 +09:30
ShahanaFarooqui
eca3a33e69
plugins/clnrest: Update Websocket server to dynamically add CORS settings
...
Changelog-Added: New configurable Cross-Origin-Resource-Sharing(CSP) header for clnrest
2023-09-19 11:40:15 +09:30
ShahanaFarooqui
b0430cc897
plugins/clnrest: Update App server to dynamically add CORS settings
2023-09-19 11:40:15 +09:30
ShahanaFarooqui
6aa697ea3d
plugins/clnrest: Rune authentication for websocket server
2023-09-19 11:40:15 +09:30
Rusty Russell
a4644550a2
clnrest: don't require nodeid (FIXME: needs screenshot updates!)
...
This was a misunderstanding: nodeid is useful for commando, where it's the
peer's nodeid, and Noise-XK guarantees that we know who that is. It's
not useful for clnrest, so don't require it (it was our node id, which
is redundant).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-09-12 15:19:02 +09:30
Dusty Daemon
8d5be61fcb
clnrest: Change process method to fork
...
On mac the clnrest plugin hangs on log messages, causing it to never run.
This guide suggests switching to fork’ing instead of spwan’ing
https://superfastpython.com/multiprocessing-common-errors/#Error_2_print_Does_Not_Work_In_Child_Processes
Switching to fork fixes the hang on Mac.
Changelog-None
2023-08-24 19:36:42 +09:30
Shahana Farooqui
637f314bc6
plugin/clnrest: Improved readme and comments
...
- Adding runes info in readme
- Added extra comments in the code
- System exit on shutdown
- Replaced single quotes with double quotes
Changelog-None
2023-07-30 16:50:04 +09:30
Shahana Farooqui
911d2c117e
plugins/clnrest: Websocket Server
...
- Added Dependencies
- Updated WS client instructions
- WS Server
2023-07-25 19:20:16 +09:30
Rusty Russell
2ab0b4af3e
plugins/clnrest: disable ourselves unless rest-port is set.
...
This mirrors grpc's behavior, and avoids listening on ports without
explicit user permission.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-07-25 19:20:16 +09:30
Rusty Russell
a6701bf180
plugins/clnrest: fail gracefully if dependencies not installed.
...
json and sys are Python built-in packages, so we can do this.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-07-25 19:20:16 +09:30
Shahana Farooqui
21160aa6a7
plugin: clnrest
...
plugin: clnrest
2023-07-25 19:20:16 +09:30