mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-05 20:40:02 -08:00
This commit resolves multiple issues with the PSK broker integration. - The manual testing procedure never actually utilized the brokers due to the use of the outfile option, this led to issues with the broker being hidden. - The manual testing procedure omitted checking whether a PSK was actually sent to WireGuard entirely. This was fixed by writing an entirely new manual integration testing shell-script that can serve as a blueprint for future integration tests. - Many parts of the PSK broker code did not report (log) errors accurately; added error logging - BrokerServer set message.payload.return_code to the msg_type value, this led to crashes - The PSK broker commands all omitted to set the memfd policy, this led to immediate crashes once secrets where actually allocated - The MioBrokerClient IO state machine was broken and the design was too obtuse to debug. The state machine returned the length prefix as a message instead of actually interpreting it as a state machine. Seems the code was integrated but never actually tested. This was fixed by rewriting the entire state machine code using the new LengthPrefixEncoder/Decoder facilities. A write-buffer that was not being flushed is now handled by flushing the buffer in blocking-io mode.
14 lines
221 B
Plaintext
14 lines
221 B
Plaintext
secret_key = "peer_a.rp.sk"
|
|
public_key = "peer_a.rp.pk"
|
|
listen = ["[::1]:46127"]
|
|
verbosity = "Verbose"
|
|
|
|
[api]
|
|
listen_path = []
|
|
listen_fd = []
|
|
stream_fd = []
|
|
|
|
[[peers]]
|
|
public_key = "peer_b.rp.pk"
|
|
device = "rpPskBrkTestA"
|