Skip to content

Upgrade wg nt#8

Closed
Hasan6979 wants to merge 38 commits intolibtelio-mainfrom
upgrade_wg_nt
Closed

Upgrade wg nt#8
Hasan6979 wants to merge 38 commits intolibtelio-mainfrom
upgrade_wg_nt

Conversation

@Hasan6979
Copy link
Copy Markdown

No description provided.

TroyNeubauer and others added 30 commits April 3, 2024 22:51
use x25519_dalek instead of boringtun
Co-authored-by: Travis Athougies <travis@athougies.net>
The address was not translated correctly from byte array into
Rust's Ipv6Addr. An IPv6 address when read from a continous byte array
as u16 words will contain numbers in big endian. In order to make
previous solution work one would need to call u16::from_be function to
convert them into target's endianness before pasing them into the
Ipv6Addr constructor. It's probably easier to just pass 16 elements long u8
array instead to avoid confusion.

For this fix I've also reverted two previous commits that have tried to
address this issue but unfortunately introduced another bug that was
just a cover up for the first one. We were doing incorrect translations
while setting and getting so in logs everything looked as expected, but
the value in wg interface itself was wrong.
The `WireGuardGetConfiguration` returns peers with a set of flags.
These flags contain the information if certain attributes like preshared key
are present for the peer. This commit implements proper flags check
before assinging attributes to the peer.

Signed-off-by: Mateusz Szczygieł <mateusz.szczygiel@nordsec.com>
This commit includes two changes:
 - adds last OS error to a few returned errors
 - replace `log` crate with `tracing`
matislovas and others added 8 commits August 11, 2025 18:15
It was reported as such by clippy CI job
Without this change, the clippy job fails due to insufficient access
right for the token. This is because the clippy-check wants to annotate
PRs with a comments for each error and this requires write permissions
for the repo.
@Hasan6979 Hasan6979 closed this Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants