mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 07:03:45 +09:00
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>