Commit graph

306 commits

Author SHA1 Message Date
Matthew R. Kasun e5a59d7081 add bool to control update to node 2022-07-07 05:52:43 -04:00
0xdcarns c12748671d reduce number of peer updates sent 2022-07-06 10:06:39 -04:00
0xdcarns 47005b7ea4 removed useless continue 2022-07-05 20:19:19 -04:00
0xdcarns 5a8f3fcf21 added log if server doesn't update checkin 2022-07-05 20:18:22 -04:00
0xdcarns e2a5c3a678 better logging 2022-07-05 20:16:12 -04:00
0xdcarns 98efd67313 added log and sharpened up 2022-07-05 16:51:11 -04:00
0xdcarns 393102ad69 first connection established 2022-07-05 16:27:17 -04:00
0xdcarns adaf8f1ca6 initial changes to make cert <-> broker comms work 2022-07-05 15:04:45 -04:00
0xdcarns acf5efb69a added leader check 2022-07-01 10:25:00 -04:00
0xdcarns 60a1c00c99 added better checks for HA servers 2022-06-30 17:00:12 -04:00
Matthew R Kasun 66b2a28455 update server mq connection logic to match client 2022-06-24 19:58:16 +00:00
afeiszli 709ecd8cfe fixing ip check 2022-05-27 10:52:47 -04:00
Matthew R. Kasun 976ab07de1 use token.WaitTimeout() 2022-05-16 09:38:47 -04:00
0xdcarns 352f80ef4d handled sending peer update on client node update 2022-05-12 09:18:33 -04:00
Matthew R. Kasun 501108b53d Remove config.Server.Debug
no longer required with move to logger.Log and it's verbosity
capabilities
2022-05-09 09:49:17 -04:00
0xdcarns a6ee8101e6 small refactors 2022-04-25 19:28:56 -04:00
0xdcarns 773ad9b753 added initial notification to clients on server startup 2022-04-25 11:12:49 -04:00
Matthew R. Kasun 7152f6ccd4 remove references to grpc/comms net 2022-04-21 15:53:44 -04:00
Matthew R. Kasun 725037b794 send peer updates to all nodes including updated node 2022-04-21 14:32:12 -04:00
dcarns ff89e3a391
Merge pull request #980 from gravitl/feature_v0.12.2_version_update
update server version on start; update client version on ping
2022-03-28 20:01:18 -04:00
Matthew R. Kasun 52a14877ff update versions
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-03-28 17:26:03 -04:00
0xdcarns 7ca2c259ed added option to make iptables change 2022-03-28 10:36:23 -04:00
0xdcarns c6beec6bfd added a total peer update to ext client changes 2022-03-28 09:00:02 -04:00
afeiszli 0ab78e4db2 run iptables regularly 2022-03-21 11:52:00 -04:00
0xdcarns 8516524d02 sync hotfix 2022-02-22 16:14:23 -05:00
0xdcarns 324d2ba70c moved telemetry check and generated comms CIDR better 2022-02-22 14:53:40 -05:00
0xdcarns 6effabd061 log update 2022-02-21 16:08:25 -05:00
0xdcarns 779a566d5d log update 2022-02-21 16:08:01 -05:00
0xdcarns 3596754734 bug fixes 2022-02-21 09:31:31 -05:00
0xdcarns 086eb842be made node update with server more efficient 2022-02-20 09:38:28 -05:00
0xdcarns 506a897f26 added ack and done signals 2022-02-17 09:08:20 -05:00
0xdcarns 922ebcb4ab refacted running node updates 2022-02-16 20:44:17 -05:00
0xdcarns 407e46c117 began servside refactor 2022-02-16 20:44:17 -05:00
0xdcarns 867e253c3b refactored and cleaned up code, added peer update from clients 2022-02-16 20:44:15 -05:00
0xdcarns d9e6338912 added compatibility with 0.10.0 clients 2022-02-15 10:22:11 -05:00
0xdcarns 98609ac61e implmented chunking 2022-02-15 10:15:17 -05:00
0xdcarns 83250980eb initial chunk approach 2022-02-15 10:15:17 -05:00
0xdcarns b6e3afa174 revert 2022-02-15 10:11:24 -05:00
0xdcarns c238cf7f23 made use of string builder in logger 2022-02-15 10:11:24 -05:00
0xdcarns d42ec811b8 first draft of chunks 2022-02-15 10:11:23 -05:00
afeiszli c1274ed9e2 fixing counter for peer update 2022-02-08 21:49:47 -05:00
afeiszli d4b15f0a2d adding force peer push every 5 min 2022-02-08 21:34:38 -05:00
afeiszli d5bae019b3 cleaning logs, fixing mac apply 2022-02-08 20:54:02 -05:00
0xdcarns 732665c3d4 cleaned up daemon and server mq 2022-02-08 19:13:58 -05:00
Matthew R. Kasun 1cd25a996c add ids to mqtt 2022-02-08 15:05:37 -05:00
Matthew R. Kasun 7e2928ba84 publish individual server keepalive messages 2022-02-08 08:33:44 -05:00
0xdcarns 8533f456bd edited so that if certain error detected, restart daemon, log changes 2022-02-06 15:02:05 -05:00
afeiszli 7215fc539f ext client logic for peer updates 2022-02-06 13:27:24 -05:00
afeiszli f6b1711439 ext client logic for peer updates 2022-02-06 13:06:07 -05:00
dcarns 2ae4b1990a
Merge pull request #680 from gravitl/bugfix_v0.10.0_ping_and_retain_messages
Bugfix v0.10.0 ping and retain messages
2022-02-05 15:03:16 -05:00
0xdcarns c22f35f57f added better check 2022-02-05 13:26:12 -05:00
Matthew R. Kasun 6f0950792f set retained true on server publish and client ping server on checkin 2022-02-04 18:00:17 -05:00
afeiszli 239b9d36fc change queue identifier from server.ID to Network.NetID 2022-02-03 09:51:37 -05:00
afeiszli eeb658595b set server node checkin 2022-02-01 14:37:00 -05:00
afeiszli d64cc1f39e publish peers on every keepalive 2022-02-01 14:01:13 -05:00
afeiszli 8c0341391c add logging to check for node publish 2022-02-01 11:31:19 -05:00
afeiszli a182d7f4ed modify syncservernetwork 2022-02-01 09:37:16 -05:00
afeiszli 35884056b3 disable server deletion 2022-01-31 22:43:12 -05:00
afeiszli c6252764e8 fix peer sync 2022-01-31 17:13:19 -05:00
afeiszli 6f9f97e4b7 dont publish to updated node 2022-01-31 16:15:10 -05:00
0xdcarns feb34722c2 log level 2022-01-31 11:21:01 -05:00
0xdcarns 2a4a30f937 added debug stuff 2022-01-31 11:20:11 -05:00
0xdcarns d56bdc1ca1 peers try 2 2022-01-31 11:20:11 -05:00
0xdcarns 8da7d96a82 better checks 2022-01-31 11:20:10 -05:00
0xdcarns 4740551473 iface delta 2022-01-31 11:19:19 -05:00
0xdcarns be5fdc7fc6 changing peer set 2022-01-31 11:19:19 -05:00
0xdcarns b91c90b106 changing peer set 2022-01-31 11:19:19 -05:00
0xdcarns e027649725 added isserver check 2022-01-31 11:19:19 -05:00
afeiszli 3e130fe9f8 cleaning server side peer logic 2022-01-31 11:18:38 -05:00
0xdcarns ae4b1bee57 edited peer update 2022-01-31 11:18:38 -05:00
Matthew R Kasun c0a085a53f fix sending keepalives; fix where keepalive timestamps stored 2022-01-30 14:50:18 -05:00
Matthew R Kasun 7ac0bfd13a Merge remote-tracking branch 'origin/develop' into feature_v0.10.0_serverPings 2022-01-30 09:18:24 -05:00
0xdcarns 95b9444325 log cleanup 2022-01-29 18:18:46 -05:00
0xdcarns 410efbab50 switched to eliptical strategy 2022-01-29 18:18:46 -05:00
0xdcarns 2d703dce7c refactored continue 2022-01-29 18:18:46 -05:00
0xdcarns 3dadb8dcbf added e.. 2022-01-29 18:18:46 -05:00
0xdcarns aa22afeb95 tracking mod 2022-01-29 18:18:46 -05:00
0xdcarns 7070d16f71 adding a log 2022-01-29 18:18:46 -05:00
0xdcarns ac632a75b7 refactored struct 2022-01-29 18:18:46 -05:00
0xdcarns 3736c152c1 added log 2022-01-29 18:18:46 -05:00
0xdcarns db5fc322b8 remove db read 2022-01-29 18:18:46 -05:00
0xdcarns a058db2102 chunked 2022-01-29 18:18:46 -05:00
0xdcarns d27dee0691 debugging 2022-01-29 18:18:46 -05:00
0xdcarns 0015d6fdf8 added encryption/decryption strategy 2022-01-29 18:18:46 -05:00
Matthew R Kasun 4854cb2db9 fix typo 2022-01-27 15:52:31 -05:00
Matthew R Kasun 84d9faeb3f retries for connecting to broker 2022-01-27 15:46:45 -05:00
Matthew R Kasun 513f85ede7 refactor server pings 2022-01-27 09:48:32 -05:00
Matthew R Kasun d5b43e7444 added a debug log 2022-01-26 16:06:45 -05:00
Matthew R Kasun 9dedb479d1 publish server keepalive and skeleton client subscription handler 2022-01-26 13:42:52 -05:00
Matthew R Kasun 03d17a0520 addressing review comments 2022-01-25 18:15:27 -05:00
Matthew R Kasun 4b826e6de2 fix publish topic 2022-01-23 18:28:25 -05:00
Matthew R Kasun c1813c52e9 publish node update and peer update on ingress gateway creation 2022-01-22 15:34:01 -05:00
Matthew R Kasun 7e8bcd6923 remove / in topic name 2022-01-22 09:22:19 -05:00
Matthew R Kasun fdf52391c7 log message for debugging 2022-01-22 09:04:11 -05:00
Matthew R Kasun e164e6446f publish node update when UI updates a node 2022-01-21 17:22:56 -05:00
Matthew R Kasun 799f32c664 fix missing slash in msg topic; update handling of keyUpdates 2022-01-21 07:07:38 -05:00
Matthew R Kasun 2310977391 refactor to reduce number of types of message in message queue simplifying the subscribers and publishers 2022-01-21 05:19:17 -05:00
Matthew R Kasun ef32150cc5 added extclient peers and persitent keepalive 2022-01-20 12:53:14 -05:00
Matthew R Kasun 2ddf9e59b3 write node to database when localAddress update received. 2022-01-20 12:53:14 -05:00
Matthew R Kasun fc86015c29 calculate allowed ips 2022-01-20 12:53:13 -05:00
Matthew R Kasun 767abc7d5e fix publish peers 2022-01-20 12:53:13 -05:00
Matthew R Kasun a86b9bd380 moved peer determination to server 2022-01-20 12:52:49 -05:00
Matthew R Kasun d60ce26c9f fix off by one error in GetID 2022-01-20 12:52:49 -05:00
Matthew R Kasun ec486addf0 use uuid in message queue functions 2022-01-20 12:52:49 -05:00
Matthew R Kasun 90b468f9f9 WIP commit to enable rebasing to uuid feature 2022-01-20 12:52:49 -05:00
Matthew R Kasun 3e016ef8b5 WIP commit 2022-01-20 12:50:00 -05:00