feat(preshared_key): increase post quantum robustness by providing a preshared key for wg connection#34
Merged
feat(preshared_key): increase post quantum robustness by providing a preshared key for wg connection#34
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances WireGuard security by implementing preshared keys for post-quantum robustness, expands status monitoring to include system load metrics, and updates project dependencies.
Changes:
- Implemented preshared key generation and configuration for WireGuard peers
- Extended status endpoint to report load averages (1, 5, 15 minutes) and processor count
- Updated Rust toolchain from 1.91 to 1.93 and dependencies (toml 0.8→0.9, nixfmt package)
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/wg/show.rs | Updated test data to include preshared keys and added assertions for preshared key validation |
| src/wg/set.rs | Modified add_peer to generate preshared keys, write them to temporary files, and return the key value |
| src/status.rs | Added load average and nproc metrics collection via /proc/loadavg and nproc command |
| src/register.rs | Updated registration flow to include preshared key in response |
| rust-toolchain.toml | Bumped Rust toolchain version to 1.93 |
| flake.nix | Updated Nix formatter package reference and reformatted attribute sets |
| Cargo.toml | Bumped version to 0.3.0 and updated toml dependency to 0.9 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(status): status check now returns load averages and nprocs alongside usage stats
chore(deps): update to latest tooling and deps