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