Add daemon-owned Tailnet login flow
This commit is contained in:
parent
d1e28b8817
commit
0c660acd1e
6 changed files with 812 additions and 28 deletions
|
|
@ -20,6 +20,9 @@ service Networks {
|
|||
service TailnetControl {
|
||||
rpc Discover (TailnetDiscoverRequest) returns (TailnetDiscoverResponse);
|
||||
rpc Probe (TailnetProbeRequest) returns (TailnetProbeResponse);
|
||||
rpc LoginStart (TailnetLoginStartRequest) returns (TailnetLoginStatusResponse);
|
||||
rpc LoginStatus (TailnetLoginStatusRequest) returns (TailnetLoginStatusResponse);
|
||||
rpc LoginCancel (TailnetLoginCancelRequest) returns (Empty);
|
||||
}
|
||||
|
||||
message NetworkReorderRequest {
|
||||
|
|
@ -84,6 +87,34 @@ message TailnetProbeResponse {
|
|||
bool reachable = 5;
|
||||
}
|
||||
|
||||
message TailnetLoginStartRequest {
|
||||
string account_name = 1;
|
||||
string identity_name = 2;
|
||||
string hostname = 3;
|
||||
string authority = 4;
|
||||
}
|
||||
|
||||
message TailnetLoginStatusRequest {
|
||||
string session_id = 1;
|
||||
}
|
||||
|
||||
message TailnetLoginCancelRequest {
|
||||
string session_id = 1;
|
||||
}
|
||||
|
||||
message TailnetLoginStatusResponse {
|
||||
string session_id = 1;
|
||||
string backend_state = 2;
|
||||
string auth_url = 3;
|
||||
bool running = 4;
|
||||
bool needs_login = 5;
|
||||
string tailnet_name = 6;
|
||||
string magic_dns_suffix = 7;
|
||||
string self_dns_name = 8;
|
||||
repeated string tailnet_ips = 9;
|
||||
repeated string health = 10;
|
||||
}
|
||||
|
||||
enum State {
|
||||
Stopped = 0;
|
||||
Running = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue