netbird/management/server
Maycon Santos 381447b8d6
Fix store migration on empty string (#2149)
* Fix store migration on empty string

when fetching empty values from the database to check for migration our parser failed to handle null strings preventing the service from start

this uses sql.NullString to handle that and check for empty string resulted from null data

---------

Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com>
2024-06-18 15:39:54 +02:00
..
account Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
activity Use fixed activity codes (#1846) 2024-04-15 14:15:46 +02:00
geolocation Update the check interval for new geo db and change log level (#1908) 2024-04-30 17:54:29 +02:00
group Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
http Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
idp Add missing openid scope when requesting JWT token (#2089) 2024-06-04 10:46:24 +02:00
integrated_validator Extend integrated validator with error handling (#2044) 2024-05-24 13:29:25 +02:00
integration_reference Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
jwtclaims Redeem invite only when incoming user was invited (#1861) 2024-04-22 11:10:27 +02:00
metrics Prevent using expired ctx when sending metrics (#2088) 2024-06-03 12:41:15 +02:00
migration Fix store migration on empty string (#2149) 2024-06-18 15:39:54 +02:00
mock_server Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
peer Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
posture Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
status Improve login performance (#2061) 2024-05-31 16:41:12 +02:00
telemetry Upgrade gRPC and OpenTelemetry packages for compatibility (#2003) 2024-05-27 08:39:18 +02:00
testdata Remove usage stats (#1665) 2024-03-05 09:45:32 +01:00
testutil Upgrade gRPC and OpenTelemetry packages for compatibility (#2003) 2024-05-27 08:39:18 +02:00
account_test.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
account.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
config.go Expose trusted proxy list and counter configuration for realip middleware (#1535) 2024-02-08 14:40:40 +01:00
dns_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
dns.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
ephemeral_test.go extract peer into seperate package 2023-11-28 13:45:26 +01:00
ephemeral.go Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
event_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
event.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
file_store_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
file_store.go Improve login performance (#2061) 2024-05-31 16:41:12 +02:00
group_test.go Don't allow delete group from peer groups (#2055) 2024-05-27 11:06:43 +02:00
group.go Don't allow delete group from peer groups (#2055) 2024-05-27 11:06:43 +02:00
grpcserver.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
integrated_validator.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
management_proto_test.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
nameserver_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
nameserver.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
network_test.go Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
network.go Migrate serializer:gob fields to serializer:json (#1855) 2024-04-18 18:14:21 +02:00
peer_test.go Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
peer.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
personal_access_token_test.go move into separate package 2023-05-16 12:57:56 +02:00
personal_access_token.go Implement SQLite Store using gorm and relational approach (#1065) 2023-10-12 15:42:36 +02:00
policy_test.go Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
policy.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
posture_checks_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
posture_checks.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
route_test.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
route.go Release 0.28.0 (#2092) 2024-06-13 13:24:24 +02:00
scheduler_test.go Validate authentik issuer url (#1723) 2024-03-18 10:12:46 +01:00
scheduler.go Handle canceling schedule and avoid recursive call (#1636) 2024-03-03 10:35:01 +01:00
setupkey_test.go Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
setupkey.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
sql_store_test.go Fix store migration on empty string (#2149) 2024-06-18 15:39:54 +02:00
sql_store.go Deprecate FileStore engine support (#2119) 2024-06-13 13:39:19 +03:00
store_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
store.go Deprecate FileStore engine support (#2119) 2024-06-13 13:39:19 +03:00
turncredentials_test.go Add metrics for PeersUpdateManager (#1310) 2023-11-16 18:21:52 +01:00
turncredentials.go Reorder peer deletion when deleteing a user (#1191) 2023-10-03 16:46:58 +02:00
updatechannel_test.go Add metrics for PeersUpdateManager (#1310) 2023-11-16 18:21:52 +01:00
updatechannel.go Implement lightweight method to check is peer has update channel (#1351) 2023-12-05 14:17:56 +01:00
user_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
user.go Log global lock acquisition per user (#2039) 2024-05-23 17:09:58 +02:00