update protocol

This commit is contained in:
Maycon Santos 2024-03-14 15:34:40 +01:00
parent d18d2db9ee
commit 2d350b2522
3 changed files with 581 additions and 508 deletions

View File

@ -480,8 +480,10 @@ func infoToMetaData(info *system.Info) *proto.PeerSystemMeta {
Cloud: info.Environment.Cloud,
Platform: info.Environment.Platform,
},
RosenpassEnabled: info.RosenpassEnabled,
RosenpassPermissive: info.RosenpassPermissive,
ServerSSHAllowed: info.ServerSSHAllowed,
Config: &proto.Config{
RosenpassEnabled: info.Config.RosenpassEnabled,
RosenpassPermissive: info.Config.RosenpassPermissive,
ServerSSHAllowed: info.Config.ServerSSHAllowed,
},
}
}

File diff suppressed because it is too large Load Diff

View File

@ -100,6 +100,13 @@ message Environment {
string platform = 2;
}
// Config is a message with local configuration settings of the peer
message Config {
bool rosenpassEnabled = 1;
bool rosenpassPermissive = 2;
bool serverSSHAllowed = 3;
}
// PeerSystemMeta is machine meta data like OS and version.
message PeerSystemMeta {
string hostname = 1;
@ -117,9 +124,7 @@ message PeerSystemMeta {
string sysProductName = 13;
string sysManufacturer = 14;
Environment environment = 15;
bool rosenpassEnabled = 16;
bool rosenpassPermissive = 17;
bool serverSSHAllowed = 18;
Config config = 16;
}
message LoginResponse {