Files
cozystack/pkg/registry/core
Andrei Kvapil 0f97ae304a feat(api): mint engine-issued credentials by waiting for the new grant
The keys of an engine-issued account, one whose template names a
BucketAccess, come from a COSI grant the API cannot make, so a mint
writes the account Secret without keys and with a request id, waits a
bounded time for cozystack-controller to store the keys of a new grant
marked with that id, and returns them once together with the access key.
A revoke waits the same way for the controller to mark the Secret once
the old grant is gone, and returns nothing. A wait that runs out answers
a retryable timeout and shows nothing, so the same keys are never
disclosed twice. Both operations are refused while a BucketAccess the
controller did not create holds the template's name, since the
controller could serve neither. The wait is set by
--credentials-cosi-wait.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-02 20:38:26 +01:00
..