mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
Fixes a part of #1709 This adds declarative validation to atelet's `AteomSupport` RPCs. Malformed requests are now rejected at atelet instead of being forwarded to the control plane. Validation runs after authentication. | RPC | Rules | |---|---| | `MintActorCertificate` | actor atespace/name are required short names; actor UID is a required UUID; the CSR is required and at most 16 KiB | | `RequestActorSuspend` | actor atespace/name are required short names; actor UID is a required UUID | | `SetWorkerCapacity` | `capacity` is required and must follow the `WorkerResources` rules ateapi declares, shared through `internal/resources` | The `AteomHerder` RPCs and `WorkloadSpec` get their validation in a follow-up PR. - [ ] Tests pass - [ ] Appropriate changes to documentation are included in the PR