mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(s3): verify header and presigned POST signatures under validate-signatures floci.auth.validate-signatures verified only presigned URL signatures. A header-signed request or a presigned POST with a forged signature or an unknown access key was accepted unless enforce-auth was on, and enforce-auth also turns on bucket-policy evaluation, so there was no way to authenticate S3 requests without authorizing them. S3 verifies a signature before, and independently of, deciding from policies and ACLs whether the caller may act. validate-signatures now does the first step for every placement: S3HeaderSignatureFilter runs under either flag, and a browser POST that carries SigV4 form fields is verified. Bucket policies are still not evaluated, and unsigned requests are still left to enforce-auth, which decides anonymous access from policies and ACLs as AWS does. docs/services/s3.md now says what each flag verifies. * chore(s3): keep validatePresignedPostAuth's Javadoc on its method * docs(s3): clarify multi-account credentials under signature verification * docs(s3): update docs/configuration/multi-account.md Signed-off-by: Abhigya <abhigyakrishna21@gmail.com> --------- Signed-off-by: Abhigya <abhigyakrishna21@gmail.com>