Hi guys,
we are using Openwisp to manage round about 70 APs in our company. The server uses wireguard in a special VLAN to talk to the APs after they got their initial config in the internal network.
Now we repeatedly running into the issue, that the wireguard keys generated by openwisp for the device keep getting changed after every network related configuration change, like assigning a wireless template to the device. Then it takes about 14 attempts for the AP to test the new configuration successfully. You can see in the device overview that the pvt_key and pub_key for the device are replaced. Sometimes also the IP-Address for the wg0 Interface. In comparison just changing the hostname of the device works flawlessly applying the configuration change at the first try.
In the past that sometimes lead to the problem, that after a firmware upgrade on an AP via openwisp while keeping the configuration or a configuration change, the AP never successfully connecting back to the server, because when the AP performing a rollback the keys don't match anymore.
When we were able to connect to the AP directly via SSH we can see, that the AP still had the same keys from before the update while openwisp showed a new pair of keys for that device.
Is that behavior expected, that the keys are getting changed? Is there a way to disable that?
Greetings from Germany
Florian