Adam Ierymenko
342fa9d33f
clang-format this branch
9 months ago
Adam Ierymenko
ba2a4a605c
clang-format
9 months ago
Grant Limberg
8636fe3c33
comment debug line
9 months ago
Grant Limberg
08e0da7921
DBMirrorSet wasn't passing along os/arch infof
9 months ago
Grant Limberg
27021ff425
debug log line
9 months ago
Grant Limberg
ecedddb19b
grab os/arch info from nc request
9 months ago
Grant Limberg
4fea4fc76f
debug output
9 months ago
Grant Limberg
6fa849c956
dump member save output only on error
10 months ago
Grant Limberg
3cef1b0842
error output on exceptions in commit thread
10 months ago
Grant Limberg
08b1ceb9a1
"relayed" as ip addr for unknown IP in last_seen
10 months ago
Grant Limberg
af0a9118c1
another query update
10 months ago
Grant Limberg
568da750bb
another query fix
10 months ago
Grant Limberg
d5f6f6b98e
fix sql statement
10 months ago
Grant Limberg
10ac0c2e1a
remove `last_authorized_credential` field.
...
Think that came from when we were trying to have the controller use the same table as CV2. It's not used or needed by the controller itself
10 months ago
Grant Limberg
1ffadf31de
Get node OS/Arch info into the CV2 db
10 months ago
Grant Limberg
224ee88b91
cleanup some debug statements
10 months ago
Grant Limberg
4b7c5159a3
"" instead of nullptr
10 months ago
Grant Limberg
4a8daf43e4
more query fixes
10 months ago
Grant Limberg
182148a26c
query fix
10 months ago
Grant Limberg
af715ca0ff
query & null fix
10 months ago
Grant Limberg
990ecb5eb1
another query fix
11 months ago
Grant Limberg
7c88b3f124
fix a couple of queries
11 months ago
Grant Limberg
af3f8b00a4
fix cv2 connection
11 months ago
Grant Limberg
1a6c0a5f12
reflect schema changes
11 months ago
Grant Limberg
2c8f032a76
CV2 controller. Should have everything but SSO now
11 months ago
Grant Limberg
fb7b07fc42
make sure the pg connstring is correct for cv2:// instances
12 months ago
Grant Limberg
1d2130610c
use the CV2 db instance if the path prefix is cv2://
12 months ago
Grant Limberg
0b04f772ef
make things compile
12 months ago
Grant Limberg
5c73fe9304
build fix
12 months ago
Grant Limberg
2af105000f
WIP: refactoring for CV2 db integration
12 months ago
Grant Limberg
f5b0fc6a8f
Fix AuthInfo Provider not being set
1 year ago
Grant Limberg
508527f7cd
break up redis tx inserts into smaller chunks
2 years ago
Grant Limberg
9d57ccd7b1
deauth all members upon network delete
2 years ago
Grant Limberg
ad60d708e1
fix log line
2 years ago
Adam Ierymenko
1982071d46
1.14.0 version bump for Linux and macOS, date update.
2 years ago
travisladuke
b4eb39fb16
feat: static file server
...
this lets you host web apps out of
:9993/app/{app_name}
:9993/app/{other_app}
from $ZT_HOME/app/{app_name}
2 years ago
Joseph Henry
b9d0cf9c89
Don't pass result of void function to string constructor
2 years ago
travisladuke
6e8fcce777
Fix unstable network member list endpoint
...
It was returning an array of array instead of
just array
2 years ago
travisladuke
559e8a907b
Improve full controller network list api
...
it was counting incorrectly in some cases and
returning empty objects.
Basically just handling if network data is null
2 years ago
travisladuke
ac6d532651
Fix deleting controller network member directory
...
That trailing slash was making it not work.
ZT_HOME/controller.d/network/$nwid
2 years ago
travisladuke
d1a306a021
Prevent creating members on non-existent networks.
...
```sh
curl -s -X POST "http://localhost:9993/controller/network/abcdabcdabcdabcd/member/1122334455 "
```
Would return 200 and ZT_HOME/controller.d/abcdabcdabcdabcd/members/1122334455
would be created. Without a ZT_HOME/controller.d/abcdabcdabcdabcd.json
Then other parts of the system mistakenly think a abcdabcdabcdabcd
network sorta kinda exists and then fail in weird ways.
2 years ago
travisladuke
f027d8f519
Fix typo in metric name
2 years ago
travisladuke
0ca8ae7970
Create an alternate networks list endpoint
...
Add /unstable/controller/network endpoint
Similar to /unstable/controller/network/{id}/member, it returns actual network objects,
instead of just network ids.
Also includes the total network count,
and each network has it's member counts in meta{}.
2 years ago
travisladuke
0b83f850e4
Create an alternate members list endpoint
...
The current api at /controller/network/1111111111767f2f/member
Lists only the members' ID and revision number.
If you want details, you have to query each specific member.
So if you want to make a members list, and you have
10000 members on a network, you need to make
10000 http requests.
It's also in a hard to specify and use shape
{ [member-id-1]: 13, [member-id-2]: 14, ... }
GET http://localhost:9993/unstable/controller/network/1111111111767f2f/member ->
```
{
data: [ {...member1}, {...member2}, ...],
meta: { totalCount: 4, authorizedCount: 3 }
}
```
2 years ago
travisladuke
06399c86f6
Store a network members `name`
...
Because the GET request to get a specific member just dumps
the whole member object, `name` is included there too for free.
2 years ago
Léo El Amri
1aa31e0414
Fix how MAC addresses are handled by the rules parser
...
It wasn't ignoring separator characters such as the colon and hyphen.
The rules compiler automatically add a colon to separate bytes, which is
not compatible with how they are parsed.
2 years ago
Grant Limberg
2fd50b104c
check hooks are enabled before firing
2 years ago
Grant Limberg
85cab3d0f1
remove some debug logging
2 years ago
Grant Limberg
8426677c55
fix /controller endpoint
3 years ago
Grant Limberg
d322f332e8
simplify hook firing
...
only need network and member IDs
3 years ago