Christopher Blaha
d0c09aa2c0
fixed lowercase letters and extra spaces
2022-07-23 08:54:20 -04:00
Christopher Blaha
4a5ae8fb31
removed ". "
2022-07-22 23:48:46 -04:00
Christopher Blaha
bc009d03e3
things
2022-07-22 23:26:46 -04:00
Christopher Blaha
b5be396f87
commas, amiright?
2022-07-22 23:24:10 -04:00
Christopher Blaha
cb8958e927
log stuff
2022-07-22 22:45:29 -04:00
Christopher Blaha
9be779f666
log messages
2022-07-22 20:32:34 -04:00
Christopher Blaha
ac4515c38a
logging
2022-07-22 15:51:22 -04: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
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
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
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
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
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
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
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
0410e1d4fb
install command
2022-06-23 14:06:26 -04:00
Matthew R. Kasun
c8ec46391d
refactor logic for client.key generation
2022-06-22 09:55:10 -04: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
Matthew R. Kasun
932eba8d21
fix statticcheck errors
2022-06-16 15:42:32 -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
Matthew R. Kasun
9578b72d5e
remove publish prior to registration with server
2022-06-01 08:00:22 -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
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
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
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
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
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
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
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
0xdcarns
3e0094e822
made daemon install optional and changed mac logging path
2022-05-13 09:35:00 -04:00
afeiszli
d63bae351d
fixing rangeupdate for ipv6, setting ipv4 assignment
2022-05-12 19:35:46 -04:00
afeiszli
14b1f561b1
updating netclient.exe for new gui
2022-05-10 09:27:22 -04:00
0xdcarns
a36a20fa4c
messed with sizing
2022-05-10 09:26:54 -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
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
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
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
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
dc12b1e418
route changes + primary addr on node
2022-04-25 13:10:54 -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
Matthew R. Kasun
199ea15b1d
add VerifyConnection func to NewTLSConf as InsecureSkipVerify:false doesn't work
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-13 11:58:15 -04:00
Matthew R. Kasun
a0e7163e7e
program to generate initial server certs/key
2022-04-12 17:19:24 -04:00
Matthew R. Kasun
ab8cf43b3b
remove debug logs
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-12 15:43:53 -04:00
Matthew R. Kasun
9897b2228c
mqttSetup refactor
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-12 15:16:06 -04:00
Matthew R. Kasun
935567761b
mq direct to server public ip
2022-04-12 10:43:02 -04:00
dcarns
94d843c3bd
Merge pull request #953 from gravitl/feature_v0.12.2_list_id
...
Feature v0.12.2 list
2022-03-23 20:33:35 -04:00
john s
d1fb0b90af
netclient: math.Rand -> crypto.Rand ( #956 )
...
* netclient: math.Rand -> crypto.Rand
Signed-off-by: John Sahhar <john@gravitl.com>
* netclient: math.Rand -> crypto.Rand
* add tests
Signed-off-by: John Sahhar <john@gravitl.com>
* netclient: math.Rand -> crypto.Rand
* add test
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-23 12:06:26 -06:00
0xdcarns
a477eaa767
added local node ID's to list command
2022-03-22 15:33:38 -04:00
0xdcarns
4cd75f2985
initial commit
2022-03-22 15:13:48 -04:00
Matthew R. Kasun
11b1098390
replace ncutil.Log/PrintLog with logger.Log
2022-03-21 11:27:25 -04:00
dcarns
9efb15e688
Merge pull request #929 from gravitl/bugfix_v0.12.0_keepalive
...
keepalive handling updates
2022-03-21 10:41:01 -04:00
dcarns
b397f5014f
Merge pull request #918 from gravitl/bugfix_v0.12.1_hostctl_profile_names
...
use interface as hostctl profile
2022-03-21 10:24:28 -04:00
Matthew R. Kasun
c16687be61
keepalive handling updates
2022-03-21 07:07:50 -04:00
john s
24f292c934
netclient: pass by value -> reference ( #919 )
...
* netclient: pass by value -> reference
Updates various function arguments to accept config.ClientConfig
as a reference to avoid deep copying the struct.
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-20 23:43:17 -05:00