Commit graph

545 commits

Author SHA1 Message Date
0xdcarns 324d2ba70c moved telemetry check and generated comms CIDR better 2022-02-22 14:53:40 -05:00
0xdcarns 26c70bb2f1 changed logs and saved private key 2022-02-21 15:38:46 -05:00
0xdcarns 4f181a950c disallowed comms access to non admins 2022-02-21 09:42:39 -05:00
0xdcarns a2392721e9 removed filter 2022-02-21 09:05:41 -05:00
0xdcarns 595e00125b 1 2022-02-20 11:12:51 -05:00
0xdcarns 0325795bf2 created comms filter 2022-02-18 19:47:20 -05:00
0xdcarns 6028e1b6de added comms checks 2022-02-18 19:37:12 -05:00
0xdcarns 3c48db948b dissallowed comms network edits 2022-02-18 18:26:20 -05:00
0xdcarns d87b7002d5 added comms id field to nodes 2022-02-18 16:12:40 -05:00
0xdcarns 696fe7e373 fix test 2022-02-18 15:30:33 -05:00
afeiszli 1c06cfc8f7 modified getpeers for hub network 2022-02-18 11:43:49 -05:00
afeiszli f55eeedbb9 settings for comms network 2022-02-18 11:11:21 -05:00
afeiszli be1763bb74 removing old node logic 2022-02-18 10:15:21 -05:00
afeiszli 8cd19c20c6 removed unnecessary variables from network, added IsHubAndSpoke 2022-02-18 09:49:58 -05:00
0xdcarns 4607f2d8bb few more checks 2022-02-17 10:56:48 -05:00
0xdcarns 49e0545274 added force 2022-02-17 09:33:30 -05:00
0xdcarns 1e56ecfdb9 create fix 2022-02-17 09:27:32 -05:00
0xdcarns 506a897f26 added ack and done signals 2022-02-17 09:08:20 -05:00
0xdcarns bd8b66c169 refactored clients 2022-02-16 22:27:20 -05:00
0xdcarns 566a6df49a added run server update on grpc create 2022-02-16 21:33:10 -05:00
0xdcarns 43b6b8c6cb updated serverUpdate check 2022-02-16 21:10:02 -05:00
0xdcarns 922ebcb4ab refacted running node updates 2022-02-16 20:44:17 -05:00
Matthew R. Kasun f1b5518bf3 wip 2022-02-16 20:44:17 -05:00
0xdcarns 407e46c117 began servside refactor 2022-02-16 20:44:17 -05:00
0xdcarns fa1b3246fe added error catch on user token 2022-02-15 13:53:36 -05:00
0xdcarns 5c35ca433e edited run updates 2022-02-15 10:12:39 -05:00
0xdcarns 0a819624f1 fixed test based on new logic 2022-02-15 10:12:39 -05:00
0xdcarns 469618aa72 removed default master key and added warning log if not set 2022-02-15 10:12:37 -05:00
0xdcarns c238cf7f23 made use of string builder in logger 2022-02-15 10:11:24 -05:00
0xdcarns df292f2fc8 adjust test to new error msg 2022-02-08 11:05:22 -05:00
0xdcarns 456272d549 fixed issue with delete 2022-02-08 11:01:44 -05:00
0xdcarns 39cea2da6c refactored delete, pull nil pointer and logging 2022-02-08 10:43:46 -05:00
afeiszli 96535554f5 fixing mac stuff and dns testing 2022-02-07 11:38:47 -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
afeiszli 7c56420b9f backup logic for relay failing, dont allow server to be relayed 2022-02-06 11:36:38 -05:00
afeiszli bea7467210 fixing tests 2022-02-05 15:50:29 -05:00
afeiszli dd79186a81 changing validation 2022-02-05 15:50:29 -05:00
afeiszli 7bf864a387 fixing dns and various logs 2022-02-05 15:50:29 -05:00
0xdcarns c22f35f57f added better check 2022-02-05 13:26:12 -05:00
0xdcarns 3ea5e1b2d1 added check in run updates for mq 2022-02-05 13:22:13 -05:00
afeiszli 2cbf08ad1e adding logic for key checks, OS on server 2022-02-04 14:19:26 -05:00
dcarns 3248717585
Merge pull request #673 from gravitl/bugfix_v0.10.0_update_keys
Bugfix v0.10.0 update keys
2022-02-04 14:03:34 -05:00
Matthew R. Kasun c8fec5af80 fixed timing 2022-02-04 13:57:01 -05:00
Matthew R. Kasun c371d87eb3 fix return 2022-02-04 13:30:11 -05:00
Matthew R. Kasun 96caccc43e prevent publish to server node 2022-02-04 13:26:09 -05:00
Matthew R. Kasun 02b7025b28 added sleep 2022-02-04 13:11:11 -05:00
afeiszli 83c4f99192 set relayed nodes UDP to off and update them 2022-02-04 11:54:50 -05:00
Matthew R. Kasun f0037fb880 publish updates on key change from ui 2022-02-04 11:40:29 -05:00
afeiszli 9400209d97 adding OS and Version 2022-02-03 15:33:19 -05:00
0xdcarns 06e2603c20 added time to prevent UDP reset 2022-02-03 09:51:37 -05:00
afeiszli a693217feb switch for udp hole punch 2022-02-03 09:51:37 -05:00
afeiszli 239b9d36fc change queue identifier from server.ID to Network.NetID 2022-02-03 09:51:37 -05:00
0xdcarns f7258bf98f refactored some client leave & cache and server join logic 2022-02-03 09:51:37 -05:00
Matthew R Kasun fb8770dc59 fix delete node, publish message to node to be dleted before updating server peers 2022-02-03 05:13:26 -05:00
Matthew R Kasun 8522911524 check for unique mac address on node creation 2022-02-02 16:35:37 -05:00
afeiszli 80dfdaa8fb removing UUID gen from client side 2022-02-01 22:36:02 -05:00
afeiszli c8154ffa5d remove GetNodeByIDOrMacAddress 2022-02-01 21:50:11 -05:00
afeiszli 8c0341391c add logging to check for node publish 2022-02-01 11:31:19 -05:00
afeiszli c210a223ea set networkservers on network create 2022-02-01 10:08:44 -05:00
afeiszli a182d7f4ed modify syncservernetwork 2022-02-01 09:37:16 -05:00
afeiszli 1e5a0e9d04 fix server self updates 2022-01-31 23:18:58 -05:00
afeiszli 6bbe817e4b fix network sync 2022-01-31 22:56:07 -05:00
afeiszli 35884056b3 disable server deletion 2022-01-31 22:43:12 -05:00
afeiszli 973c5b052e change order of operations 2022-01-31 21:28:34 -05:00
afeiszli 6e292dd0fa fixing messages and keepalive 2022-01-31 17:30:56 -05:00
afeiszli 9721d91e49 set server addrs 2022-01-31 16:31:28 -05:00
afeiszli 9d2ae79fe2 fix iface issues on client and access key deletion 2022-01-31 16:25:29 -05:00
afeiszli 3964d927ea testing server update 2022-01-31 15:51:21 -05:00
0xdcarns d9c44035a7 fixed key bug 2022-01-31 14:46:49 -05:00
0xdcarns d5d442c75c removed go routines around mq 2022-01-31 14:09:23 -05:00
0xdcarns 3aaf83d04d sync conf 2022-01-31 11:25:05 -05:00
0xdcarns 4823566125 debug again 2022-01-31 11:20:59 -05:00
0xdcarns 36b319c772 debug 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 b91c90b106 changing peer set 2022-01-31 11:19:19 -05:00
afeiszli 3cc3cd9a0f fixing netclient pull to get server addresses 2022-01-31 11:19:17 -05:00
Matthew R Kasun c421c1410b save servAddr to database on join 2022-01-30 13:37:10 -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 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 ac632a75b7 refactored struct 2022-01-29 18:18:46 -05:00
0xdcarns 2b5c5afeb4 remove some logs 2022-01-29 18:18:46 -05:00
0xdcarns 50c95f66cb node debug 2022-01-29 18:18:46 -05:00
0xdcarns bb8d76a96e bug 2022-01-29 18:18:46 -05:00
0xdcarns 7be2b0e09d adjusted to byte buffer 2022-01-29 18:18:46 -05:00
0xdcarns b8a1522845 logs 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
0xdcarns cd4e2c57d6 added new struct and adapted to funcs 2022-01-29 18:15:52 -05:00
0xdcarns 0d3813295d server update 2022-01-29 18:15:52 -05:00
0xdcarns 26a0d8bdbe initial commit 2022-01-29 18:15:52 -05:00
Matthew R Kasun 513f85ede7 refactor server pings 2022-01-27 09:48:32 -05:00
Matthew R Kasun 76ae673363 Merge branch 'develop' into feature_v0.10.0_serverPings 2022-01-27 06:45:52 -05:00
dcarns 23e294d05f
Merge pull request #648 from gravitl/bugfix_v0.10.0_freebsd-gateways
fix for GRA-129 prevent freebsd from being a gateway
2022-01-26 14:40:28 -05:00
0xdcarns 27b29baf32 added new struct and adapted to funcs 2022-01-26 10:40:39 -05:00
Matthew R Kasun dd62e90924 fix for GRA-129 prevent freebsd from being a gateway 2022-01-26 09:04:30 -05:00
0xdcarns 424c801c6c server update 2022-01-25 23:04:03 -05:00
0xdcarns d6554ef081 initial commit 2022-01-25 22:14:31 -05:00
dcarns 59685731c1
Merge pull request #645 from gravitl/feature-messageQueue
Feature message queue
2022-01-25 19:25:38 -05:00
Matthew R Kasun 03d17a0520 addressing review comments 2022-01-25 18:15:27 -05:00
0xdcarns 7846420fa7 added timer hooks 2022-01-25 11:00:56 -05:00
Matthew R Kasun bc54bbf167 manual rebase to develop 2022-01-25 07:31:50 -05:00
Matthew R Kasun 77b765c8fd Merge branch 'develop' into feature-messageQueue 2022-01-24 17:24:37 -05:00
0xdcarns 0e83ba932c bug fixed 2022-01-24 15:16:29 -05:00
Matthew R Kasun d722218f32 publish Node and Peer updates in go routine to ensure UI responses are not delayed 2022-01-24 13:56:10 -05:00
Matthew R Kasun f54d0fd993 fix logic in call to UpdatePeers 2022-01-24 13:25:56 -05:00
Matthew R Kasun 0ced90ebd4 add conditional update of peers after a node update. 2022-01-24 11:42:21 -05:00
Matthew R Kasun c239ee3787 Merge branch 'develop' into feature-messageQueue 2022-01-24 06:21:21 -05:00
Matthew R Kasun 7ba07f8217 publish node update/peer update on gateway creation/deletion 2022-01-23 18:06:39 -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 60eab296fc publish node update when node deleted from UI 2022-01-22 14:35:48 -05:00
Matthew R Kasun fcc1259adf fix writes/updates to wg config files 2022-01-22 11:38:56 -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 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
afeiszli 4d2a85f879 adding telemetry 2022-01-20 17:50:42 -05:00
Matthew R Kasun d4399d1321 rebase fixes 2022-01-20 16:39:54 -05:00
Matthew R Kasun b15a5112fc fixes due to rebase 2022-01-20 15:41:06 -05:00
Matthew R Kasun eec491564b add logic to grpc leave handler to publish peer update message 2022-01-20 13:16:03 -05:00
Matthew R Kasun e7b9715cf7 fix publish peers 2022-01-20 13:14:59 -05:00
0xdcarns ef81763e30 misplaced variable 2022-01-20 13:00:04 -05:00
0xdcarns be093a951f added legacy check to maintain compatibility 2022-01-20 13:00:04 -05:00
0xdcarns 0f657b4378 adapted node routes further to new id 2022-01-20 12:59:31 -05:00
0xdcarns 66d6c71441 adjusting client join 2022-01-20 12:59:31 -05:00
0xdcarns 7a5bcb5a68 test adjust 2022-01-20 12:59:31 -05:00
0xdcarns 5b3917f357 continued. 2022-01-20 12:59:31 -05:00
0xdcarns 60dedc2616 continued. 2022-01-20 12:59:31 -05:00
0xdcarns 27100f5b52 continued. 2022-01-20 12:59:31 -05:00
0xdcarns edbce5547a test logic update 2022-01-20 12:59:31 -05:00
0xdcarns c6a2f2cb64 refactored all grpc to be uniform 2022-01-20 12:59:31 -05:00
0xdcarns df23b50165 refactored more 2022-01-20 12:59:31 -05:00
0xdcarns cd5bce8812 restructuring continued 2022-01-20 12:58:49 -05:00
Matthew R Kasun 09b9e658b9 add logic to grpc leave handler to publish peer update message 2022-01-20 12:53:14 -05:00
Matthew R Kasun 767abc7d5e fix publish peers 2022-01-20 12:53:13 -05:00
0xdcarns 2430eb0a47 prevent nodes from changing address out of range or to .0 or .255 addresses 2022-01-19 10:47:23 -05:00
0xdcarns 5c1300997c rough draft 2022-01-18 11:32:21 -05:00
0xdcarns 134a09670f refactor 2022-01-18 10:55:02 -05:00
0xdcarns cbe54ef2cf test 2022-01-18 10:14:27 -05:00
0xdcarns 0adaa40d2c changed to pass by value 2022-01-18 10:00:38 -05:00
0xdcarns aebe39e46b testing continued 2022-01-18 09:51:45 -05:00
0xdcarns b5423e3ece fixed log, added servernode check 2022-01-18 09:27:24 -05:00
0xdcarns b0bb4f4f67 tweak util 2022-01-18 09:19:47 -05:00
0xdcarns a5495300d0 added logs 2022-01-18 09:06:43 -05:00
0xdcarns 916866f73c began refactor 2022-01-17 18:35:16 -05:00
0xdcarns 6b6ce28b13 misplaced variable 2022-01-17 14:22:39 -05:00
0xdcarns 50016ed219 added legacy check to maintain compatibility 2022-01-17 14:22:39 -05:00
0xdcarns 0502ff131c adapted node routes further to new id 2022-01-17 14:21:40 -05:00