mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
* fix(s3): report the owner and ACL grantees as a canonical user id S3 reported the 12-digit account id where AWS reports the account's canonical user id: the bucket owner in ListBuckets, the owner and the multipart initiator in ListParts, and every CanonicalUser grantee and Owner the ACL responses name. All of them now answer the canonical id, a 64-character lowercase hex string Floci derives as the SHA-256 of the account id, so the same account answers the same id across calls, restarts and storage modes and two accounts never share one. The account id stays the internal identity; only the emitted value changes, and ACLs persisted by an older Floci keep serving the form they store. Owner evaluations, the public-access checks and bucket-policy CanonicalUser principals accept the canonical id and the account id alike, so stored policies and scripts written against the old form keep working. Closes #6242 Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * test(s3): say why the cleanup catches stay silent The two new compatibility cleanup catches swallowed without a word, which the guide allows only for a named, explained tolerance. Both now name the reason: cleanup must not mask the assertion. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * test(s3): expect the canonical owner in the namespace ACL assertions The cross-account object metadata test still expected the raw account id in the ACLs, which the canonical owner id broke, and its ACCOUNT_B assertFalse checks passed whatever the ACL held. All four assertions now name the accounts the way the ACLs do, through AwsCanonicalUserId. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> * test(s3): share the compatibility cleanup between the two tests The explained cleanup catches landed on the wrong method, a helper that was already on main, leaving the new canonical owner test with bare catches. One deleteObjectAndBucketQuietly helper now holds the commented catches and serves both tests. Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com> --------- Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>