This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@ global
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
option httplog
|
||||
# Never log raw URLs, query strings, headers or request bodies.
|
||||
log-format "ingress status=%ST bytes=%B backend=%b server=%s termination=%tsc"
|
||||
option forwardfor
|
||||
timeout connect 1s
|
||||
timeout client 30s
|
||||
|
||||
@@ -7,6 +7,8 @@ frontend s3_tls
|
||||
bind :8333 ssl crt /run/secrets/server.pem ssl-min-ver TLSv1.2
|
||||
# Multipart form POST is not used by this application; deny it at the boundary.
|
||||
http-request deny if { method POST }
|
||||
# Reject repeated Authorization fields; commas inside SigV4 are valid.
|
||||
http-request deny unless { req.fhdr_cnt(Authorization) eq 1 }
|
||||
# Only the four locally provisioned SigV4 identities may use this endpoint.
|
||||
acl admin_auth req.hdr(Authorization) -m reg -f /run/secrets/admin_acl
|
||||
acl api_auth req.hdr(Authorization) -m reg -f /run/secrets/api_acl
|
||||
|
||||
Reference in New Issue
Block a user