Commit graph

698 commits

Author SHA1 Message Date
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
lorenzo 55cd13a6a2 Merge branch 'develop' of https://github.com/k4s0/netmaker into develop 2022-09-01 15:49:59 +02:00
Casini Lorenzo bcddc3f3c5 Fix url prameter to body
changed from url parameters to request body
2022-09-01 15:45:54 +02:00
afeiszli e9634675d2 removing extra comments 2022-08-31 11:40:45 -04:00
afeiszli 8fc9dac969 adding security fixes 2022-08-31 11:38:29 -04:00
lorenzo 5bbb2d3e03 added new controller for creating custom ExtClient
changed author
2022-08-31 11:27:28 +02:00
lorenzo 18a3325175 added new controller for creating custom ExtClient 2022-08-31 10:24:21 +02:00
afeiszli 4d9a07bf00 adding gateway routes for peers 2022-08-22 16:44:04 -04:00
Matthew R. Kasun 184e5a66d9 refactor server routing 2022-08-19 11:25:39 -04:00
Matthew R Kasun d7384b6a81
Merge pull request #1462 from gravitl/refactor_v0.14.7_unnecessary_code
remove func NetworkNodesUpdatePullChanges
2022-08-18 15:51:01 -04:00
afeiszli 7800eeb09e reverting script files 2022-08-18 09:58:54 -04:00
Matthew R. Kasun 3a1dd8dc1e remove func NetworkNodesUpdatePullChanges 2022-08-18 04:49:35 -04:00
afeiszli 983d90026c move client public ip check to use server 2022-08-17 17:30:30 -04:00
cameronts 9f92b20a15 Added chain creation for nftables. 2022-08-05 05:07:00 -07:00
dcarns 4bc8afd731
Merge pull request #1399 from Exchizz/feature/disable-nat-for-egress-gw
Add field to /api/nodes/wg-net/<network id>/creategateway for enabling/disabling NAT
2022-07-22 14:36:41 -04:00
cameronts 38e4950ed1 Fixed by adding validation tags.
To test: run go test ./... -test.v (tested with go 1.18.4).
2022-07-20 12:32:48 -07:00
Mathias Neerup 0b4aca18db Make NatEnabled string instead of boolean + add tests 2022-07-20 13:01:28 +02:00
Abhishek Kondur 63708e6e36 GRA-414: added additional logs for acl controllers 2022-07-13 14:53:37 +04:00
Abhishek Kondur 5ff30d3ca8 GRA-414: added additional logs for extclient controllers 2022-07-13 10:01:25 +04:00
Abhishek Kondur 0c9f3cf251 GRA-414: added additional logs for sever controllers 2022-07-12 20:03:14 +04:00
Abhishek Kondur 87db489b1a GRA-414: added additional logs for dns controllers 2022-07-12 19:41:46 +04:00
Abhishek Kondur 5163f77e1f GRA-414: added additional logs for network controllers 2022-07-12 18:50:32 +04:00
Abhishek Kondur 1b6074834c GRA-414: added additional logs for user controllers 2022-07-12 14:49:49 +04:00
Abhishek Kondur 2d73a020ed GRA-414: change status code for decoding error to badrequest 2022-07-12 13:49:20 +04:00
Abhishek Kondur f8200b522f GRA-414: added additional logs node controllers 2022-07-12 13:38:15 +04:00
Matthew R. Kasun e5a59d7081 add bool to control update to node 2022-07-07 05:52:43 -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 3097b7d403 fix order of returned var in controller.SecurityCheck 2022-06-27 10:30:26 -04:00
Matthew R. Kasun b217d526fa fix network validation tests 2022-06-27 10:23:11 -04:00
Matthew R Kasun 5aa2c16df1 refactored logic for Hub change 2022-06-21 15:19:54 +00:00
Matthew R. Kasun 932eba8d21 fix statticcheck errors 2022-06-16 15:42:32 -04:00
Matthew R. Kasun 79e093124a code review changes 2022-06-13 16:06:00 -04:00
Matthew R. Kasun cb0635f0ee update relay when relayed address updated 2022-06-13 11:40:14 -04:00
afeiszli 636fcf09ef fix test 2022-05-31 14:23:42 -04:00
afeiszli 5bfbe2b81d fix test 2022-05-31 14:15:51 -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 0865a535c7 changing broker retrieval/setting logic 2022-05-30 12:39:33 -04:00
Matthew R. Kasun c37fa49096 switch to smaller ip lib 2022-05-26 16:14:52 -04:00
afeiszli a2a9e2b788 changing auth params to ID from MacAddress 2022-05-23 15:24:09 -04:00
afeiszli d63bae351d fixing rangeupdate for ipv6, setting ipv4 assignment 2022-05-12 19:35:46 -04:00
afeiszli ccee46e58f fixing test 2022-05-11 12:15:54 -04:00
afeiszli db1678208d fixing test 2022-05-11 12:11:47 -04:00
0xdcarns c0be77a7f3 added logic to propogate DNS updates on custom entry 2022-04-28 15:32:21 -04:00
0xdcarns 8a914d48e4 removed bad check for extra comma, added comment for relay handling of address6 later 2022-04-28 09:26:13 -04:00
0xdcarns c2286b3a4b dns fix 2022-04-25 16:48:36 -04:00
0xdcarns 15c44dddad test fix 2022-04-25 16:43:54 -04:00
0xdcarns 68b52279ae added peers to pull/join responses 2022-04-25 16:30:18 -04:00
0xdcarns 1b17bcd087 remove unnecessary test 2022-04-25 13:28:00 -04:00
0xdcarns 7654556a3a bugfix tweaks 2022-04-25 13:10:55 -04:00
0xdcarns 8b84692455 new allowed ips fix 2022-04-25 13:10:55 -04:00
0xdcarns 3ca9843328 small bug fixes 2022-04-25 13:10:55 -04:00
0xdcarns 99abd9666d removed required status for ipv6 and added check on create network 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
Matthew R. Kasun f5aa1d1e62 reorder register/join 2022-04-25 10:38:29 -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 33746a7bf6 eliminate superfluous response.WriteHeader call 2022-04-21 14:22:34 -04:00
Matthew R. Kasun d319501fbf add logic from grpc CreateNode to api createNode
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 16:32:51 -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 34cac9ced0 allow nodes to authorize for certain controller/node endpoints 2022-04-20 15:46:19 -04:00
Matthew R Kasun a3f44f152b
Merge pull request #1016 from gravitl/feature_v0.13.0_mq_register
Feature v0.13.0 mq register
2022-04-20 09:33:33 -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 1cbbd52e7d fixed comment
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 09:47:01 -04:00
Matthew R. Kasun 94b89dfff1 Merge branch 'feature_v0.13.0_mq_cleanup' into feature_v0.13.0_mq_register 2022-04-18 09:27:51 -04:00
Matthew R. Kasun d312bf6636 return certs in correct order
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 09:22:11 -04:00
Matthew R. Kasun f8fe382c02 cleanup and comments 2022-04-16 16:43:10 -04:00
Matthew R. Kasun eae74e3430 gen certs with go rather than openssl 2022-04-16 08:37:55 -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 7524f08146 response update
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-15 13:43:05 -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 3e6a9be9ba return struct 2022-04-13 18:22:03 -04:00
Matthew R. Kasun 8c1eedc385 parse token correctly 2022-04-13 17:57:04 -04:00
Matthew R. Kasun 92d3e40bde logging 2022-04-13 17:33:40 -04:00
Matthew R. Kasun 867a616227 register command - server 2022-04-13 16:22:46 -04:00
dcarns 010c1deddc
Merge pull request #1014 from gravitl/feature_v0.13.0_mq_refactor
mq direct to server public ip
2022-04-12 15:57:09 -04:00
Matthew R. Kasun 935567761b mq direct to server public ip 2022-04-12 10:43:02 -04:00
Matthew R. Kasun 8e44eb80c9 remove unnecessary code
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-03-30 18:59:03 -04:00
0xdcarns 5ba79afeba added default acl value option for networks 2022-03-17 13:24:57 -04:00
0xdcarns ffbc0db33f send created network back in response to net create 2022-03-17 10:08:28 -04:00
0xdcarns d25ca2d424 ext client MTU 2022-03-15 09:16:15 -04:00
0xdcarns a3b5c10508 edited logs and used pre-existing mq function 2022-03-11 11:11:03 -05:00
0xdcarns 01484eec7b added ability to disable ext clients 2022-03-11 09:41:14 -05:00
0xdcarns 112f03cf1f changed dir name and added to gitignore, removed log 2022-03-11 08:46:01 -05:00
0xdcarns 09551776fa added server update on ACL update 2022-03-10 14:55:40 -05:00
0xdcarns af8918e35f added acl logic to affect peers 2022-03-10 14:55:40 -05:00
0xdcarns 03d35528cc removed unneccasy api exposure 2022-03-10 14:55:40 -05:00
0xdcarns aefc8b090b added basic api endpoints 2022-03-10 14:55:40 -05:00
0xdcarns 9668a84cd0 added one more test 2022-03-10 14:55:40 -05:00
0xdcarns 68c7014802 refactored node functions further 2022-03-10 14:55:40 -05:00
0xdcarns 1d92e4cf5a began generalizing 2022-03-10 14:55:40 -05:00
0xdcarns da25da775c refactored some logic to use typed functions 2022-03-10 14:55:40 -05:00