Лаб7: mTLS, Argon2id, OpenBao и исследование отзыва worker
Майорова Софья, БВТ2301, на 5. Трек1. HTTPS/TLS/ACL,18 API tests,13 pipeline groups,3 compromise runs,clean clone,persistence. Original tests/API contract preserved; residual CVE triage in REPORT/security.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
global
|
||||
maxconn 1024
|
||||
nbthread 1
|
||||
hard-stop-after 10s
|
||||
|
||||
defaults
|
||||
mode http
|
||||
timeout connect 500ms
|
||||
timeout check 500ms
|
||||
timeout queue 1s
|
||||
timeout client 30s
|
||||
timeout server 30s
|
||||
timeout http-request 3s
|
||||
retries 2
|
||||
retry-on conn-failure
|
||||
option http-server-close
|
||||
|
||||
resolvers docker
|
||||
nameserver docker_dns 127.0.0.11:53
|
||||
accepted_payload_size 8192
|
||||
resolve_retries 2
|
||||
timeout resolve 1s
|
||||
timeout retry 1s
|
||||
hold valid 1s
|
||||
hold nx 1s
|
||||
hold refused 1s
|
||||
hold timeout 1s
|
||||
hold other 1s
|
||||
hold obsolete 1s
|
||||
|
||||
frontend public
|
||||
bind :8443 ssl crt /tls/tls.pem ssl-min-ver TLSv1.2
|
||||
http-request set-var(txn.request_id) uuid()
|
||||
acl oversized req.hdr_val(Content-Length) gt 10485760
|
||||
http-request return status 413 content-type application/json lf-string '{"error":{"code":"payload_too_large","message":"Maximum 10 MiB","request_id":"%[var(txn.request_id)]"}}' hdr X-Request-Id %[var(txn.request_id)] hdr X-Instance-Id tls-ingress if oversized
|
||||
acl unavailable nbsrv(replicas) lt 1
|
||||
http-request return status 503 content-type application/json lf-string '{"error":{"code":"unavailable","message":"No healthy API","request_id":"%[var(txn.request_id)]"}}' hdr X-Request-Id %[var(txn.request_id)] hdr X-Instance-Id tls-ingress if unavailable
|
||||
default_backend replicas
|
||||
|
||||
backend replicas
|
||||
balance roundrobin
|
||||
option httpchk
|
||||
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host api
|
||||
http-check expect status 200
|
||||
default-server inter 1s fall 2 rise 2
|
||||
server-template api 1-4 api:8080 ssl crt /tls/tls.pem ca-file /tls/ca.crt verify required verifyhost api sni str(api) check check-sni api resolvers docker init-addr none resolve-prefer ipv4
|
||||
Reference in New Issue
Block a user