Commit graph

306 commits

Author SHA1 Message Date
0xdcarns 2fa2d50b8f added ability for server to receive and publish host model updates via MQ 2023-01-11 10:33:43 -05:00
Abhishek Kondur 82f0afe9d7 rm proxy metrics field 2023-01-11 11:08:55 +05:30
Abhishek Kondur b52a47d8aa use new node model on mq update node handler 2023-01-10 21:43:22 +05:30
Abhishek Kondur 599656618d func comments,rm old proxy code 2023-01-10 19:52:54 +05:30
Abhishek Kondur 9b1d8b1d89 remove parameters from mq peer msg 2023-01-10 10:49:15 +05:30
Abhishek Kondur 3e2d22a16b add proxy action to peer update 2023-01-09 09:11:39 +05:30
Abhishek Kondur 893f13d8b4 proxy update json marshal fix 2023-01-09 08:12:26 +05:30
Abhishek Kondur 95b578455d proxy updates refactor changes 2023-01-08 18:50:02 +05:30
Abhishek Kondur 023f29ee71 pr comments 2023-01-06 21:27:40 +05:30
Abhishek Kondur 2e7f9524e3 rm unwanted acl 2023-01-06 19:03:08 +05:30
Abhishek Kondur 68ed1b8b33 periodic host updates 2023-01-06 17:52:17 +05:30
Abhishek Kondur ca3d9dc40b fix node update 2023-01-06 16:58:41 +05:30
Abhishek Kondur 9f0ef1628c node update fix, nil pointer errors fix 2023-01-06 00:29:55 +05:30
Abhishek Kondur 72e4b914b9 move peers to host level 2023-01-05 09:24:46 +05:30
Abhishek Kondur 21133bca7d host based updates 2023-01-04 20:02:02 +05:30
Abhishek Kondur 88902f7823 fix host peer update model,add server name to peer update topic 2023-01-04 11:03:13 +05:30
Abhishek Kondur f789e92023 delete host role when client is delete 2023-01-04 10:07:29 +05:30
Abhishek Kondur 4c0866723f add new host role with acls 2023-01-04 10:05:05 +05:30
0xdcarns 8c92308ccf made mq functions a little easier to read and re-use 2022-12-28 12:10:03 -05:00
Abhishek Kondur 2cb3ee65af change proxy models reference paths 2022-12-27 21:56:55 +05:30
Matthew R. Kasun eae92470c5 refactor of peerUpdate
contains some debugging logging
2022-12-23 13:41:17 -05:00
Matthew R. Kasun bce2f8a45c fix compile errors 2022-12-22 06:42:33 -05:00
Matthew R. Kasun 38cd4d7700 refactor join
also removes server node
suspect there may be issues with proxy
and UI interactions with nodes
2022-12-20 15:29:09 -05:00
Matthew R. Kasun c086e9499d rebase
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
Matthew R Kasun 55f7a0eb02
Merge pull request #1828 from gravitl/story/GRA-752
fix(GRA-752f): add address string to be sent to frontend
2022-12-16 07:42:07 -05:00
Aceix 457060d41a fix(GRA-752f): add address string to be sent to frontend 2022-12-14 11:39:33 +00:00
Abhishek Kondur 792dc686d9 check if proxy is enabled 2022-12-13 10:45:57 +05:30
Abhishek Kondur 8cf3144013 publish proxy for ext peers 2022-12-13 10:44:28 +05:30
Abhishek Kondur e00199a650 update proxy pkg path 2022-12-09 00:54:11 +05:30
Abhishek Kondur 7f5e1a141f store proxy metrics in the server 2022-12-08 14:20:50 +05:30
Abhishek Kondur 80c7d46ec6 docker compose update, add stun to caddyfile 2022-12-06 19:27:38 +05:30
Abhishek Kondur 4b1a85a3ee proxy changes 2022-12-02 17:35:41 +05:30
Abhishek Kondur 5b7ead91e6 merge conflicts resolved 2022-12-02 10:08:01 +05:30
Matthew R. Kasun c5919b347c local interfaces 2022-11-28 12:58:24 -05:00
Abhishek Kondur 972ded5a2d change listen port to proxy on ext client creation if proxy used on ingress GW 2022-11-27 22:22:54 +05:30
Abhishek Kondur 40a9ae0e76 return after pushing proxy updateto server 2022-11-20 15:10:20 +05:30
Abhishek Kondur f95306ddbd make proxy optional 2022-11-20 09:35:29 +05:30
Abhishek Kondur c54080e150 fix relay updates for proxy 2022-11-18 10:48:28 +05:30
Abhishek Kondur a7c0abe2fc refactor proxy updates 2022-11-07 01:25:04 +05:30
Abhishek Kondur acae6c3aed added relay functionality to proxy 2022-11-04 01:24:48 +05:30
Abhishek Kondur 17e05d430b sync peers updates with proxy 2022-11-02 15:33:42 +05:30
Abhishek Kondur 474bd14e36 configure proxy on node updates 2022-10-31 10:32:04 +05:30
Abhishek Kondur 6b8d633386 use local variable for mq configuration 2022-10-21 13:31:42 +05:30
Abhishek Kondur 9eed7d50a1 check for umarshal errors 2022-10-21 13:24:22 +05:30
Abhishek Kondur 4647b64b05 added log stmt 2022-10-21 13:07:14 +05:30
Abhishek Kondur 8235ae2e6b add exporter client if not present 2022-10-21 13:03:28 +05:30
Abhishek Kondur 33ac0bfdb9 keep the passwords in sync 2022-10-21 12:10:12 +05:30
0xdcarns 90451adf9e adjusted check further 2022-10-17 11:16:44 -04:00
0xdcarns e6d956c8a5 adjusted check for clients on non servers 2022-10-14 12:15:01 -04:00
Alex Feiszli 4a9e5580fa
Merge pull request #1651 from gravitl/feature_v0.16.2_client_metrics
Feature v0.16.2 client metrics
2022-10-14 09:43:13 -04:00
0xdcarns 3b1ff49344 added better handling of wg ifaces on windows + fix connect issue 2022-10-13 11:30:21 -04:00
0xdcarns 13c3b564a1 rough draft 2022-10-11 15:30:55 -04:00
0xdcarns b7a24b98ba added controller for ext client metrics and logic for ingress server 2022-10-11 14:13:17 -04:00
Abhishek Kondur acd7a70b77 PR comments resolved 2022-10-01 06:27:30 +05:30
Abhishek Kondur 5dd5b73607 added comment 2022-09-30 21:09:45 +05:30
Abhishek Kondur 4678332e3a make node acls generic 2022-09-30 20:59:03 +05:30
Abhishek Kondur 1827f8c3b5 merge conflicts resolved 2022-09-30 20:15:17 +05:30
Abhishek Kondur f0a3e2c4ce change node acls to be more generic 2022-09-30 19:55:18 +05:30
Abhishek Kondur 0df6d1761e add subscription pattern to acls,fix NaN value in metrics for uptime,get real iface name for mac 2022-09-30 18:31:57 +05:30
afeiszli c8672818fe adding resets and single peer update on metrics disconnect detections 2022-09-29 14:49:44 -04:00
Abhishek Kondur 677d9fcc8d added comments 2022-09-29 23:59:18 +05:30
Abhishek Kondur b2df99e2c0 check if EE to configure exporter for MQ 2022-09-29 23:29:24 +05:30
Abhishek Kondur a95468111d added roles,acls for clients 2022-09-29 22:54:41 +05:30
0xdcarns f2606dd3cb addressed PR comments 2022-09-29 09:49:06 -04:00
0xdcarns e5ffe3114d added additional failover qualifieers 2022-09-28 16:50:57 -04:00
0xdcarns b6d18f86a3 changed should peer update logic on metrics and fixed ee ref 2022-09-28 16:31:46 -04:00
0xdcarns eb75a6829c added wipe failover cases and ceased node update on metrics update 2022-09-28 16:17:49 -04:00
0xdcarns 40f7036093 fixed first two issues 2022-09-28 15:22:12 -04:00
0xdcarns b95f3eb846 initial PoC completed 2022-09-28 14:59:21 -04:00
0xdcarns 75fc15ac4c commented out logic 2022-09-28 13:05:41 -04:00
Abhishek Kondur fed66c4b8d json tag fix,create client with password before hashing 2022-09-28 17:58:43 +05:30
afeiszli 78bacce528 add ability to reset failover 2022-09-27 14:42:14 -04:00
afeiszli 29ce2fa57a refactor failover logic to set per-peer. Uses Ingress Gateway logic instead of Relay logic 2022-09-27 13:59:49 -04:00
0xdcarns d565dbeaf8 initial logic for failover 2022-09-27 10:30:01 -04:00
Abhishek Kondur 878430bf75 create client for nodes on authenticate,generate dyn sec file on startup 2022-09-27 17:36:33 +05:30
Abhishek Kondur 3d5eac6905 rm channel 2022-09-26 21:55:24 +05:30
Abhishek Kondur faf7addcf5 Merge branch 'bugfix_v0.16.1_ee_checks' of https://github.com/gravitl/netmaker into feature_dyn_sec_latest 2022-09-26 18:09:34 +05:30
Abhishek Kondur f632bec11d merge conflicts resolved 2022-09-26 17:47:20 +05:30
Abhishek Kondur 698a4be861 configure mq on startup 2022-09-26 16:57:10 +05:30
Matthew R. Kasun 5f7d6ea1ef logic.Is_EE --> systemcfg.Is_EE 2022-09-25 07:11:26 -04:00
Abhishek Kondur bcaf009cd7 disconnect mq conn after updating admin password 2022-09-16 15:53:31 +05:30
Abhishek Kondur 1b4128bf69 configure mq to update admin password 2022-09-16 15:40:42 +05:30
Abhishek Kondur 2eb5cde6ab dyn sec netclient changes 2022-09-16 11:35:28 +05:30
0xdcarns b1b497faa4 PR comments addressed 2022-09-15 10:23:19 -04:00
Abhishek Kondur 7db3bd3aca comment certs code for mq 2022-09-15 09:23:33 +05:30
afeiszli b670755cce refactoring for ee 2022-09-14 13:26:31 -04:00
Abhishek Kondur 5270c1ede8 watch dynsec messages,create client on node join 2022-09-14 15:59:22 +05:30
afeiszli e637c3d550 dont publish server metrics 2022-09-13 16:35:14 -04:00
0xdcarns 88cd0a6497 initial commit 2022-09-13 15:25:56 -04:00
Abhishek Kondur 08a6ed483c dynsec intial code 2022-09-13 23:33:39 +05:30
Matthew R. Kasun 84e58d0d5a send connected status on checkin 2022-09-08 06:19:10 -04:00
Alex Feiszli 1f7a587d3e
Merge pull request #1510 from gravitl/feature_v0.15.1_accesskeysisolation
Feature v0.15.1 accesskeysisolation
2022-09-02 14:35:53 -04:00
cameronts 53385eb100 Updated per commit comments. 2022-09-02 07:29:29 -07:00
cameronts 59351b1e00 Access key blanking for calls that the client uses. 2022-09-02 04:40:14 -07:00
Matthew R. Kasun c9037db19f remove debugging logs 2022-08-29 14:29:28 -04:00
Matthew R. Kasun 49c6380643 reuse mq connections 2022-08-29 14:08:01 -04:00
Matthew R. Kasun 104a715ec5 update lastcheckin in addition to lastmodified on node update 2022-08-18 08:14:37 -04:00
0xdcarns bda4268fc8 changed to always update server check-in times even when not leader 2022-07-15 08:55:01 -04:00
Abhishek Kondur 8e70a254fb GRA-414: check for empty records 2022-07-13 15:24:11 +04:00
0xdcarns edcbc912a0 added option for insecure mqtt connections 2022-07-07 15:38:13 -04:00
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