Commit graph

1058 commits

Author SHA1 Message Date
Christopher Blaha ac4515c38a logging 2022-07-22 15:51:22 -04:00
dcarns da89e14de3
Merge pull request #1407 from XGFan/patch-1
fix ipv6 in no-wg-quick
2022-07-22 08:59:07 -04:00
XGFan cdb92bf469
fix ipv6 in no-wg-quick 2022-07-21 21:27:44 +08:00
Matthew R. Kasun 3a9f75cc83 lockfile path 2022-07-20 12:51:38 -04:00
Matthew R. Kasun 0ac12e9eb3 lockfile path:w 2022-07-19 15:36:53 -04:00
Matthew R. Kasun 7169c232ed add lockfile to prevent corruption of /etc/hosts 2022-07-19 15:12:45 -04:00
Matthew R. Kasun 0c3a5b7767 code review changes 2022-07-18 16:07:36 -04:00
Matthew R. Kasun cac9d481f8 return after windows restart 2022-07-18 16:07:36 -04:00
Matthew R. Kasun df0e882a7e updated logic for join/leave network 2022-07-18 16:07:36 -04:00
Matthew R. Kasun aa9be268f3 fetch networks for checkin 2022-07-18 16:07:36 -04:00
Matthew R. Kasun cdc7ec7495 remove debugging logs 2022-07-18 16:07:36 -04:00
Matthew R. Kasun e202dc3a44 debugging logs 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 9f2181294e revert to old way for windows 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 4376093fa6 pidfile location windows 2022-07-18 16:07:36 -04:00
Matthew R. Kasun b2131d6d8b eliminate unused var staticcheck 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 23c3b0c276 fix waitgroup 2022-07-18 16:07:36 -04:00
Matthew R. Kasun 1fa4becb48 use SIGHUP to restart daemon 2022-07-18 16:07:36 -04:00
Abhishek Kondur 8ceab029bb GRA-414: add verbose level 4 support to netclient 2022-07-18 16:07:36 -04:00
0xdcarns cadb466d19 fixed missing comma 2022-07-18 16:07:36 -04:00
Matthew R. Kasun c7151f0b01 update logic for determing when to check for free port 2022-07-18 16:07:36 -04:00
0xdcarns 70aa4d717f fixed missing comma 2022-07-11 11:59:05 -04:00
Matthew R. Kasun 7bfbf06eb5 update logic for determing when to check for free port 2022-07-11 08:15:46 -04:00
Matthew R. Kasun b6df54482b refactor client mq connection logic2 2022-07-08 10:22:23 -04:00
Matthew R. Kasun bda6f4e2c6 refactor client mq connection logic 2022-07-08 09:46:21 -04:00
afeiszli 2500331024 mod log 2022-07-07 16:16:56 -04:00
0xdcarns 7cc66870e2 merge fix 2022-07-07 13:40:07 -04:00
0xdcarns 5631f30e50 changed requiredversion to requiredversions 2022-07-07 13:36:14 -04:00
Matthew R. Kasun dcc637e98a add log on completion of update
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-07-07 13:27:08 -04:00
Matthew R. Kasun f59a3c860e support upgrades from multiple version 2022-07-07 13:27:08 -04:00
0xdcarns 6d125eb2fa added upgrade func list 2022-07-07 13:17:08 -04:00
Matthew R. Kasun ab9f0f05e0 client infrastructure to support updates 2022-07-07 13:17:08 -04:00
dcarns ef82ac4af5
Merge pull request #1296 from gravitl/feature_v0.14.5_longer_client_peer_cache
changed client message cache to a day
2022-07-07 13:16:09 -04:00
0xdcarns 52b876b333 moved log to reflect when message is actually consumed 2022-07-07 12:54:21 -04:00
Alex Feiszli 1fcf7023da
Merge pull request #1309 from gravitl/hotfix_v0.14.4_macos
changes for macos installer
2022-07-07 11:38:00 -04:00
dcarns 07729b56f9
Merge pull request #1316 from gravitl/bugfix_v0.14.5_wg_ports
Bugfix v0.14.5 wg ports
2022-07-07 11:29:45 -04:00
0xdcarns 3a74170ab2 added v0.14.5 and removed MQ_SERVER_PORT 2022-07-07 10:23:07 -04:00
0xdcarns 27dbfc867c added node name to logs 2022-07-07 09:58:52 -04:00
0xdcarns 5fc73e6a80 added inform port change util func 2022-07-07 09:52:20 -04:00
Matthew R. Kasun c481f27200 moved checks around 2022-07-06 16:13:51 -04:00
afeiszli c06c7868c0 moving port check logic 2022-07-06 15:20:28 -04:00
afeiszli 35f4bbf808 comment for whitespace placeholder 2022-07-06 13:32:32 -04:00
afeiszli c99e6bf75a changes for macos installer 2022-07-06 13:26:11 -04:00
Matthew R. Kasun a17173fa0f add timeout for http requests 2022-07-06 09:32:00 -04:00
0xdcarns 8da999f21d changed client message cache to a day 2022-07-05 20:22:34 -04:00
afeiszli f28d361bea refactoring cert logic to use database 2022-06-30 22:30:28 -04:00
afeiszli b281047168 adding functions to handle certs in DB 2022-06-30 21:56:11 -04:00
Matthew R. Kasun 34f6a404e2 update version numbers to 14.4
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-06-28 09:58:40 -04:00
Matthew R. Kasun 0410e1d4fb install command 2022-06-23 14:06:26 -04:00
Matthew R. Kasun 806af380a3 remove peers from interface addresses 2022-06-22 14:48:40 -04:00
Matthew R. Kasun c8ec46391d refactor logic for client.key generation 2022-06-22 09:55:10 -04:00
Matthew R Kasun 5aa2c16df1 refactored logic for Hub change 2022-06-21 15:19:54 +00:00
Matthew R. Kasun 4bc04d5922 updated join logic
if join fails, don't try to leave as authentication will fail --- just
    wipe
2022-06-20 10:37:31 -04:00
0xdcarns b98cbcf602 removed deprecated references and fixed static checks 2022-06-17 09:35:08 -04:00
Matthew R. Kasun 932eba8d21 fix statticcheck errors 2022-06-16 15:42:32 -04:00
dcarns d709a04e4f
Merge pull request #1208 from gravitl/feature_v0.14.3_versioning
versioning
2022-06-15 15:11:20 -04:00
afeiszli d3a6faa90d updating route setting logic 2022-06-15 11:18:49 -04:00
afeiszli 40009d946b versioning 2022-06-14 13:24:26 -04:00
Matthew R. Kasun afe12b277d force lowercase for /etc/hosts profile names
to test:
create newtwork with Upper case name
check profile in /etc/hosts is created with all lowercase
2022-06-06 13:01:51 -04:00
guppy0130 5ca5710f61
typo fixup, resolves #1181
* fixes a typo
2022-06-03 22:57:09 -07:00
afeiszli 74fa228784 adding versions 2022-06-01 17:09:45 -04:00
Matthew R Kasun def0c574f2
Merge pull request #1159 from gravitl/bugfix_v0.14.2_peer_logic
Bugfix v0.14.2 peer logic
2022-06-01 10:35:31 -04:00
afeiszli 9d78624edc fixing relay logic 2022-06-01 10:17:46 -04:00
Matthew R. Kasun 9578b72d5e remove publish prior to registration with server 2022-06-01 08:00:22 -04:00
afeiszli 5bfbe2b81d fix test 2022-05-31 14:15:51 -04:00
afeiszli 716c717265 fix freebsd build 2022-05-31 13:49:27 -04:00
afeiszli 8d422526b3 refactoring servercfg 2022-05-31 12:07:56 -04:00
afeiszli c0070a1bd2 fixing gui logic 2022-05-31 08:44:36 -04:00
afeiszli e4189ad8bd refactoring serverinfo logic 2022-05-31 08:42:12 -04:00
afeiszli 46b2cfef1c removing port fallback 2022-05-30 12:56:58 -04:00
afeiszli bad2a0faea moving around some logic 2022-05-30 12:54:30 -04:00
afeiszli 0865a535c7 changing broker retrieval/setting logic 2022-05-30 12:39:33 -04:00
Matthew R. Kasun 85ad06941d use interface as hostctl profile 2022-05-27 09:45:52 -04:00
Matthew R. Kasun 62b8b9bb8e update routes to use iplib 2022-05-26 17:39:18 -04:00
Matthew R. Kasun 28a6ea85cb remove debug logs 2022-05-25 17:50:13 -04:00
Matthew R. Kasun fef31752bd send server version in peer update message 2022-05-25 15:21:22 -04:00
Matthew R. Kasun 0764632b30 add : in server connection string 2022-05-25 11:37:55 -04:00
Matthew R. Kasun 53b3e7f415 configurable mq ports 2022-05-25 10:31:44 -04:00
Alex Feiszli e6e686b8b6
Merge pull request #1130 from gravitl/bugfix_v0.14.1_slash
remove slash
2022-05-24 16:42:48 -04:00
afeiszli 556b7499dd remove slash 2022-05-24 16:31:18 -04:00
0xdcarns 553b03c1b4 made daemon only get networks once 2022-05-24 14:19:47 -04:00
0xdcarns 5a3b6141bd added mutex lock for conf writes 2022-05-24 13:42:06 -04:00
0xdcarns 3c415c19cc win manifest version update 2022-05-24 13:16:28 -04:00
0xdcarns f64983eda1 updated compose, bug report, and README.md versions 2022-05-24 13:12:44 -04:00
0xdcarns bf4fdd94ac removed unnecessary loop from daemon start 2022-05-24 09:38:27 -04:00
Matthew R Kasun 2a35ef39a6 fix startup 2022-05-23 16:10:02 -04:00
dcarns c3989fc6f1
Merge pull request #1116 from gravitl/bugfix_v0.14.1_node_health_gui
handled checkin time comparison for health better
2022-05-23 11:17:24 -04:00
afeiszli da774f7679 removing legacy DNS logic 2022-05-23 10:02:47 -04:00
0xdcarns aed80d0886 handled checkin time comparison for health better 2022-05-23 10:02:28 -04:00
Alex Feiszli f2ca830106
Merge pull request #1108 from gravitl/bugfix_v0.14.1_ports
isStatic now only represents whether the Endpoint var is static
2022-05-22 14:33:08 -04:00
afeiszli 1af535046c isStatic now only represents whether the Endpoint var is static 2022-05-20 11:19:55 -04:00
dcarns dcc1216139
Merge pull request #1107 from gravitl/refactor_0.14.1_setupMQTT
check broker connectivity on mqtt setup
2022-05-20 11:13:23 -04:00
Matthew R Kasun 05e0531167
Merge pull request #1106 from gravitl/bugfix_v0.14.1_unnecessary_chk
removed unnecessary check for network in join command
2022-05-20 11:02:53 -04:00
Matthew R. Kasun a1fd52d7d5 check broker connectivity on mqtt setup 2022-05-20 10:50:23 -04:00
dcarns d4bd11ec32
Merge pull request #1105 from gravitl/bugfix_v0.14.1_ports
fixing logic for port setting
2022-05-20 10:21:31 -04:00
0xdcarns d43cfc727e removed unnecessary check for network in join command 2022-05-20 09:09:56 -04:00
afeiszli 91fe618fae log 2022-05-20 09:06:12 -04:00
afeiszli 92f243a1ba fixing logic for port setting 2022-05-20 08:38:32 -04:00
dcarns 9e741905e9
Merge pull request #1103 from gravitl/bugfix_v0.14.1_broker_timeout_checks
add checks/logs on broker connect timeout
2022-05-19 17:16:30 -04:00
afeiszli a73e53ee31 adding check for AllowedIP length 2022-05-19 16:04:47 -04:00
Matthew R. Kasun 5b2013eda4 move logging to checkBroker function 2022-05-19 15:51:06 -04:00
Matthew R. Kasun 9a9f1b973e add checks/logs on broker connect timeout 2022-05-19 10:44:28 -04:00
dcarns 9072da4514
Merge pull request #1091 from gravitl/feature_v0.14.0_windows_msi_refactor
removing windows installer portions
2022-05-16 13:01:18 -04:00
Matthew R. Kasun 976ab07de1 use token.WaitTimeout() 2022-05-16 09:38:47 -04:00
Matthew R. Kasun f440b5cc07 remove dns entries in /etc/hosts on leave/uninstall 2022-05-16 07:23:44 -04:00
afeiszli bc1eb17bad removing windows installer portions 2022-05-15 20:26:38 -04:00
dcarns d2d8f47346
Merge pull request #1086 from gravitl/feature_v0.14.0_optional_daemon
made daemon install optional and changed mac logging path
2022-05-13 09:41:26 -04:00
0xdcarns 3e0094e822 made daemon install optional and changed mac logging path 2022-05-13 09:35:00 -04:00
Matthew R. Kasun c8ec507484 add timeout to http.get 2022-05-13 06:04:27 -04:00
afeiszli d63bae351d fixing rangeupdate for ipv6, setting ipv4 assignment 2022-05-12 19:35:46 -04:00
dcarns 792c04e972
Merge pull request #1069 from gravitl/feature_v0.14.0_nc_gui
Feature v0.14.0 nc gui
2022-05-11 16:26:17 -04:00
0xdcarns 90ca33db6e peers nil check 2022-05-11 12:09:52 -04:00
0xdcarns 2de7beb31e added nil checks, handled empty map 2022-05-11 12:07:06 -04:00
0xdcarns e7f9310b3d added length checks as temp solution 2022-05-10 15:18:29 -04:00
0xdcarns 1d907af34b disabled entries 2022-05-10 09:27:22 -04:00
0xdcarns a0601bef61 updated peer listing 2022-05-10 09:27:22 -04:00
0xdcarns bf24486c7f fixed peers view 2022-05-10 09:27:22 -04:00
afeiszli 14b1f561b1 updating netclient.exe for new gui 2022-05-10 09:27:22 -04:00
0xdcarns d6c597e2ee remove dumme data 2022-05-10 09:27:22 -04:00
0xdcarns a36a20fa4c messed with sizing 2022-05-10 09:26:54 -04:00
0xdcarns ec2d825629 window size update 2022-05-10 09:26:54 -04:00
0xdcarns a9df48b001 fixed notification renders 2022-05-10 09:26:54 -04:00
0xdcarns 73991ce3a2 fix size 2022-05-10 09:26:54 -04:00
0xdcarns 0937f416ba added panic catch for gui 2022-05-10 09:26:54 -04:00
0xdcarns 59847f4522 added version and close button 2022-05-10 09:26:54 -04:00
0xdcarns ca443f18ef added panic check for gui + entry text reset 2022-05-10 09:26:54 -04:00
0xdcarns 195bda1f12 updated build tag locations 2022-05-10 09:24:52 -04:00
0xdcarns 81ab4f76bb added build tag for gui 2022-05-10 09:24:52 -04:00
0xdcarns 7a1b719a91 initial gui testing passed 2022-05-10 09:24:52 -04:00
0xdcarns cd065e35f4 added library and initial commit for gui 2022-05-10 09:24:50 -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
Matthew R. Kasun 5d3274e48d remove initial pull on daemon start 2022-05-09 09:37:00 -04:00
Matthew R. Kasun 4c634bc02f apply saved config on start up 2022-05-09 08:00:14 -04:00
afeiszli 0531b6f78d removing ping server function. Unnecessary 2022-05-03 11:43:15 -04:00
afeiszli 2e4ae94521 changing versions for 0.13.1 2022-05-02 10:08:11 -04:00
Matthew R. Kasun d34ed51c8a remove debug logs 2022-04-29 15:35:25 -04:00
Matthew R. Kasun d1db0ab45a refactor mq connect 2022-04-29 15:34:11 -04:00
0xdcarns 0e73034b8d refactored pull to always re-gen certs 2022-04-29 09:41:16 -04:00
0xdcarns 55dd7c18f7 added address struct 2022-04-27 15:51:29 -04:00
0xdcarns 8496a834c3 initial list remake 2022-04-27 15:40:48 -04:00
afeiszli 551a592a71 fix iface on update 2022-04-25 22:06:33 -04:00
afeiszli 894fd1f5bd making dual stack addressing work client side 2022-04-25 21:16:47 -04:00
afeiszli b03b4cfcff adding in ipv4 2022-04-25 20:50:09 -04:00
afeiszli 13db6ced0c adding separator 2022-04-25 20:07:47 -04:00
0xdcarns cfb0904bd6 refactor + bugs 2022-04-25 19:33:31 -04:00
0xdcarns a6ee8101e6 small refactors 2022-04-25 19:28:56 -04:00
Alex Feiszli baeae557ce
Merge pull request #1033 from gravitl/bugfix_v0.13.0_cidr_parsing
Bugfix v0.13.0 cidr parsing
2022-04-25 16:48:08 -04:00
afeiszli 308b32a341 fix cidr parsing 2022-04-25 20:37:24 -04:00
afeiszli 6766219574 fix cidr parsing 2022-04-25 20:37:05 -04:00
0xdcarns 68b52279ae added peers to pull/join responses 2022-04-25 16:30:18 -04:00
dcarns 6c024dd5e5
Merge pull request #1031 from gravitl/feature_v0.13.0_reorder_join_register
gen new key and re-register on pull
2022-04-25 14:32:54 -04:00
Matthew R. Kasun 092441441c redo register on pull 2022-04-25 14:30:51 -04:00
Matthew R. Kasun e3206c5b4c gen new key and re-register on pull 2022-04-25 14:04:36 -04:00
dcarns 1b7efe1ced
Merge pull request #1029 from gravitl/feature_v0.13.0_btr_serv_reset
added initial notification to clients on server startup
2022-04-25 13:40:51 -04:00
Matthew R. Kasun 1ae9240d86 gen new key and re-register on pull 2022-04-25 13:25:21 -04:00
0xdcarns 61e5ae9d02 fixed module imports 2022-04-25 13:22:56 -04:00
0xdcarns 9d365c9c28 changes to allowedip parsing to handle ipv6 better 2022-04-25 13:10:55 -04:00
0xdcarns 6e920fb97c fix 2022-04-25 13:10:55 -04:00
0xdcarns 6eab0498fc some changes around iptables 2022-04-25 13:10:55 -04:00
0xdcarns dc12b1e418 route changes + primary addr on node 2022-04-25 13:10:54 -04:00
0xdcarns 8e976d1f55 removed isdualstack references 2022-04-25 13:09:23 -04:00
afeiszli 14cebf56a0 rebased off develop 2022-04-25 11:37:30 -04:00
afeiszli 93a25bb9a6 adding freebsd logic and using wgctrl.Device 2022-04-25 11:36:09 -04:00
afeiszli 9a66674a5c minor logic revisions 2022-04-25 11:36:09 -04:00
afeiszli 91ca96534b adding comments, removing bad check 2022-04-25 11:36:09 -04:00
afeiszli 6a90cd803a publishing port changes 2022-04-25 11:36:08 -04:00
afeiszli 5f303cb50a fixing localport issues 2022-04-25 11:34:55 -04:00
afeiszli ccc0ed851d adding local listen port 2022-04-25 11:34:32 -04:00
0xdcarns 773ad9b753 added initial notification to clients on server startup 2022-04-25 11:12:49 -04:00
Matthew R. Kasun d626cf0e9b remove write and return error 2022-04-25 11:11:44 -04:00
Matthew R. Kasun 38309aab20 remove cfg.Registered 2022-04-25 11:07:21 -04:00
Matthew R. Kasun f5aa1d1e62 reorder register/join 2022-04-25 10:38:29 -04:00
Matthew R. Kasun a8b1d48e02 more certificate cleanup 2022-04-25 06:38:20 -04:00
Matthew R. Kasun 8f8272aad7 certificate cleanup 2022-04-25 06:33:06 -04:00
Matthew R. Kasun 747d6bc692 remove comms network leftovers
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-22 05:21:35 -04:00
Matthew R. Kasun 7152f6ccd4 remove references to grpc/comms net 2022-04-21 15:53:44 -04:00
Matthew R. Kasun 886ec31553 remove grpc 2022-04-21 15:04:44 -04:00
Matthew R. Kasun 955e0e544c join as api call
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun 12dfc5f820 refactor leave to use API
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun b7a18eac1f refactor pull to use api
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun adfa5236f8 review comments addressed
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 09:26:23 -04:00
Matthew R. Kasun 9eddb971cc fix logic for key/cert gen on start
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-19 07:42:28 -04:00
Matthew R. Kasun 2b1f20e94b changes from code review
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 18:21:55 -04:00
Matthew R. Kasun 924403d5b4 ncutils.GetNetclientServerPath
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 15:30:59 -04:00
Matthew R. Kasun f8fe382c02 cleanup and comments 2022-04-16 16:43:10 -04:00
Matthew R. Kasun de7ca68c23 join after register 2022-04-16 15:35:05 -04:00
Matthew R. Kasun a2805ddc80 register/cert gen 2022-04-16 08:27:22 -04:00
Matthew R. Kasun 4f19beda00 save returned certs/keys 2022-04-15 16:07:19 -04:00
0xdcarns 08e219cdcc idk 2022-04-15 15:20:46 -04:00
0xdcarns 1cf9ac77e9 changed encoding of structs 2022-04-15 15:03:54 -04:00
Matthew R. Kasun a6c388db67 use openssl to gen client key/cert 2022-04-15 13:32:10 -04:00
Matthew R. Kasun 84de5c5216 use issuer's public key for certs 2022-04-15 09:54:35 -04:00
Matthew R. Kasun d50f7a8c0b revert to gen csr on client 2022-04-14 14:42:46 -04:00
Matthew R. Kasun fb6059e4a1 wip 2022-04-14 14:14:37 -04:00
Matthew R. Kasun 38cf8b0ceb gen csr on server 2022-04-14 11:40:13 -04:00
Matthew R. Kasun 9677957023 logging 2022-04-14 09:22:07 -04:00
Matthew R. Kasun 5008462b3e send csr and get cert 2022-04-14 07:15:50 -04:00
Matthew R. Kasun 4525698f87 return struct 2022-04-14 06:08:51 -04:00
Matthew R. Kasun 3e6a9be9ba return struct 2022-04-13 18:22:03 -04:00
Matthew R. Kasun 92d3e40bde logging 2022-04-13 17:33:40 -04:00
Matthew R. Kasun 6aa1a68a6f register command - client 2022-04-13 15:25:35 -04:00