Commit graph

2686 commits

Author SHA1 Message Date
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 725037b794 send peer updates to all nodes including updated node 2022-04-21 14:32:12 -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 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 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 adfa5236f8 review comments addressed
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 09:26:23 -04:00
Matthew R. Kasun b47c72ead2 use /root/certs as bind mount 2022-04-19 13:10:39 -04:00
Matthew R. Kasun ec51fd2be1 update compose files to work with cert generation by netmaker 2022-04-19 10:26:50 -04:00
Matthew R. Kasun a340cd5c24 fix server startup for key/certs 2022-04-19 10:14:02 -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 31b3dfec14 remove openssl from nm-quick
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 18:26:42 -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 652d8a1018 allow anonymous access to mq but require cert
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 14:04:15 -04:00
Matthew R. Kasun 41333301e6 docker related updates
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 13:50:30 -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 d177d9507e don't start comms net 2022-04-18 07:28:13 -04:00
Matthew R. Kasun 1adee64e21 use cert request public key 2022-04-17 13:29:19 -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 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 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 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
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
dcarns f14b3c95b4
Merge pull request #1012 from gravitl/dependabot/go_modules/develop/github.com/lib/pq-1.10.5
Bump github.com/lib/pq from 1.10.4 to 1.10.5
2022-04-12 16:08:16 -04:00
Matthew R. Kasun 98cbec6dde tls package
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-12 16:02:14 -04:00