mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 20:56:02 +09:00
A patched COSI driver only fixes new grants. Every identity issued earlier holds Read and Write alone and loses Object Lock access the moment SeaweedFS starts checking the dedicated actions. A hook grants each identity the dedicated actions its Read or Write grant covered, with the same bucket suffix, through the filer IAM API. It runs from the seaweedfs-system chart rather than as a platform migration so it reaches every tenant on every platform variant, and after the release is applied so the new driver is already the one granting. It runs on install as well as upgrade: Flux remediates a failed install by reinstalling, and the filer keeps its identities across that. The older SeaweedFS ignores the extra actions, so a cluster that runs this before the version bump keeps old keys working through the bump; one that takes both in a single upgrade has them refused until the hook finishes. A failure of the grant ends in a Warning Event on the HelmRelease instead of a failed hook: Flux remediates a failed upgrade by rolling back, which would undo the bump this exists for. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>