Aleksei Sviridkin
ff21a70985
fix(seaweedfs): remove identities left behind by deleted BucketAccesses
...
Since SeaweedFS 4.08 the S3 gateways move every identity from
/etc/iam/identity.json into /etc/iam/identities/<name>.json, and the
COSI driver up to v0.3.1 revokes only from identity.json. Every
BucketAccess deleted on such a filer left its identity file behind,
with its keys still accepted (seaweedfs/seaweedfs-cosi-driver#11 ). A
driver that deletes the file on revoke does nothing for the files
already left.
A post-install/post-upgrade hook removes a ba-<uid>.json file when no
BucketAccess in any namespace names it, by uid or by
status.accountID. The uid covers a BucketAccess still being granted,
the accountID one restored with its status. The identity directory is
listed before the BucketAccesses: a BucketAccess exists before its
grant writes a file, so a file seen in the first listing whose
BucketAccess still exists is always named by the second. File ages are
not used, because grants and gateway migrations rewrite left-over
files as well. A failed or empty listing removes nothing. Each removal
is logged and recorded as an Event on the HelmRelease. The hook runs
before the Object Lock hook, so in delete mode a left-over identity is
removed before that hook grants it anything.
A filer published for Client-topology clusters holds identities whose
BucketAccesses live in those clusters, so cosi.orphanIdentities
defaults to auto: report there, delete otherwise. An operator can
force either.
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la >
(cherry picked from commit 045f1a9bbc )
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com >
2026-11-25 10:15:41 +00:00
..
2026-11-25 09:58:10 +00:00
2026-10-09 17:12:14 +03:00
2026-11-10 12:52:37 +00:00
2026-11-25 09:58:11 +00:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:07 +00:00
2026-11-25 10:15:39 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-10 12:40:54 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-20 11:14:46 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-21 09:19:39 +00:00
2026-09-27 07:57:30 +03:00
2026-10-07 11:04:00 +03:00
2026-09-10 17:48:22 +05:00
2026-10-07 11:04:00 +03:00
2026-10-21 10:54:55 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-10 12:23:21 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-21 12:20:22 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-22 17:10:05 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-28 14:29:17 +05:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-25 09:46:43 +05:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-10 12:23:22 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-08 19:29:12 +01:00
2026-10-07 11:04:00 +03:00
2026-10-09 16:57:43 +03:00
2026-09-28 01:32:37 +03:00
2026-10-07 11:04:00 +03:00
2026-10-05 14:15:37 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-12 12:00:15 +05:00
2026-10-10 21:47:42 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-20 11:14:46 +00:00
2026-10-02 03:29:15 +03:00
2026-08-28 15:29:29 +05:00
2026-09-26 15:06:42 +03:00
2026-10-09 02:04:39 +03:00
2026-09-05 13:19:17 +05:00
2026-09-05 13:19:17 +05:00
2026-10-03 01:42:38 +03:00
2026-11-25 09:58:09 +00:00
2026-10-03 01:42:38 +03:00
2026-10-03 01:42:38 +03:00
2026-10-09 16:57:43 +03:00
2026-10-01 02:19:17 +03:00
2026-09-05 13:19:17 +05:00
2026-10-07 04:38:06 +03:00
2026-09-05 13:19:17 +05:00
2026-10-09 02:04:40 +03:00
2026-09-05 14:51:06 +05:00
2026-11-10 12:23:20 +00:00
2026-10-07 11:04:00 +03:00
2026-10-20 12:44:59 +00:00
2026-10-07 16:14:34 +03:00
2026-10-06 16:28:51 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-01 19:37:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-21 09:48:25 +00:00
2026-10-21 09:48:25 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-10 13:16:39 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-21 09:17:09 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-10 12:23:22 +00:00
2026-10-11 22:40:47 +08:00
2026-10-11 18:42:11 +03:00
2026-11-25 09:58:08 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-26 12:24:00 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-26 12:24:00 +00:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:06 +00:00
2026-10-07 11:04:00 +03:00
2026-09-29 11:29:04 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-29 11:20:27 +03:00
2026-11-25 09:58:09 +00:00
2026-11-25 09:58:09 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-09 16:57:43 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-10 12:40:56 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-27 16:58:28 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-09-18 17:45:21 +03:00
2026-10-10 21:15:48 +03:00
2026-11-10 12:23:20 +00:00
2026-11-10 12:40:53 +00:00
2026-10-07 11:04:00 +03:00
2026-10-11 01:23:10 +02:00
2026-10-11 01:23:10 +02:00
2026-10-10 21:09:09 +03:00
2026-11-25 09:58:12 +00:00
2026-10-07 11:04:00 +03:00
2026-10-21 10:57:11 +00:00
2026-10-29 07:49:12 +00:00
2026-10-29 07:49:12 +00:00
2026-11-10 12:40:52 +00:00
2026-10-07 11:04:00 +03:00
2026-10-10 21:15:48 +03:00
2026-10-10 21:15:48 +03:00
2026-10-09 17:12:14 +03:00
2026-10-09 17:12:14 +03:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:10 +00:00
2026-11-25 09:58:10 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:10 +00:00
2026-11-25 09:58:10 +00:00
2026-11-25 09:58:10 +00:00
2026-10-07 11:04:00 +03:00
2026-11-10 12:23:21 +00:00
2026-11-25 09:58:10 +00:00
2026-11-25 09:58:10 +00:00
2026-11-25 09:58:10 +00:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:10 +00:00
2026-11-25 09:58:10 +00:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:10 +00:00
2026-10-10 20:37:53 +03:00
2026-11-25 09:58:10 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:11 +00:00
2026-11-25 10:15:41 +00:00
2026-10-21 13:46:50 +00:00
2026-11-10 12:23:21 +00:00
2026-10-22 10:31:14 +00:00
2026-10-22 10:31:14 +00:00
2026-10-07 11:04:00 +03:00
2026-10-02 11:02:36 +03:00
2026-10-21 09:48:25 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-10-07 11:04:00 +03:00
2026-11-25 09:58:11 +00:00
2026-11-25 09:58:11 +00:00
2026-10-07 11:04:00 +03:00
2026-10-07 15:41:06 +03:00
2026-10-20 11:14:46 +00:00
2026-09-26 16:08:25 +03:00
2026-09-26 17:53:13 +03:00
2026-10-07 11:04:00 +03:00
2026-09-28 01:32:36 +03:00
2026-10-07 11:04:00 +03:00
2026-10-02 11:02:18 +03:00
2026-11-25 09:58:11 +00:00