Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WireGuardPeer presharedkey field needs allow_empty property #541

Closed
jaredhendrickson13 opened this issue Aug 16, 2024 · 0 comments
Closed
Labels
bug Something isn't working v2 Issues or PRs that apply to v2

Comments

@jaredhendrickson13
Copy link
Owner

Describe the bug

The presharedkey field defaults to an empty string but the allow_empty property is not set. The allow_null property IS set but null values inherit the default value as designed.

To Reproduce

Make a POST request to /api/v2/vpn/wireguard/peer with presharedkey set to null or an empty string. You will get a 'value cannot be empty' error

Expected behavior

Empty strings should be allowed by the Model

Screenshots or Response
If applicable, add screenshots or response data to help explain your problem.

pfSense Version & Package Version:

  • pfSense Version: All
  • Package Version v2.0.3

Affected Endpoints:

  • URL: /api/v2/vpn/wireguard/peer

Additional context

Discussed in #534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2 Issues or PRs that apply to v2
Projects
None yet
Development

No branches or pull requests

1 participant