Files
archie/proto/state/v1/task_grant.proto
T
sam a971947c39 refactor(state)!: split StateStoreService into per-domain services
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.
2026-10-25 19:54:27 +11:00

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;
}