dependabot[bot]
0c79a4ce95
build(deps): bump serde from 1.0.209 to 1.0.210 ( #420 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.209 to 1.0.210.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.209...v1.0.210 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 16:22:00 +02:00
dependabot[bot]
036960b5b1
build(deps): bump anyhow from 1.0.86 to 1.0.87 ( #421 )
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.86 to 1.0.87.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.86...1.0.87 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 15:01:01 +02:00
dependabot[bot]
e7258849cb
build(deps): bump rustix from 0.38.35 to 0.38.36 ( #419 )
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.35 to 0.38.36.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.35...v0.38.36 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-06 09:53:51 +02:00
dependabot[bot]
8c88f68990
build(deps): bump clap from 4.5.16 to 4.5.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.16 to 4.5.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.16...clap_complete-v4.5.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-05 10:24:56 +02:00
dependabot[bot]
cf20536576
build(deps): bump tokio from 1.39.3 to 1.40.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.39.3 to 1.40.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.3...tokio-1.40.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-31 11:30:00 +02:00
dependabot[bot]
72e18e3ec2
build(deps): bump derive_builder from 0.20.0 to 0.20.1
...
Bumps [derive_builder](https://github.com/colin-kiegel/rust-derive-builder ) from 0.20.0 to 0.20.1.
- [Release notes](https://github.com/colin-kiegel/rust-derive-builder/releases )
- [Commits](https://github.com/colin-kiegel/rust-derive-builder/compare/v0.20.0...v0.20.1 )
---
updated-dependencies:
- dependency-name: derive_builder
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-30 08:56:28 +02:00
dependabot[bot]
6040156a0e
build(deps): bump rustix from 0.38.34 to 0.38.35 ( #414 )
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.34 to 0.38.35.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.34...v0.38.35 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 20:39:53 +02:00
dependabot[bot]
d3b318b413
build(deps): bump stacker from 0.1.16 to 0.1.17 ( #415 )
...
Bumps [stacker](https://github.com/rust-lang/stacker ) from 0.1.16 to 0.1.17.
- [Commits](https://github.com/rust-lang/stacker/compare/stacker-0.1.16...stacker-0.1.17 )
---
updated-dependencies:
- dependency-name: stacker
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 20:39:25 +02:00
dependabot[bot]
3a49345138
build(deps): bump serde from 1.0.208 to 1.0.209 ( #413 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.208 to 1.0.209.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.208...v1.0.209 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-27 20:02:59 +02:00
dependabot[bot]
4ec7813259
build(deps): bump stacker from 0.1.15 to 0.1.16
...
Bumps [stacker](https://github.com/rust-lang/stacker ) from 0.1.15 to 0.1.16.
- [Commits](https://github.com/rust-lang/stacker/compare/stacker-0.1.15...stacker-0.1.16 )
---
updated-dependencies:
- dependency-name: stacker
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-22 16:54:13 +02:00
dependabot[bot]
db31da14d3
build(deps): bump postcard from 1.0.9 to 1.0.10
...
Bumps [postcard](https://github.com/jamesmunns/postcard ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/jamesmunns/postcard/releases )
- [Changelog](https://github.com/jamesmunns/postcard/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jamesmunns/postcard/compare/v1.0.9...v1.0.10 )
---
updated-dependencies:
- dependency-name: postcard
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-22 16:54:00 +02:00
Karolin Varner
4c20efc8a8
Merge: fix(API): Tests failing on mac
...
Merge pull request #409 from rosenpass/dev/karo/macos-fix
2024-08-21 13:46:53 +02:00
Karolin Varner
c81d484294
fix(API): Tests failing on mac
2024-08-21 12:48:45 +02:00
dependabot[bot]
cc578169d6
build(deps): bump postcard from 1.0.8 to 1.0.9 ( #408 )
...
Bumps [postcard](https://github.com/jamesmunns/postcard ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/jamesmunns/postcard/releases )
- [Changelog](https://github.com/jamesmunns/postcard/blob/main/CHANGELOG.md )
- [Commits](https://github.com/jamesmunns/postcard/compare/v1.0.8...v1.0.9 )
---
updated-dependencies:
- dependency-name: postcard
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-21 08:12:56 +02:00
dependabot[bot]
91527702f1
build(deps): bump tokio from 1.39.2 to 1.39.3 ( #407 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.39.2 to 1.39.3.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.2...tokio-1.39.3 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-21 08:12:39 +02:00
dependabot[bot]
0179f1c673
build(deps): bump libc from 0.2.156 to 0.2.158 ( #406 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.156 to 0.2.158.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.158/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.156...0.2.158 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-21 08:12:05 +02:00
Karolin Varner
2238919657
Merge: fd/time: add tests, docs, cleanups
...
Merge pull request #405 from aparcar/fd-tests-cleanup
2024-08-19 17:52:42 +02:00
Paul Spooren
d913e19883
test: add tests for controlflow
...
While at it, fix the label handling and fix a typo in continue_if, where
a `break` falsely replaced a `continue`
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-19 17:24:38 +02:00
Paul Spooren
1555d0897b
feat(ord): drop obsolete RTX_BUFFER_SIZE and usize_max
...
The RTX_BUFFER_SIZE function is nowhere used in the code and when
dropping it, usize_max (const version of max()) becomes obsolete, too.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-19 17:24:37 +02:00
Paul Spooren
abdbf8f3da
feat(util/time): cleanup, document and add tests
...
Drop the unused `dur` function, it's nowhere found in the code.
Document both Timebase and Timebase::now()
Add tests
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-19 17:24:16 +02:00
Paul Spooren
9f78531979
tests: cleanup fd.rs tests
...
Trigger the internal assert of owned.rs instead of writing our own. To
correctly test it use `should_panic` macro.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-19 17:24:16 +02:00
Karolin Varner
624d8d2f44
Merge: API: Close connections after errors & use mio::Token based polling
...
Merge pull request #404 from rosenpass/dev/karo/api_remove_connection
2024-08-19 15:03:46 +02:00
Karolin Varner
9bbf9433e6
fix(API): Be polite and kill child processes in api integration tests
2024-08-19 00:31:01 +02:00
Karolin Varner
77760d71df
feat(API): Use mio::Token based polling
...
Avoid polling every single IO source to collect events,
poll those specific IO sources mio tells us about.
2024-08-19 00:31:01 +02:00
Karolin Varner
53e560191f
feat(API): Close API connections after error
2024-08-19 00:31:01 +02:00
Karolin Varner
93cd266c68
Merge API Endpoint: AddPskBroker
...
Merge pull request #403 from rosenpass/dev/karo/api-add-psk-broker
2024-08-17 22:25:21 +02:00
Karolin Varner
594f894206
feat(API): AddPskBroker endpoint
2024-08-17 15:30:10 +02:00
Karolin Varner
a831e01a5c
chore: Utilities to check for unix domain stream sockets
2024-08-17 15:30:10 +02:00
dependabot[bot]
0884641d64
build(deps): bump libc from 0.2.155 to 0.2.156
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.155 to 0.2.156.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.156/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.155...0.2.156 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-17 10:54:06 +02:00
dependabot[bot]
ae85d0ed2b
build(deps): bump clap from 4.5.15 to 4.5.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.15 to 4.5.16.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.15...clap_complete-v4.5.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-16 17:28:51 +02:00
Karolin Varner
163f66f20e
Merge – API Feature: Adding listen sockets
...
Merge pull request #395 from rosenpass/dev/karo/api-add-listen-socket
2024-08-16 17:16:44 +02:00
Paul Spooren
3caff91515
rosenpass: fallback for empty api section in config
...
The [api] section is newly added and causes existing installation to
break since they lack the configuration options. Instead, use a serde
default function.
Signed-off-by: Paul Spooren <mail@aparcar.org >
Co-authored-by: Karolin Varner <karo@cupdev.net >
2024-08-16 14:37:42 +02:00
Karolin Varner
24eebe29a1
feat(API): AddListenSocket endpoint
2024-08-16 14:37:42 +02:00
Karolin Varner
1d2fa7d038
feat(api): API Feature – Add server keys via API
...
Merge pull request #392 from rosenpass/dev/karo/api-supply-server-keys
2024-08-16 11:22:46 +02:00
Karolin Varner
edf1e774c1
feat(API): SupplyKeypair endpoint
2024-08-16 11:13:34 +02:00
Karolin Varner
7a31b57227
chore(API): Infrastructure to use endpoints with fd. passing
2024-08-16 08:39:27 +02:00
Karolin Varner
d5a8c85abe
chore(API): Specifying a keypair should be opt. at startup
...
…so we can specify it later using the API.
2024-08-16 08:34:07 +02:00
Karolin Varner
48f7ff93e3
chore(API, AppServer): Deal with CryptoServer being uninit.
...
Before this, we would just raise an error.
2024-08-16 08:34:07 +02:00
Karolin Varner
5f6c36e773
chore(AppServer): Decouple AppServer from CryptoServer::timebase
2024-08-16 08:34:07 +02:00
Karolin Varner
7b3b7612cf
chore(api): API should have access to AppServer
...
The borrow checker does not approve, hence there are many shenanigans
with extension traits.
2024-08-16 08:34:07 +02:00
Karolin Varner
c1704b1464
fix(API): Wrong response size set
2024-08-16 08:34:07 +02:00
dependabot[bot]
2785aaf783
build(deps): bump serde from 1.0.207 to 1.0.208
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.207 to 1.0.208.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.207...v1.0.208 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-16 08:30:08 +02:00
Karolin Varner
15002a74cc
Merge: Experimental PSK Broker Support
...
Merge pull request #376 from pqcfox/feat/netlink-broker-cli
Add broker support to Rosenpass using `MioBrokerClient` (backport of dev/broker-architecture)
2024-08-16 08:26:15 +02:00
Karolin Varner
0fe2d9825b
fix: Remove ineffectual broker integration test
2024-08-16 00:35:46 +02:00
Karolin Varner
ab805dae75
fix: libc & rustix are making problems in CI for unknown reasons
2024-08-16 00:35:46 +02:00
Karolin Varner
08653c3338
chore: clippy
2024-08-16 00:35:46 +02:00
Karolin Varner
520c8c6eaa
chore: Feature naming scheme fully applied
...
experimental_broker_api -> experiment_broker_api
2024-08-15 22:47:20 +02:00
Karolin Varner
258efe408c
fix: PSK broker integration did not work
...
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.
2024-08-15 22:47:20 +02:00
Karolin Varner
fd0f35b279
chore: gen-key subcommand should show canonical paths
2024-08-15 22:12:02 +02:00
Karolin Varner
8808ed5dbc
fix: Quiet log level should be warn
2024-08-15 09:43:25 +02:00