mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-03 11:18:38 -04:00
Update handlers across the API build the domain object from the request alone and let the manager preserve what must survive: secrets when the value is empty (reverse-proxy auth hashes, the provider api_key) and server-managed state (session keys). The agent-network provider handler briefly deviated by merging the request onto the stored row, giving operator-editable fields omit-preserves semantics no other endpoint has. Restore the fresh-object flow so a PUT replaces the provider's mutable state, and drop the omit-preserves claims from the request schema — they never matched the shipped behavior, since the nil-gates always ran against a zero-valued struct. The api_key keeps its documented omit-to-keep contract via the manager.