Skip to content

fix(WireGuardTunnel): adjust 'addresses' validation pre-condition timing #902#908

Merged
jaredhendrickson13 merged 1 commit into
masterfrom
next_patch
Jun 9, 2026
Merged

fix(WireGuardTunnel): adjust 'addresses' validation pre-condition timing #902#908
jaredhendrickson13 merged 1 commit into
masterfrom
next_patch

Conversation

@jaredhendrickson13

Copy link
Copy Markdown
Member

The previous fix did not address the outer nested model field validation, only the inner validation which rendered the fix unusable for many use cases. This commits introduces a new injection point to update() that allows us to apply pre-conditions before model validation, therefor allowing us to negate addresses before validation if an iface assignment exists. Fixes #902.

…ing #902

The previous fix did not address the outer nested model field validation, only the inner validation which rendered the fix unusable for many use cases. This commits introduces a new injection point to update() that allows us to apply pre-conditions before model validation, thefor allow us to negate addresses before validation if an iface assignment exists.
@jaredhendrickson13 jaredhendrickson13 merged commit 83ad58e into master Jun 9, 2026
14 checks passed
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.

PATCH /api/v2/vpn/wireguard/tunnel does not actually ignore the address parameter if the tunnel is assigned an interface

1 participant