netbird/management/server
Bethuel Mmbaga a5811a2d7d
Implement experimental PostgreSQL store (#1939)
* migrate sqlite store to
 generic sql store

* fix conflicts

* init postgres store

* Add postgres store tests

* Refactor postgres store engine name

* fix tests

* Run postgres store tests on linux only

* fix tests

* Refactor

* cascade policy rules on policy deletion

* fix tests

* run postgres cases in new db

* close store connection after tests

* refactor

* using testcontainers

* sync go sum

* remove postgres service

* remove store cleanup

* go mod tidy

* remove env

* use postgres as engine and initialize test store with testcontainer

---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
2024-05-16 19:28:37 +03: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 Return system serial on a peer HTTP API call (#1929) 2024-05-06 14:49:03 +02:00
idp Fix function names in comments (#1816) 2024-04-09 13:18:38 +02:00
integrated_validator Feature/peer validator (#1553) 2024-03-27 18:48:48 +01: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 Refactor Route IDs (#1891) 2024-05-06 14:47:49 +02:00
migration Migrate blob net ip fields to json serializer (#1906) 2024-05-07 14:01:45 +03:00
mock_server Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
peer Migrate blob net ip fields to json serializer (#1906) 2024-05-07 14:01:45 +03:00
posture Rename PrivateNetworkCheck to PeerNetworkRangeCheck (#1629) 2024-02-27 11:59:48 +01:00
status Add account usage logic (#1567) 2024-02-22 12:27:08 +01:00
telemetry Implement lightweight method to check is peer has update channel (#1351) 2023-12-05 14:17:56 +01:00
testdata Remove usage stats (#1665) 2024-03-05 09:45:32 +01:00
account_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
account.go Remove GetNetworkMap stacktrace(#1941) 2024-05-07 19:19:30 +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 Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
group_test.go Feature/peer validator (#1553) 2024-03-27 18:48:48 +01:00
group.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
grpcserver.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
integrated_validator.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
management_proto_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03: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 Improve Sync performance (#1901) 2024-05-07 14:30:03 +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 Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00
route_test.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
route.go Improve Sync performance (#1901) 2024-05-07 14:30:03 +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 Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
sql_store.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +03:00
store_test.go Extend linter rules (#1300) 2023-11-10 16:33:13 +01:00
store.go Implement experimental PostgreSQL store (#1939) 2024-05-16 19:28:37 +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 Improve Sync performance (#1901) 2024-05-07 14:30:03 +02:00