One gRPC service per domain in state.v1 (tasks, executions, accounts, identities, packages, captures, bindings, access, orgs, alerts and so on), each with its own server type in staterpc. RPC and message names and numbers are unchanged.
32 lines
1.0 KiB
Protocol Buffer
32 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package state.v1;
|
|
|
|
// Administrative task credential lifecycle. Worker credentials cannot call these.
|
|
service TaskGrantService {
|
|
rpc RegisterTaskGrant(RegisterTaskGrantRequest) returns (RegisterTaskGrantResponse);
|
|
rpc RevokeTaskGrant(RevokeTaskGrantRequest) returns (RevokeTaskGrantResponse);
|
|
rpc ResolveTaskGrant(ResolveTaskGrantRequest) returns (ResolveTaskGrantResponse);
|
|
}
|
|
|
|
message RegisterTaskGrantRequest {
|
|
int64 task_id = 1;
|
|
string token = 2;
|
|
int64 lifetime_seconds = 3;
|
|
}
|
|
message RegisterTaskGrantResponse {}
|
|
message RevokeTaskGrantRequest {
|
|
string token = 1;
|
|
}
|
|
message RevokeTaskGrantResponse {}
|
|
// ResolveTaskGrantRequest names a run credential; the response is the task
|
|
// it was issued for.
|
|
message ResolveTaskGrantRequest { string token = 1; }
|
|
message ResolveTaskGrantResponse {
|
|
int64 task_id = 1;
|
|
// Canonical execution identity; empty names the instance root RPC route.
|
|
string execution_identity = 2;
|
|
// Canonical principal, including the instance root.
|
|
string principal_id = 3;
|
|
}
|