Commit graph

608 commits

Author SHA1 Message Date
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