net/wireguard: Make client Public Key required field (#2174)

Recent experience is that adding a client without a public key will break WireGuard and all connecting clients.  I'm not sure if this is the best place to do the check, but seems to make sense to just require the public key when creating the client.
This commit is contained in:
ElJeffe 2021-01-28 16:22:02 -05:00 committed by GitHub
parent 8f660333d6
commit 54b26b562d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
<model>
<mount>//OPNsense/wireguard/client</mount>
<description>Wireguard Client configuration</description>
<version>0.0.5</version>
<version>0.0.6</version>
<items>
<clients>
<client type="ArrayField">
@ -14,7 +14,7 @@
<Required>Y</Required>
</name>
<pubkey type="Base64Field">
<Required>N</Required>
<Required>Y</Required>
<ValidationMessage>Should be a base64-encoded 32 byte string.</ValidationMessage>
</pubkey>
<psk type="Base64Field">