fix (worker): send workerId when authorizing session (#2207)
* fix (worker): send workerId when authorizing session Send the workerId returned from the last success worker status when authorizing a session. * fixup! fix (worker): send workerId when authorizing session * fixup! fix (worker): send workerId when authorizing session * refactor (worker): deprecate workerId in ActivateSessionRequest It wasn't being used anywho * fixup! fix (worker): send workerId when authorizing session * Update LookupSessionRequest Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
This commit is contained in:
1 parent
66a3fe6106
commit
bd167da7d1
6 files changed
+95
-118
No files matched your search
@@ -33,12 +33,9 @@ service SessionService {
|
||||
message LookupSessionRequest {
|
||||
// The session ID from the client
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
// The name of the requesting worker, used for filtering to ensure this
|
||||
// worker is allowed to handle this session.
|
||||
string server_id = 20; // @gotags: `class:"public"`
|
||||
// The key id of the requesting worker, used for filtering
|
||||
// if the server name is not provided
|
||||
string worker_key_id = 30; // @gotags: `class:"public"`
|
||||
// The id of the requesting worker, used for filtering to ensure this worker
|
||||
// can handle this session
|
||||
string worker_id = 20; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
// LookupSessionResponse contains information necessary for a client to
|
||||
@@ -60,10 +57,12 @@ message LookupSessionResponse {
|
||||
}
|
||||
|
||||
message ActivateSessionRequest {
|
||||
reserved 40;
|
||||
reserved "worker_id";
|
||||
|
||||
string session_id = 10; // @gotags: `class:"public"`
|
||||
string tofu_token = 20; // @gotags: `class:"secret"`
|
||||
uint32 version = 30; // @gotags: `class:"public"`
|
||||
string worker_id = 40; // @gotags: `class:"public"`
|
||||
controller.servers.services.v1.SESSIONSTATUS status = 50; // @gotags: `class:"public"`
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user