mirror of
https://github.com/floci-io/floci.git
synced 2026-12-04 10:38:00 -05:00
S3CopyObjectSourcePermissionIntegrationTest has been failing 9 of 9 on main since #3539 merged, taking shard 3 with it on every commit since. #3539 and #3573 were each green on their own branch and are incompatible merged. The tests here build an Authorization header by hand with a literal Signature=abc while the profile sets floci.services.s3.enforce-auth, and #3573 added S3HeaderSignatureFilter, which verifies that signature. Every request now fails at 403 before reaching the handler, including the createBucketAsRoot setup, so all nine tests fail for the same reason. #3573 also added S3RequestSigner for exactly this, and rewrote S3AuthEnforcementIntegrationTest to use it. Do the same here: sign the root calls with a shared signer, and give createUser a return type that carries the secret access key it was discarding, since signing needs it. The IAM calls are left alone; they are guarded by a separate setting and pass. No production code changes and no assertion changes: the same nine cases still assert the same allow and deny outcomes.