Files
archie/proto/state/v1/task_grant.proto
T
sam 658a4cb50e
Quality / check (pull_request) Canceled after 0s
ci/woodpecker/pr/quality Pipeline was canceled
chore(runtime): remove code left dead by the Kit removal (#1877)
Drops Client.TaskPrincipalForCredential and the principal_id field only
it read, Reporter.ReportToolCall, Pool.EnsureImage and Pool.Instance,
and the binding cipher's exported domain API. Clears the remaining
harness references from the audit target kinds, docs and comments.
2026-11-12 21:42:17 +11:00

32 lines
999 B
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;
reserved 3;
reserved "principal_id";
}