Skip to content

Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.

feat(auth): authenticate requests without an IAM action and authorize SES v2 under AUTH=true (#2274)

iot-rocketb417abe34750
diff --git a/ministack/app.py b/ministack/app.py
index 85bf46cc..6506a31c 100644
--- a/ministack/app.py
+++ b/ministack/app.py
@@ -1629,6 +1629,8 @@ async def _handle_s3_control_request(path: str, method: str, body: bytes, query_
or handler(method, path, headers, body, query_params)
)
return status, {**resp_headers, "x-amzn-requestid": request_id}, resp_body
+ if failure := _authenticate_only("s3", headers, query_params, request_id):
+ return failure
if path.startswith("/v20180820/tags/"):
raw_arn = path[len("/v20180820/tags/") :]