Commit graph

408 commits

Author SHA1 Message Date
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
5f1299042f added custom dns entries to peer update 2022-03-23 10:31:38 -04:00
0xdcarns
988c0d7629 fixed removing local servers on deletes 2022-03-22 14:29:20 -04:00
dcarns
9b2742a3c5
Merge pull request #925 from gravitl/refactor_v0.12.0_logging
replace ncutil.Log/PrintLog with logger.Log
2022-03-21 11:35:06 -04:00
Matthew R. Kasun
11b1098390 replace ncutil.Log/PrintLog with logger.Log 2022-03-21 11:27:25 -04:00
Matthew R. Kasun
f615b685c7 server routes 2022-03-20 06:25:12 -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
John Sahhar
c71c739ba2 logic/accesskeys: math.Rand -> crypto.Rand
This replaces the usage of the non-cryptographically
secure math.Rand with the system CSPRNG accessed via crypto.Rand.

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-16 22:19:22 -05:00
Matthew R Kasun
9e23e69141
Merge branch 'develop' into worklows 2022-03-15 09:10:10 -04:00
Matthew R. Kasun
628f1f1468 remove debug logs 2022-03-14 16:32:14 -04:00
Matthew R. Kasun
7d2aa4fc82 add network to peer 2022-03-14 15:56:01 -04:00
Matthew R. Kasun
0abba58bfb use string rather than []byte for dns 2022-03-14 14:59:41 -04:00
Matthew R. Kasun
ead3570064 debugging log 2022-03-14 14:37:16 -04:00
Matthew R. Kasun
fcbdca0263 change order of dns entry 2022-03-14 13:55:38 -04:00
Matthew R. Kasun
649bea1e40 fix typo
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-03-14 13:42:42 -04:00
Matthew R. Kasun
1b8a3ed347 calc dns entries during peerupdate 2022-03-14 11:34:25 -04:00
0xdcarns
8ab7266c30 moved acl check 2022-03-11 15:19:06 -05:00
Alex Feiszli
52c7a5897a
Merge pull request #888 from gravitl/feature_v0.12.0_disabling_ext_clients
added ability to disable ext clients
2022-03-11 12:01:52 -05:00
0xdcarns
80b7862370 made server peer check more efficient 2022-03-11 11:48:08 -05:00
0xdcarns
8385d02987 edited where server sets peers to account for ACLs 2022-03-11 11:48:08 -05:00
0xdcarns
3e8a0554c2 changed dir name and added to gitignore, removed log 2022-03-11 11:48:08 -05:00
0xdcarns
53c662476b comment changes 2022-03-11 11:48:08 -05:00
0xdcarns
18cfdfd2ad added server update on ACL update 2022-03-11 11:48:08 -05:00
0xdcarns
1f6e347213 added acl logic to affect peers 2022-03-11 11:48:08 -05:00
0xdcarns
84a66af3ee log add 2022-03-11 11:48:08 -05:00
0xdcarns
7b5692b8b0 added basic api endpoints 2022-03-11 11:48:08 -05:00
0xdcarns
3d531cb830 added one more test 2022-03-11 11:48:08 -05:00
0xdcarns
d3be82cf9d refactored node functions further 2022-03-11 11:48:08 -05:00
0xdcarns
765c264b56 began generalizing 2022-03-11 11:48:08 -05:00
0xdcarns
c2514c06d4 refactored some logic to use typed functions 2022-03-11 11:48:08 -05:00
0xdcarns
c1e3a79ba7 node ACL logic + tests implemented 2022-03-11 11:48:08 -05:00
0xdcarns
09c54b1c61 began ACL implementation 2022-03-11 11:48:08 -05:00
John Sahhar
d322631ebb logic/extpeers: Set IPv6 in CreateExtClient
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-11 11:48:08 -05:00
0xdcarns
01484eec7b added ability to disable ext clients 2022-03-11 09:41:14 -05:00
0xdcarns
9f7afdcf37 made server peer check more efficient 2022-03-11 09:04:12 -05:00
0xdcarns
7eac05528a edited where server sets peers to account for ACLs 2022-03-11 08:59:53 -05:00
0xdcarns
112f03cf1f changed dir name and added to gitignore, removed log 2022-03-11 08:46:01 -05:00
0xdcarns
c25ea9fe15 comment changes 2022-03-10 16:01:36 -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
2e43facb8b log add 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
0xdcarns
a8043accc9 node ACL logic + tests implemented 2022-03-10 14:55:40 -05:00
0xdcarns
6061ccec76 began ACL implementation 2022-03-10 14:55:40 -05:00
John Sahhar
be0055a630 logic/extpeers: Set IPv6 in CreateExtClient
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-08 16:12:17 -06:00