Commit graph

378 commits

Author SHA1 Message Date
0xdcarns adf3967e0d handled forced deleted peer 2023-02-24 10:41:04 -05:00
0xdcarns 80fda83c0c adjusted peer updates to remove peers properly, slowed zombie check 2023-02-23 10:55:42 -05:00
Anish Mukherjee 5279900b7c add /mqtt for EMQX websocket listen endpoint 2023-02-22 20:37:08 +05:30
Anish Mukherjee c7a3306d3e refresh emqx admin user on server startup 2023-02-22 20:37:08 +05:30
Anish Mukherjee a33ac33462 wait for EMQX rest endpoint startup 2023-02-22 20:37:08 +05:30
Anish Mukherjee d2adf88b21 add emqx boilerplate 2023-02-22 20:37:08 +05:30
0xdcarns 16f2093004 added empty string to params 2023-02-21 11:17:48 -05:00
0xdcarns a1f5d73a58 added request ack 2023-02-17 11:39:30 -05:00
0xdcarns 6b30cef968 handled node additions in more elegant manner 2023-02-17 11:32:02 -05:00
dcarns 92dbfa52a5
Merge pull request #2001 from gravitl/gra-1088_dns_updates
Gra 1088 dns updates
2023-02-15 12:55:58 -05:00
Matthew R Kasun bd9cf14c02 Merge branch 'develop' into gra-1088_dns_updates 2023-02-15 06:42:09 -05:00
Matthew R Kasun c7c864b229 break into smaller funcs 2023-02-14 13:29:20 -05:00
0xdcarns 93473a4e70 updated node topic for publishing 2023-02-14 13:00:08 -05:00
Abhishek Kondur 7f9552b04d remove duplicate peer update 2023-02-13 21:48:16 +04:00
Matthew R Kasun 6e061c49d0 fix typo 2023-02-10 11:03:08 -05:00
Matthew R Kasun 7c1784e74f log message on succesful alldns publish 2023-02-10 10:58:06 -05:00
Matthew R Kasun c7338888e4 error handling 2023-02-10 06:58:00 -05:00
Matthew R Kasun 98e66b7292 include ipv6 for extclients 2023-02-09 11:20:50 -05:00
Matthew R Kasun 0b0db1c0e8 add network name to dns 2023-02-09 10:49:56 -05:00
Matthew R Kasun e0478b9b54 ensure network add to new extclient for dns update 2023-02-08 15:58:32 -05:00
Matthew R Kasun 574583b3b1 include network on extcient dns update 2023-02-08 13:50:34 -05:00
Matthew R Kasun d4cd24e778 extclient update 2023-02-08 11:32:28 -05:00
Matthew R Kasun 88358f517c include old/new ip in dnsupdate for node ip change 2023-02-08 10:33:27 -05:00
Matthew R Kasun 8d6728bc41 add network when publishing custom dns creation 2023-02-08 10:11:36 -05:00
dcarns d5c85b1d87
Merge pull request #2002 from gravitl/GRA-1011/remove_mq_dyn_sec
Gra 1011/remove mq dyn sec
2023-02-08 08:55:23 -05:00
Matthew R Kasun 322bdb0af8 update dns mq topics to have four fields 2023-02-08 08:35:36 -05:00
Matthew R Kasun e1f644a453 add server name to dns publish topics 2023-02-07 15:17:11 -05:00
Matthew R Kasun 488ada670c cleanup: function comments, etc 2023-02-07 15:17:11 -05:00
Matthew R Kasun 5cac655f04 publish dns update on host name change 2023-02-07 15:17:11 -05:00
Matthew R Kasun dbad8ac463 publish dns update on custom dns deletion 2023-02-07 15:17:11 -05:00
Matthew R Kasun 4f7c038702 publish dns update on custom dns creation 2023-02-07 15:17:11 -05:00
Matthew R Kasun 89136f4832 publish dns update on ext client deletion 2023-02-07 15:17:10 -05:00
Matthew R Kasun a24263281c publish dns update on node ip change 2023-02-07 15:17:10 -05:00
Matthew R Kasun af66356061 publish dns on node deletion 2023-02-07 15:17:10 -05:00
Matthew R Kasun a441e35a09 publish dns on node creation 2023-02-07 15:17:10 -05:00
Abhishek Kondur bd878f79c1 merge conflicts resolved 2023-02-07 14:24:39 +04:00
0xdcarns 7a2c225eb1 added mq and database connected funcs and endpoint 2023-02-06 12:09:21 -05:00
Matthew R Kasun aad4abc181 remove dependencies on netclient 2023-01-27 14:51:06 -05:00
dcarns 6e50011ceb
Merge pull request #1978 from gravitl/GRA-1060/bug_proxy_listen_port
Gra 1060/bug public listen port
2023-01-26 18:28:30 -05:00
Abhishek Kondur acbd0d6337 only print host id in log 2023-01-26 14:02:47 +04:00
Anish Mukherjee 1b43d6bf1c increase log verbosity for legacy nodes 2023-01-26 14:41:50 +05:30
dcarns a4e5f84be8
Merge pull request #1976 from gravitl/bugfix_v0.18_0_address_of_loop_vars
correct use: address of loop vars
2023-01-25 21:33:17 -05:00
Matthew R Kasun 73dfc6fe47 correct using address of loop vars 2023-01-25 13:21:18 -05:00
dcarns 5fb3ec7b79
Merge pull request #1970 from gravitl/static_check_addressing
addressed majority of static checks
2023-01-24 13:14:47 -05:00
0xdcarns 706bba0593 addressed majority of static checks 2023-01-24 11:20:06 -05:00
Abhishek Kondur 18ddb3d5ca update host name on join 2023-01-24 12:10:03 +04:00
dcarns 94108e0007
Merge pull request #1962 from gravitl/GRA-1024/mq_dyn_sec_refactor
Gra 1024/mq dyn sec refactor
2023-01-23 15:00:33 -05:00
Matthew R Kasun 9b072e1050 remove network capabilities from netmaker
remove NET_ADMIN, NET_RAW, SYS_MODULE capabilities from docker-compose
files
remove sysctls from dockerfiles
remove ManageIPTables and PortForwardServices from ServerConfig
remove functions related to removed attributes
2023-01-23 12:37:07 -05:00
Abhishek Kondur 41afd3cd4d rm comment 2023-01-23 15:11:34 +04:00
Matthew R Kasun 1a739e6660 log level changed for hostUpdate 2023-01-22 17:32:53 -05:00
Abhishek Kondur f301c287df add only generic role 2023-01-22 17:58:32 +04:00
Abhishek Kondur 20bad4e2ee remove unwanted roles 2023-01-22 16:27:04 +04:00
Abhishek Kondur c528110541 handle update host logic in mq handler 2023-01-20 06:19:33 -05:00
Abhishek Kondur 81e9febf2a rm mq dynamic security, add mq username,password to config 2023-01-19 23:11:28 +05:30
Abhishek Kondur be2a730a24 use existing func to parse host id from topic 2023-01-18 22:18:55 +05:30
Abhishek Kondur 9a9eaec3d4 fix topic parser for host ID 2023-01-18 22:15:20 +05:30
Abhishek Kondur fd9b924357 add host id role while modifying mq client to hole role list 2023-01-18 22:09:29 +05:30
Abhishek Kondur 10f724310c change public listen port field 2023-01-18 12:00:26 +05:30
Abhishek Kondur 83ea8778d6 Merge branch 'GRA-985/host_updates_logic' of https://github.com/gravitl/netmaker into GRA-985/host_delete_logic 2023-01-17 18:38:36 +05:30
Abhishek Kondur 2ea7f077f7 resolve merge conflicts 2023-01-17 18:37:58 +05:30
Abhishek Kondur 55731ae547 change topic for server host update 2023-01-17 18:36:03 +05:30
Abhishek Kondur 77deff063b handle host deletion in mq host updates 2023-01-17 15:27:20 +05:30
Abhishek Kondur a9d1df6022 typo in comment 2023-01-17 15:00:57 +05:30
Abhishek Kondur 7af389f5d1 handle update host logic in mq handler 2023-01-17 14:43:16 +05:30
Abhishek Kondur 652ef642bd add switch case statements to host updates mq handler 2023-01-17 14:37:12 +05:30
Abhishek Kondur cf0b54c1eb comments to add logic for host updates 2023-01-17 11:38:51 +05:30
Abhishek Kondur acceb6e370 mq handlers for host updates 2023-01-17 11:17:13 +05:30
Abhishek Kondur 522b37cea4 add required acls for host updates 2023-01-17 10:27:01 +05:30
0xdcarns e4d44b5fab ee update 2023-01-14 12:00:44 -05:00
Abhishek Kondur a24717cf2d merge conflicts resolved 2023-01-12 15:21:08 +05:30
Abhishek Kondur bf9a93c41b remove IsServer field from metric model 2023-01-12 14:50:04 +05:30
0xdcarns dc2c1e39c2 addressed comment 2023-01-11 11:51:32 -05:00
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