Paul Spooren
7b6a9eebc1
ci: test full workspace with codecov
...
Previously only the default members were checked for coverage.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-12 12:10:47 +02:00
Paul Spooren
4554dc4bb3
ci: drop codecov token
...
It's not needed to see generate results for pull requests.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-12 11:44:33 +02:00
Paul Spooren
465c6beaab
ci: switch to codecov action v4 branch
...
Instead of using a specific version, use branch v4 which stays API
compatible.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-12 11:43:26 +02:00
Paul Spooren
1853e0a3c0
feat: add test case and check fd value
...
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-08-12 11:37:15 +02:00
Benjamin Lipp
245d4d1a0f
feat: add tests for util file.rs
...
Co-authored-by: Paul Spooren <mail@aparcar.org >
2024-08-12 11:37:15 +02:00
Karolin Varner
d5d15cd9bc
Merge Rosenpass API infrastructure
...
Pull request #388 from rosenpass/dev/karo/api
2024-08-08 22:02:04 +02:00
Katherine Watson
9fd3df67ed
chore: Fix typos and add various comments
2024-08-07 23:11:13 -07:00
Karolin Varner
6d47169a5c
feat: Set CLOEXEC flag on claimed fds and mask them
...
Masking the file descriptors (by replaying them with a file descriptor pointing towards /dev/null)
mitigates use after free (on file descriptor) attacks. In case some
piece of code still holds a reference to the file descriptor, that
file descriptor now merely holds a reference to /dev/null.
Otherwise, the file descriptor might be reused and the reference
could now mistakenly point to all sorts of – potentially more harmful – files, such as memfd_secret
file descriptors, storing our secret keys.
2024-08-05 16:16:09 +02:00
Karolin Varner
4bcd38a4ea
feat: Infrastructure for the Rosenpass API
2024-08-03 16:51:18 +02:00
Karolin Varner
730a03957a
feat: A variety of utilities in preparation for implementing the API
2024-08-03 16:50:21 +02:00
Karolin Varner
ea071f5363
feat: Convenience functions and traits to automatically handle ErrorKind::{Interrupt, WouldBlock}
2024-08-03 16:49:02 +02:00
Karolin Varner
3063d3e4c2
feat: Convenience traits to get the ErrorKind of an io error for match clauses
2024-08-03 16:48:25 +02:00
Karolin Varner
1bf0eed90a
feat: Convenience function to just call a function
2024-08-03 16:46:48 +02:00
Karolin Varner
138e6b6553
chore: to crate documentation indendation (purely cosmetic)
2024-08-03 16:32:02 +02:00
Karolin Varner
2dde0a2b47
chore: Refactor integration_tests (purely cosmetic)
2024-08-03 16:31:19 +02:00
Karolin Varner
3cc3b6009f
chore: Move CliCommand::run -> CliArgs::run; do not mutate the configuration
...
This way CliArgs::run has access to all command line parameters.
Avoided mutating the CliArgs (or rather CliCommand) structure here,
because doing so is simply bad style. There is no good reasoning for
why this function should mutate CliCommand, except for a bit of
convenience.
2024-08-03 16:29:19 +02:00
Karolin Varner
1ab457ed37
fix: Print stack trace to errors propagated to main function
2024-08-03 15:50:14 +02:00
Karolin Varner
c9c266fe7c
fix: Flush stdout after printing key update notification
...
Otherwise, the notification might not be delivered due to buffering.
2024-08-03 15:50:14 +02:00
Karolin Varner
8d3c8790fe
chore: Reorganize memfd secret policy
...
- Policy is now set in main.rs, not cli.rs.
- Feature is called experiment_memfd_secret, not enable_memfd_alloc
This also fixes the last remaining warnings.
2024-08-03 15:17:09 +02:00
Karolin Varner
648a94ead8
chore: Clippy fixes on wireguard-broker
2024-08-03 15:02:49 +02:00
Karolin Varner
54ac5eecdb
chore: Warnings & clippy hints
2024-08-03 14:13:03 +02:00
Karolin Varner
40c5bbd167
chore: Ensure that rustAnalyzer is installed in dev environment
2024-08-03 14:06:19 +02:00
Karolin Varner
a4b8fc2226
chore: Move memcmp test API doc to test memcmp test module
2024-08-03 14:05:22 +02:00
Karolin Varner
37f7b3e4e9
fix: Consistently use feature flag experiment_libcrux
...
Before this, some parts of the code used an incorrect feature flag
name, preventing libcrux from being used.
2024-08-03 14:03:31 +02:00
Karolin Varner
deafc1c1af
chore: Style adjustments – Cargo.toml
2024-08-03 14:03:31 +02:00
Karolin Varner
6bbe85a57b
chore: Remove unnecessary imports
2024-08-03 13:59:55 +02:00
Karolin Varner
e70c5b33a8
chore: Ignore vscode directory
2024-08-03 13:35:31 +02:00
dependabot[bot]
25fdfef4d0
build(deps): bump clap from 4.5.11 to 4.5.13 ( #384 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.11 to 4.5.13.
- [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.11...v4.5.13 )
---
updated-dependencies:
- dependency-name: clap
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-01 09:47:20 +02:00
dependabot[bot]
6ab8fafe59
build(deps): bump clap from 4.5.9 to 4.5.11
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.9 to 4.5.11.
- [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.9...v4.5.11 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-29 14:28:22 +02:00
dependabot[bot]
c1aacf76b8
build(deps): bump mio from 0.8.11 to 1.0.1 ( #380 )
...
Bumps [mio](https://github.com/tokio-rs/mio ) from 0.8.11 to 1.0.1.
- [Release notes](https://github.com/tokio-rs/mio/releases )
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tokio-rs/mio/commits )
---
updated-dependencies:
- dependency-name: mio
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 15:59:48 +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
Paul Spooren
de60e5f8f0
Docs: run prettier over CONTRIBUTING.md
...
... or else the CI fails on all PRs
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-07-25 15:56:54 +02:00
Alice Bowman
b50ddda151
Documentation: pointed to website documentation in readme
2024-07-23 10:46:52 +02:00
Alice Bowman
7282fba3b3
Docs: migrated cooking recipe from wiki
2024-07-23 10:41:44 +02:00
dependabot[bot]
0cca389f10
build(deps): bump thiserror from 1.0.62 to 1.0.63 ( #371 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.62 to 1.0.63.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.62...1.0.63 )
---
updated-dependencies:
- dependency-name: thiserror
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-07-18 14:29:08 +02:00
Karolin Varner
8a08d49215
Merge pull request #370 from rosenpass/dependabot/cargo/tokio-1.38.1
...
build(deps): bump tokio from 1.38.0 to 1.38.1
2024-07-17 08:35:06 +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
dependabot[bot]
4412c2bdd1
build(deps): bump thiserror from 1.0.61 to 1.0.62 ( #366 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.61...1.0.62 )
---
updated-dependencies:
- dependency-name: thiserror
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-07-12 14:28:18 +02:00
Karolin Varner
ecc815dd8e
Merge pull request #363 from aparcar/regression-ci
...
Regression CI and fixup
2024-07-10 21:09:16 +02:00
Paul Spooren
b7d7c03e35
Merge branch 'main' into regression-ci
2024-07-10 20:06:33 +02:00
Paul Spooren
f6320c3c35
ci: fixup regression test
...
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-07-10 18:57:45 +02:00
Karolin Varner
19f7905bc9
Merge pull request #362 from rosenpass/dev/karo/libcrux_chacha20poly1305
...
feat: Experimental support for encryption using libcrux
2024-07-10 15:08:31 +02:00
Karolin Varner
9b5b7ee620
Merge pull request #338 from aparcar/no-unused
...
drop unused import of WG_B64_LEN
2024-07-10 15:04:35 +02:00
dependabot[bot]
4fdd271de7
build(deps): bump clap from 4.5.8 to 4.5.9 ( #365 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.5.8 to 4.5.9.
- [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/v4.5.8...v4.5.9 )
---
updated-dependencies:
- dependency-name: clap
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-07-10 14:17:45 +02:00
dependabot[bot]
860e65965a
build(deps): bump serde from 1.0.203 to 1.0.204 ( #364 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.203 to 1.0.204.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.203...v1.0.204 )
---
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-07-09 09:08:54 +02:00
Prabhpreet Dua
87144233da
Prettier
2024-07-08 13:54:26 +02:00
Prabhpreet Dua
d0a6e99a1f
feat: Regression CI based on misc/generate_configs.py
2024-07-08 13:54:26 +02:00
Paul Spooren
79b634fadf
drop unused import of WG_B64_LEN
...
This causes warnings
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-07-08 13:48:00 +02:00
Karolin Varner
99ac3c0902
feat: Experimental support for encryption using libcrux
...
Libcrux is a library for formally verified implementations of
cryptographic primitives. It uses multiple back ends; one of which is
libjade. A cryptographic library written in the jasmin assembly
language for high assurance cryptographic implementations.
To use compile with the experiment_libcrux feature enabled:
cargo build --features experiment_libcrux
2024-07-03 21:46:40 +02:00
dependabot[bot]
010c14dadf
build(deps): bump zerocopy from 0.7.34 to 0.7.35 ( #361 )
...
Bumps [zerocopy](https://github.com/google/zerocopy ) from 0.7.34 to 0.7.35.
- [Release notes](https://github.com/google/zerocopy/releases )
- [Changelog](https://github.com/google/zerocopy/blob/main/CHANGELOG.md )
- [Commits](https://github.com/google/zerocopy/commits )
---
updated-dependencies:
- dependency-name: zerocopy
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-07-03 11:08:42 +02:00