[APP-3801] implement remote environments auth (#9331)

This commit is contained in:
Moira Huang
2026-04-28 21:31:23 -05:00
committed by GitHub
parent c325d146ab
commit f0c8b7f723
21 changed files with 685 additions and 69 deletions
+16 -1
View File
@@ -22,6 +22,7 @@ message ClientMessage {
DeleteFile delete_file = 8;
RunCommandRequest run_command = 9;
ReadFileContextRequest read_file_context = 10;
Authenticate authenticate = 11;
}
}
// Top-level envelope for all server → client messages.
@@ -46,7 +47,21 @@ message ServerMessage {
// ── Initialize handshake
// Sent by the client immediately after connecting to negotiate the protocol.
message Initialize {}
message Initialize {
// Optional bearer token used by the daemon for Warp-server requests.
// Empty means no credential was available and does not clear an existing
// daemon credential.
string auth_token = 1;
}
// Sent by the client when its bearer credential rotates after initialization.
// This is a notification (fire-and-forget) — the server does not send a response.
message Authenticate {
// Optional bearer token used by the daemon for Warp-server requests.
// Empty means no credential was available and does not clear an existing
// daemon credential.
string auth_token = 1;
}
// Sent by the client to cancel an in-progress request.
// This is a notification (fire-and-forget) — the server does not send a response.