Fix/firezone id handling (#2958)

fixes #2651 

Wip because firezone portal doesn't handle names longer than 8
characters yet cc @AndrewDryga
This commit is contained in:
Gabi
2023-12-19 18:38:27 -03:00
committed by GitHub
parent aabc06c3c1
commit 73823ecba0
8 changed files with 90 additions and 18 deletions

View File

@@ -34,10 +34,10 @@ pub struct CommonArgs {
default_value = "wss://api.firezone.dev"
)]
pub api_url: Url,
/// Identifier generated by the portal to identify and display the device.
#[arg(short = 'i', long, env = "FIREZONE_ID")]
pub firezone_id: String,
/// Token generated by the portal to authorize websocket connection.
#[arg(env = "FIREZONE_TOKEN")]
pub token: String,
/// Friendly name to display in the UI
#[arg(short = 'n', long, env = "FIREZONE_NAME")]
pub firezone_name: Option<String>,
}