Skip to content

refactor(#289): connect_vpn sig and new VpnConfig trait#303

Merged
cachebag merged 1 commit intodev-openvpnfrom
vpn-config
Mar 19, 2026
Merged

refactor(#289): connect_vpn sig and new VpnConfig trait#303
cachebag merged 1 commit intodev-openvpnfrom
vpn-config

Conversation

@cachebag
Copy link
Owner

@cachebag cachebag commented Mar 19, 2026

This PR adds VpnConfig, introduces WireGuardConfig as the preferred WireGuard model, and deprecated VpnCredentials while keeping it compatible via VpnConfig plus conversion bridges in our vpn module.

NetworkManager::connect_vpn now accepts any C: VpnConfig + Into<VpnCredentials>
and the docs/examples were updated to use WireGuardConfig in the facade and lib. I also re-exported VpnConfig and WireGuardConfig from the crate root.

Also added coverage for the new type and trait compatibility in our models tests and suppressed internal deprecation noise only in legacy plumbing so downstream users still get the deprecation signal when they use VpnCredentials.

Closes #289

@cachebag cachebag self-assigned this Mar 19, 2026
@cachebag cachebag added nmrs Changes to nmrs refactor Change or improve code tests Add, remove or adjust tests vpn Changes to VPN surface labels Mar 19, 2026
@cachebag cachebag changed the base branch from master to dev-openvpn March 19, 2026 03:55
@cachebag cachebag merged commit dfab11a into dev-openvpn Mar 19, 2026
5 of 6 checks passed
@cachebag cachebag deleted the vpn-config branch March 19, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nmrs Changes to nmrs refactor Change or improve code tests Add, remove or adjust tests vpn Changes to VPN surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

introduce VpnConfig trait, refactor connect_vpn signature

1 participant