Abhishek Kondur
d373e90597
enable proxy when host is relay and on relayed hosts, add relay related feilds to api host model
2023-01-09 23:03:23 +05:30
Abhishek Kondur
26b40c8d97
host relay api logic
2023-01-09 11:42:57 +05:30
Abhishek Kondur
95b578455d
proxy updates refactor changes
2023-01-08 18:50:02 +05:30
Abhishek Kondur
ca3d9dc40b
fix node update
2023-01-06 16:58:41 +05:30
Abhishek Kondur
950fd3c290
rm peer from host model
2023-01-05 16:17:09 +05:30
Abhishek Kondur
bff68bd945
rm peers from node model
2023-01-05 14:56:20 +05:30
Abhishek Kondur
2ff8684fd4
keep node level peers for now
2023-01-05 09:42:41 +05:30
Abhishek Kondur
4c63478888
get node fix
2023-01-05 09:31:31 +05:30
Abhishek Kondur
72e4b914b9
move peers to host level
2023-01-05 09:24:46 +05:30
Abhishek Kondur
3f8f841313
Merge branch 'netclient_refactor_latest' of https://github.com/gravitl/netmaker into netclient_refactor_peer_updates
2023-01-05 08:46:49 +05:30
Matthew R. Kasun
8bfe255eab
Merge remote-tracking branch 'origin/develop' into netclient_refactor_latest
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2023-01-04 14:16:12 -05:00
Abhishek Kondur
21133bca7d
host based updates
2023-01-04 20:02:02 +05:30
dcarns
711190d4a0
Merge pull request #1895 from gravitl/netclient_refactor_fixes
...
update host struct in memory, set to proxy port if peer host is using…
2023-01-03 22:24:15 -05:00
Abhishek Kondur
bf2f51ec3b
update host struct in memory, set to proxy port if peer host is using proxy
2023-01-03 09:14:48 +05:30
Anish Mukherjee
289bb3e5ec
add headless sso login
2023-01-02 13:18:40 +05:30
dcarns
f382fd3bf9
Merge pull request #1886 from gravitl/netclient_refactor_fixes
...
Netclient refactor fixes
2022-12-30 09:26:02 -05:00
Abhishek Kondur
7455bf7d6c
send peer update after node has left the network
2022-12-30 15:47:02 +05:30
dcarns
e1929dd039
Merge pull request #1885 from gravitl/story/GRA-842-1
...
add mq removal on host delete
2022-12-29 11:36:11 -05:00
0xdcarns
4877bdccf1
add mq removal on host delete
2022-12-29 10:57:25 -05:00
Abhishek Kondur
2c2b3a4b9b
pr comment
2022-12-29 21:20:29 +05:30
Abhishek Kondur
ba2466aa25
delete node fix, mq modify client if host is already created
2022-12-29 19:25:35 +05:30
0xdcarns
2e419944c0
added network role update to host PUT
2022-12-28 12:13:07 -05:00
0xdcarns
8c92308ccf
made mq functions a little easier to read and re-use
2022-12-28 12:10:03 -05:00
Abhishek Kondur
4f6bfc3722
Merge branch 'netclient_refactor_latest' of https://github.com/gravitl/netmaker into proxy_models_refactor
2022-12-28 09:36:31 +05:30
dcarns
91fb01d489
Merge pull request #1878 from gravitl/netclient_refactor_fixes
...
bug fixes
2022-12-27 22:00:39 -05:00
Abhishek Kondur
9941c6bedc
remove proxy payload from get node response
2022-12-28 08:01:27 +05:30
Abhishek Kondur
2cb3ee65af
change proxy models reference paths
2022-12-27 21:56:55 +05:30
dcarns
2df89c196a
Merge pull request #1876 from gravitl/story/GRA-793
...
consolidated add default hosts to net function
2022-12-27 11:03:52 -05:00
0xdcarns
875718d824
consolidated add default hosts to net function
2022-12-27 10:15:00 -05:00
Abhishek Kondur
5f2d73dd52
get host info from db before updating
2022-12-27 17:43:31 +05:30
Matthew R. Kasun
319193c18a
update IsIPUnique
...
also:
- remove unnecessary call to UpertHost in create node
- remove debugging logs
2022-12-23 18:06:59 -05:00
dcarns
afc1812ef3
Merge pull request #1870 from gravitl/story/GRA-793
...
Add default hosts to network upon creation
2022-12-23 17:09:03 -05:00
0xdcarns
82479863f1
added default node association with networks
2022-12-23 16:14:45 -05:00
Matthew R Kasun
a371b7ae21
Merge branch 'netclient_refactor_latest' into GRA-824-getPeerUpdate
2022-12-23 15:59:55 -05:00
0xdcarns
29bc1d5258
removed finished TODO
2022-12-23 14:40:29 -05:00
0xdcarns
8058640cdf
change local address and join create func
2022-12-23 14:22:34 -05:00
Matthew R. Kasun
eae92470c5
refactor of peerUpdate
...
contains some debugging logging
2022-12-23 13:41:17 -05:00
0xdcarns
df614d6d4f
added associate and dissasociate functions
2022-12-23 13:03:33 -05:00
0xdcarns
5f5f8be5d5
created functions
2022-12-23 12:38:22 -05:00
walkerwmanuel
6611941ca2
Replaced string methods with HTTP consts
2022-12-23 09:49:08 -05:00
Aceix
3b82a57993
fix(GRA-832): differentiate update host from update host networks
2022-12-23 10:12:17 +00:00
0xdcarns
2ed6a65f02
changed apinode -> node on return
2022-12-22 16:30:44 -05:00
0xdcarns
59a89707ed
create nodeNodeUpdate func for node to server updates
2022-12-22 16:16:58 -05:00
0xdcarns
309cfff577
updated controllers to use conversion routines
2022-12-22 15:44:42 -05:00
afeiszli
a6a16cf934
updated versions
2022-12-22 11:59:31 -05:00
dcarns
7328fbd351
Merge pull request #1849 from gravitl/fix_peer_errors
...
fix compile errors
2022-12-22 08:49:08 -05:00
Matthew R. Kasun
bce2f8a45c
fix compile errors
2022-12-22 06:42:33 -05:00
Matthew R Kasun
996a08ba93
Merge branch 'netclient_refactor_latest' into GRA-824-save-hostpass
2022-12-21 14:45:18 -05:00
Matthew R. Kasun
bc47ef4868
encrypt and save hostpass on HostCreate
2022-12-21 14:43:46 -05:00
dcarns
1c14e84f34
Merge pull request #1842 from gravitl/bugfix_empty_extclientid
...
Do not validate empty ext client ids
2022-12-21 14:26:35 -05:00
theguy951357
ac239d014a
changed to validate on update
2022-12-21 14:11:52 -05:00
Anish Mukherjee
611fc53d5e
do not validate empty ext client ids
2022-12-21 22:23:37 +05:30
dcarns
6e05834399
Merge pull request #1841 from gravitl/GRA-824-refactor-join
...
Gra 824 refactor join
2022-12-21 10:05:39 -05:00
Matthew R. Kasun
a219f8f22c
create host on join if host does not exist
2022-12-21 06:08:52 -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
walkerwmanuel
71d66b7f93
Refactored user functions to use refrences rather than values
2022-12-20 15:10:40 -05:00
0xdcarns
9188dd2cdf
initial commit
2022-12-19 18:04:55 -05:00
Matthew R. Kasun
c086e9499d
rebase
...
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
0xdcarns
cc529ab3bd
finished initial crud for hosts, fixed stun server close bug
2022-12-19 14:55:24 -05:00
Anish Mukherjee
78db9f4ae9
update dns_test
2022-12-19 16:22:47 +05:30
Matthew R Kasun
4e4c8eab6f
Merge pull request #1810 from gravitl/netclient_refactor_update
...
add endpoint for re-joins (migration)
2022-12-14 08:09:53 -05:00
Anish Mukherjee
ca2fb67490
fix integration test errors
2022-12-13 11:32:07 +05:30
Anish Mukherjee
72687b9a0f
minor fix
2022-12-13 11:08:53 +05:30
Anish Mukherjee
9c019ca1b1
change CORS_ALLOWED_ORIGIN input to comma-separated strings
2022-12-13 10:44:10 +05:30
Abhishek Kondur
07dd20734d
extclients internal ips
2022-12-12 22:49:35 +05:30
Abhishek Kondur
8fc09fd5cd
fix stun port format,use proxy listen port from node model
2022-12-12 10:33:35 +05:30
Abhishek Kondur
0b8257f0d7
fix models change, merge conflicts resolved
2022-12-12 08:50:28 +05:30
dcarns
67e4317e17
Merge pull request #1797 from yunginnanet/develop
...
Fixes+Chores: avoid de-referencing nil ptrs + lint
2022-12-10 10:42:04 -05:00
Matthew R. Kasun
bf2d4ccf1e
rejoin using updatenode vice createnode
2022-12-10 06:58:54 -05:00
Matthew R. Kasun
653229feba
add endpoint for re-joins (migration)
2022-12-09 17:41:44 -05:00
Anish Mukherjee
5f3fd9ee96
remove redundant checks on nodes
2022-12-09 17:11:55 +05:30
Abhishek Kondur
e00199a650
update proxy pkg path
2022-12-09 00:54:11 +05:30
Abhishek Kondur
d8075e69c6
add alias internal ip to ext clients
2022-12-08 19:48:47 +05:30
Anish Mukherjee
8cbe7cb186
allow only dashes and alphanumeric for node and ext client names
2022-12-08 17:51:42 +05:30
kayos@tcp.direct
e878e4820a
Fixes+Chores: avoid de-referencing nil ptrs + lint
...
- Avoid referencing conditions we know are false/true
- Avoid using name of imported package as variable
- Avoid broken (see list item 1) if else statement in `ipservice.go` by refactoring to switch statement
- When assigning a pointer value to a variable along with an error, check that error before referencing that pointer. Thus avoiding de-referencing a nil and causing a panic.
*** This item is the most important ***
- Standard gofmt package sorting + linting; This includes fixing comment starts for go doc
- Explicit non-handling of unhandled errors where appropriate (assigning errs to _ to reduce linter screaming)
- Export ErrExpired in `netcache` package so that we can properly reference it using `errors.Is` instead of using `strings.Contains` against an `error.Error()` value
2022-12-06 20:11:20 -08:00
Abhishek Kondur
80c7d46ec6
docker compose update, add stun to caddyfile
2022-12-06 19:27:38 +05:30
Abhishek Kondur
5b7ead91e6
merge conflicts resolved
2022-12-02 10:08:01 +05:30
Abhishek Kondur
cff3508425
Merge branch 'develop' of https://github.com/gravitl/netmaker into feature_proxy_metrics
2022-12-01 19:31:56 +05:30
Anish Mukherjee
fb84ddc6f1
remove unused endpoints
2022-11-30 16:20:05 +05:30
0xdcarns
9fb0380f68
swagger version udpate
2022-11-29 12:05:56 -05:00
Anish Mukherjee
f1fc75aa53
move user-groups and network-users to enterprise controllers
2022-11-29 10:11:47 -05:00
Anish Mukherjee
d24ed73986
update ipv6 test
2022-11-29 10:11:47 -05:00
0xdcarns
31990fca45
fixed admin issue and potential panics
2022-11-29 10:11:47 -05:00
0xdcarns
55d1b3dc63
updated version to v0.16.3
2022-11-29 10:11:47 -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
dcarns
f14f984a88
Merge pull request #1758 from gravitl/refactor_ee_controllers
...
Refactor EE controllers
2022-11-26 10:11:16 -05:00
Anish Mukherjee
fa087401b3
move user-groups and network-users to enterprise controllers
2022-11-22 23:45:31 +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
Anish Mukherjee
1905f7061b
update ipv6 test
2022-11-16 19:11:45 +05:30
Matthew R. Kasun
4df672de68
refactor node deletion
2022-11-15 09:52:17 -05:00
Matthew R. Kasun
b453897e65
ensure netclient version is compatible
2022-11-14 14:41:34 -05:00
0xdcarns
ea854a6b98
fixed admin issue and potential panics
2022-11-10 14:54:53 -05:00
Abhishek Kondur
a7c0abe2fc
refactor proxy updates
2022-11-07 01:25:04 +05:30
0xdcarns
3639338faa
updated version to v0.16.3
2022-11-04 14:50:54 -04:00
Abhishek Kondur
acae6c3aed
added relay functionality to proxy
2022-11-04 01:24:48 +05:30
Matthew R. Kasun
b3f90f2929
add hostid and separate server name/broker name
2022-11-02 11:22:40 -04:00
Abhishek Kondur
17e05d430b
sync peers updates with proxy
2022-11-02 15:33:42 +05:30
Matthew R. Kasun
89b5911197
update version numbers for v0.16.2 releasse
2022-10-18 10:12:42 -04:00
Matthew R. Kasun
2f164ceb4d
update version numbers for v0.16.1 release
2022-10-06 13:50:03 -04:00
Abhishek Kondur
28ca66b32d
delete node api fix
2022-10-06 00:54:05 +05:30
Abhishek Kondur
524cef8c29
rm invalid mq command
2022-10-04 23:17:53 +05:30
Abhishek Kondur
479cd377c8
delete mq client for node when delete api recieved from node
2022-10-04 23:12:03 +05:30
Abhishek Kondur
a04549eebe
rm register endpoint
2022-09-30 23:19:33 +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
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
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
eb75a6829c
added wipe failover cases and ceased node update on metrics update
2022-09-28 16:17:49 -04:00
0xdcarns
b95f3eb846
initial PoC completed
2022-09-28 14:59:21 -04:00
Abhishek Kondur
fed66c4b8d
json tag fix,create client with password before hashing
2022-09-28 17:58:43 +05:30
afeiszli
54258bcbac
add ability to set failover nodes
2022-09-27 14:04:28 -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
cbcb046139
added server health check api
2022-09-26 16:55:33 +05:30
Matthew R. Kasun
5f7d6ea1ef
logic.Is_EE --> systemcfg.Is_EE
2022-09-25 07:11:26 -04:00
Matthew R. Kasun
854c20f772
shutdown netmaker on reciept of sigterm
2022-09-22 16:17:06 -04:00
afeiszli
d19cac35fa
removed remove network
2022-09-19 12:59:37 -04:00
Alex Feiszli
53d2250049
Merge branch 'develop' into bugfix_v0.16.0_swagger_sections
2022-09-19 12:55:32 -04:00
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
cameronts
3df00df661
Rev Swagger docs version
2022-09-15 05:53:05 -07:00
cameronts
4cc32a5b50
Fix sections for /server/ and /users/ paths in Swagger docs
2022-09-15 05:47:48 -07:00
Abhishek Kondur
7db3bd3aca
comment certs code for mq
2022-09-15 09:23:33 +05:30
afeiszli
255e400be8
set NetworkUser defaults
2022-09-14 15:08:38 -04:00
afeiszli
57f93c8b43
fix get user data
2022-09-14 14:54:20 -04:00
afeiszli
b670755cce
refactoring for ee
2022-09-14 13:26:31 -04:00
afeiszli
8a1ba674a7
ee fixes
2022-09-14 09:58:01 -04:00
Abhishek Kondur
5270c1ede8
watch dynsec messages,create client on node join
2022-09-14 15:59:22 +05:30
afeiszli
4917c457db
added ee check
2022-09-13 15:44:45 -04:00
0xdcarns
88cd0a6497
initial commit
2022-09-13 15:25:56 -04:00
cameronts
9ff936e748
Fix integration tests issue due to types only used by go-swagger
2022-09-11 06:14:58 -07:00
cameronts
661290c84d
Update swagger docs
2022-09-10 21:51:59 -07:00
cameronts
edd35f4359
Updated with meshclient
2022-09-06 12:27:21 -07:00
cameronts
276c3c42a4
Update usage link
2022-09-06 10:30:40 -07:00
cameronts
9998193071
Merge branch 'develop' into feature_v0.15.1_apidocs
2022-09-06 10:18:53 -07:00
cameronts
cb23b871dd
Added swagger for API docs.
2022-09-06 05:20:24 -07:00
cameronts
459e7956cd
Add swagger base
2022-09-02 13:42:51 -07:00
Alex Feiszli
a95e0d25c6
Merge pull request #1499 from k4s0/develop
...
added new controller for creating custom ExtClient
2022-09-02 14:49:58 -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
Casini Lorenzo
c4577e1769
Update ext_client.go
...
Removed error loggin
2022-09-02 16:06:26 +02:00
cameronts
59351b1e00
Access key blanking for calls that the client uses.
2022-09-02 04:40:14 -07:00
lorenzo
5cf4fcf944
little fix wrong variable name
...
added github account for CLA
2022-09-01 16:19:38 +02:00