wucke13
d496490916
fix: set crate MSRVs to a precise version
...
Before this change, the patch release was left open. This patch
pinpoints it exactly, down to the patch release.
Signed-off-by: wucke13 <wucke13+github@gmail.com >
2025-05-09 18:22:10 +02:00
Karolin Varner
f22f4aad7d
feat: Fix minimum supported cargo version to 1.77
...
This should ensure, that our Cargo.lock file stays at version 3
when using `cargo update` or dependabot.
2025-04-13 13:44:36 +02:00
Dimitris Apostolou
fe60cea959
fix: avoid duplicate crates
2025-02-24 13:48:31 +02:00
David Niehues
0d7dd99d96
test(wireguard-broker): Add smoketest and doc-tests for wiregaurd broker
2024-12-19 09:34:40 +01:00
David Niehues
c78a9cb777
docs(wireguard-broker): add docs and examples
2024-12-19 09:34:15 +01:00
dependabot[bot]
1c5e4ecf95
build(deps): bump rustix from 0.38.41 to 0.38.42
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.41 to 0.38.42.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.41...v0.38.42 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-12 18:12:41 +01:00
dependabot[bot]
e56798b04c
build(deps): bump tokio from 1.41.1 to 1.42.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.41.1 to 1.42.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.1...tokio-1.42.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-12-04 11:40:04 +01:00
dependabot[bot]
9943f1336b
build(deps): bump rustix from 0.38.40 to 0.38.41
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.40 to 0.38.41.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.40...v0.38.41 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-28 21:11:08 +01:00
Karolin Varner
1275b992a0
Merge branch 'main' into rustix
2024-11-28 21:01:07 +01:00
dependabot[bot]
0cea8c5eff
build(deps): bump rustix from 0.38.39 to 0.38.40
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.39 to 0.38.40.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.39...v0.38.40 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-14 11:33:23 +01:00
Martin Kröning
939d216027
refactor: import FD traits from std instead of rustix
...
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de >
2024-11-11 11:14:33 +01:00
dependabot[bot]
61136d79eb
build(deps): bump tokio from 1.41.0 to 1.41.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.41.0 to 1.41.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.0...tokio-1.41.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-08 10:50:27 +01:00
dependabot[bot]
61043500ba
build(deps): bump rustix from 0.38.37 to 0.38.39
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.37 to 0.38.39.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.37...v0.38.39 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 13:22:15 +01:00
dependabot[bot]
810bdf5519
build(deps): bump tokio from 1.40.0 to 1.41.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.40.0 to 1.41.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.40.0...tokio-1.41.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-10-24 17:29:23 +02:00
Paul Spooren
b0706354d3
chore: Format all Cargo.toml files
...
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-10-01 11:22:45 +01:00
dependabot[bot]
76d8d38744
build(deps): bump rustix from 0.38.36 to 0.38.37
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.36 to 0.38.37.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.36...v0.38.37 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-09-12 19:01:42 +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]
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]
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]
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
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
594f894206
feat(API): AddPskBroker endpoint
2024-08-17 15:30:10 +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
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
Katherine Watson
274d245bed
chore: Unify enable_wg_broker and enable_broker_api features
2024-08-14 19:03:45 -07:00
Katherine Watson
065b0fcc8a
feat: Add enable_wg_broker feature using MioBrokerClient
...
doc: Add documentation for new methods and arguments
fix: Require new psk_broker_spawn flag to use broker without extra parameters, to make all-features cargo test pass
fix: Fix MioBrokerClient buffer size to allow room for length prefix
fix: Fix remaining issue with panic
2024-08-14 19:03:44 -07:00
dependabot[bot]
3faa84117f
build(deps): bump tokio from 1.39.1 to 1.39.2
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.39.1 to 1.39.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.39.1...tokio-1.39.2 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-13 13:14:15 +02:00
Karolin Varner
648a94ead8
chore: Clippy fixes on wireguard-broker
2024-08-03 15:02:49 +02:00
Karolin Varner
6bbe85a57b
chore: Remove unnecessary imports
2024-08-03 13:59:55 +02:00
dependabot[bot]
1bcaf5781f
build(deps): bump tokio from 1.38.1 to 1.39.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.38.1 to 1.39.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.1...tokio-1.39.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-25 19:05:30 +02:00
dependabot[bot]
8637bc7884
build(deps): bump tokio from 1.38.0 to 1.38.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.38.0 to 1.38.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.38.0...tokio-1.38.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-16 23:32:14 +00:00
Alice Michaela Bowman
bdad414c90
Add cargo-test runner for macos x86-64 ( #348 )
...
* added cargo-test runner for macos 86-64
---------
Co-authored-by: Prabhpreet Dua <615318+prabhpreet@users.noreply.github.com >
2024-06-17 15:48:19 +02:00
Prabhpreet Dua
526c930119
Secret memory with memfd_secret ( #321 )
...
Implements:
- An additional allocator to use memfd_secret(2) and guard pages using mmap(2), implemented in quininer/memsec#16
- An allocator that abstracts away underlying allocators, and uses specified allocator set by rosenpass_secret_memory::policy functions (or a function that sets rosenpass_secret_memory::alloc::ALLOC_INIT
- Updates to tests- integration, fuzz, bench: some tests use procspawn to spawn multiple processes with different allocator policies
2024-06-10 13:12:44 +05:30
dependabot[bot]
fd397b9ea0
build(deps): bump tokio from 1.37.0 to 1.38.0 ( #324 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.37.0 to 1.38.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.37.0...tokio-1.38.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-31 08:30:41 +05:30
Prabhpreet Dua
c1abfbfd14
feat(rosenpass): Add wireguard-broker interface in AppServer ( #303 )
...
Dynamically dispatch WireguardBrokerMio trait in AppServer. Also allows for mio event registration and poll processing, logic from dev/broker-architecture branch
Co-authored-by: Prabhpreet Dua <615318+prabhpreet@users.noreply.github.com >
Co-authored-by: Karolin Varner <karo@cupdev.net >
2024-05-20 18:12:42 +05:30
Prabhpreet Dua
2bac991305
feat(wireguard-broker): merge from dev/broker-architecture, fixes, test
...
* wireguard-broker: merge from dev/broker-architecture
* use zerocopy instead of lenses
* Require use_broker feature flag to comile broker binaries
* Remove PhantomData from BrokerServer & BrokerClient
* Modify mio client rx to be non-recursive, add integration test
Co-authored-by: Karolin Varner <karo@cupdev.net >
Co-authored-by: Prabhpreet Dua <615318+prabhpreet@users.noreply.github.com >
2024-05-07 12:23:35 +05:30