mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
f17016b5e5
* Enhance network updates by skipping unchanged messages Optimizes the network update process by skipping updates where no changes in the peer update message received. * Add unit tests * add locks * Improve concurrency and update peer message handling * Refactor account manager network update tests * fix test * Fix inverted network map update condition * Add default group and policy to test data * Run peer updates in a separate goroutine * Refactor * Refactor lock
120 lines
4.7 KiB
JSON
120 lines
4.7 KiB
JSON
{
|
|
"Accounts": {
|
|
"bf1c8084-ba50-4ce7-9439-34653001fc3b": {
|
|
"Id": "bf1c8084-ba50-4ce7-9439-34653001fc3b",
|
|
"CreatedBy": "",
|
|
"Domain": "test.com",
|
|
"DomainCategory": "private",
|
|
"IsDomainPrimaryAccount": true,
|
|
"SetupKeys": {
|
|
"A2C8E62B-38F5-4553-B31E-DD66C696CEBB": {
|
|
"Id": "",
|
|
"AccountID": "",
|
|
"Key": "A2C8E62B-38F5-4553-B31E-DD66C696CEBB",
|
|
"Name": "Default key",
|
|
"Type": "reusable",
|
|
"CreatedAt": "2021-08-19T20:46:20.005936822+02:00",
|
|
"ExpiresAt": "2321-09-18T20:46:20.005936822+02:00",
|
|
"UpdatedAt": "0001-01-01T00:00:00Z",
|
|
"Revoked": false,
|
|
"UsedTimes": 0,
|
|
"LastUsed": "0001-01-01T00:00:00Z",
|
|
"AutoGroups": ["cq9bbkjjuspi5gd38epg"],
|
|
"UsageLimit": 0,
|
|
"Ephemeral": false
|
|
}
|
|
},
|
|
"Network": {
|
|
"id": "af1c8024-ha40-4ce2-9418-34653101fc3c",
|
|
"Net": {
|
|
"IP": "100.64.0.0",
|
|
"Mask": "//8AAA=="
|
|
},
|
|
"Dns": "",
|
|
"Serial": 0
|
|
},
|
|
"Peers": {},
|
|
"Users": {
|
|
"edafee4e-63fb-11ec-90d6-0242ac120003": {
|
|
"Id": "edafee4e-63fb-11ec-90d6-0242ac120003",
|
|
"AccountID": "",
|
|
"Role": "admin",
|
|
"IsServiceUser": false,
|
|
"ServiceUserName": "",
|
|
"AutoGroups": null,
|
|
"PATs": {},
|
|
"Blocked": false,
|
|
"LastLogin": "0001-01-01T00:00:00Z"
|
|
},
|
|
"f4f6d672-63fb-11ec-90d6-0242ac120003": {
|
|
"Id": "f4f6d672-63fb-11ec-90d6-0242ac120003",
|
|
"AccountID": "",
|
|
"Role": "user",
|
|
"IsServiceUser": false,
|
|
"ServiceUserName": "",
|
|
"AutoGroups": null,
|
|
"PATs": {
|
|
"9dj38s35-63fb-11ec-90d6-0242ac120003": {
|
|
"ID": "9dj38s35-63fb-11ec-90d6-0242ac120003",
|
|
"UserID": "",
|
|
"Name": "",
|
|
"HashedToken": "SoMeHaShEdToKeN",
|
|
"ExpirationDate": "2023-02-27T00:00:00Z",
|
|
"CreatedBy": "user",
|
|
"CreatedAt": "2023-01-01T00:00:00Z",
|
|
"LastUsed": "2023-02-01T00:00:00Z"
|
|
}
|
|
},
|
|
"Blocked": false,
|
|
"LastLogin": "0001-01-01T00:00:00Z"
|
|
}
|
|
},
|
|
"Groups": {
|
|
"cq9bbkjjuspi5gd38epg": {
|
|
"ID": "cq9bbkjjuspi5gd38epg",
|
|
"Name": "All",
|
|
"Peers": []
|
|
}
|
|
},
|
|
"Rules": null,
|
|
"Policies": [
|
|
{
|
|
"ID": "cq9bbkjjuspi5gd38eq0",
|
|
"Name": "Default",
|
|
"Description": "This is a default rule that allows connections between all the resources",
|
|
"Enabled": true,
|
|
"Rules": [
|
|
{
|
|
"ID": "cq9bbkjjuspi5gd38eq0",
|
|
"Name": "Default",
|
|
"Description": "This is a default rule that allows connections between all the resources",
|
|
"Enabled": true,
|
|
"Action": "accept",
|
|
"Destinations": [
|
|
"cq9bbkjjuspi5gd38epg"
|
|
],
|
|
"Sources": [
|
|
"cq9bbkjjuspi5gd38epg"
|
|
],
|
|
"Bidirectional": true,
|
|
"Protocol": "all",
|
|
"Ports": null
|
|
}
|
|
],
|
|
"SourcePostureChecks": null
|
|
}
|
|
],
|
|
"Routes": null,
|
|
"NameServerGroups": null,
|
|
"DNSSettings": null,
|
|
"Settings": {
|
|
"PeerLoginExpirationEnabled": false,
|
|
"PeerLoginExpiration": 86400000000000,
|
|
"GroupsPropagationEnabled": false,
|
|
"JWTGroupsEnabled": false,
|
|
"JWTGroupsClaimName": ""
|
|
}
|
|
}
|
|
},
|
|
"InstallationID": ""
|
|
} |