Fix preshared key not persisted in config (#1474)

* replace the preshared key attribute in LoginRequest protobuff with an optional replacement

* mark old field as deprecated

* fix ui client to also keep preshared key
This commit is contained in:
pascal-fischer
2024-01-19 10:30:41 +01:00
committed by GitHub
parent 93646e6a13
commit f099e02b34
6 changed files with 197 additions and 165 deletions

View File

@@ -32,8 +32,9 @@ message LoginRequest {
// setupKey wiretrustee setup key.
string setupKey = 1;
// preSharedKey for wireguard setup.
string preSharedKey = 2;
// This is the old PreSharedKey field which will be deprecated in favor of optionalPreSharedKey field that is defined as optional
// to allow clearing of preshared key while being able to persist in the config file.
string preSharedKey = 2 [deprecated=true];
// managementUrl to authenticate.
string managementUrl = 3;
@@ -61,6 +62,7 @@ message LoginRequest {
optional int64 wireguardPort = 12;
optional string optionalPreSharedKey = 13;
}
message LoginResponse {