forked from mtusi2026/mtusi2026lab7
feat(security): add scoped identities, TLS boundaries and OpenBao bootstrap
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
global
|
||||
log stdout format raw local0
|
||||
maxconn 512
|
||||
ssl-default-bind-options ssl-min-ver TLSv1.3 no-tls-tickets
|
||||
ssl-default-server-options ssl-min-ver TLSv1.3 no-tls-tickets
|
||||
hard-stop-after 10s
|
||||
mworker-max-reloads 2
|
||||
stats socket /tmp/admin.sock mode 600 level admin
|
||||
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
log-format "http status=%ST duration_ms=%Ta"
|
||||
timeout connect 1s
|
||||
timeout client 15s
|
||||
timeout server 8s
|
||||
timeout http-request 10s
|
||||
timeout http-keep-alive 5s
|
||||
retries 0
|
||||
option httpclose
|
||||
|
||||
resolvers docker
|
||||
nameserver dns 127.0.0.11:53
|
||||
resolve_retries 3
|
||||
timeout resolve 1s
|
||||
timeout retry 1s
|
||||
hold valid 1s
|
||||
hold obsolete 1s
|
||||
hold nx 1s
|
||||
|
||||
frontend public
|
||||
bind :8443 ssl crt /run/identity/current/bundle.pem
|
||||
use_backend health if { path_beg /health/ }
|
||||
default_backend messenger
|
||||
|
||||
backend messenger
|
||||
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 check inter 1s fastinter 250ms fall 2 rise 1 resolvers docker init-addr libc,none resolve-prefer ipv4
|
||||
server-template api 1-8 api:8443 ssl verify required ca-file /trust/ca.pem crt /run/identity/current/bundle.pem sni str(api) check-sni api verifyhost api no-ssl-reuse
|
||||
|
||||
backend health
|
||||
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 check inter 1s fall 2 rise 1 resolvers docker init-addr libc,none
|
||||
server-template api 1-8 api:8443 ssl verify required ca-file /trust/ca.pem crt /run/identity/current/bundle.pem sni str(api) check-sni api verifyhost api no-ssl-reuse
|
||||
|
||||
frontend internal_metrics
|
||||
bind 127.0.0.1:8404
|
||||
http-request use-service prometheus-exporter if { path /metrics }
|
||||
http-request deny
|
||||
Reference in New Issue
Block a user