Files
floci/docs/configuration
Abhigya 8f904afa5a fix(s3): verify header and presigned POST signatures under validate-signatures (#4786)
* 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>
2026-10-01 10:14:41 -04:00
..