headscale/hscontrol/db
Kristoffer Dalby ddd31ba774 hscontrol: use Updates() instead of Save() for partial updates
Changed UpdateUser and re-registration flows to use Updates() which only
writes modified fields, preventing unintended overwrites of unchanged fields.

Also updated UsePreAuthKey to use Model().Update() for single field updates
and removed unused NodeSave wrapper.
2025-11-11 12:47:48 -06:00
..
sqliteconfig db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
testdata db: add defensive removal of old indicies 2025-11-10 20:07:29 +01:00
api_key.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
db.go db: add defensive removal of old indicies 2025-11-10 20:07:29 +01:00
db_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
ephemeral_garbage_collector_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
ip.go hscontrol/state,db: preserve node expiry on MapRequest updates 2025-11-11 12:47:48 -06:00
ip_test.go Redo route code (#2422) 2025-02-26 16:22:55 +01:00
node.go hscontrol: use Updates() instead of Save() for partial updates 2025-11-11 12:47:48 -06:00
node_test.go state: use AllApprovedRoutes instead of SubnetRoutes 2025-11-02 13:19:59 +01:00
policy.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
preauth_keys.go hscontrol: use Updates() instead of Save() for partial updates 2025-11-11 12:47:48 -06:00
preauth_keys_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
schema.sql db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
suite_test.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
text_serialiser.go Refactor to use reflect.TypeFor 2025-08-23 20:43:49 +02:00
user_update_test.go hscontrol: use Updates() instead of Save() for partial updates 2025-11-11 12:47:48 -06:00
users.go stricter hostname validation and replace (#2383) 2025-10-22 13:50:39 +02:00
users_test.go mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00