lab7: live stand integration fixes and verified evidence
This commit is contained in:
@@ -52,10 +52,11 @@ listen stats
|
||||
bind *:8404 ssl crt /run/certs/server.pem ca-file /run/certs/ca.crt crl-file /run/certs/ca.crl verify optional
|
||||
acl is_metrics path /metrics
|
||||
acl is_stats path_beg /stats
|
||||
acl prom_cert ssl_c_used ssl_c_verify 0
|
||||
acl prom_used ssl_c_used
|
||||
acl prom_verified ssl_c_verify 0
|
||||
acl prom_cn ssl_c_s_dn(cn) -m str prometheus
|
||||
acl prom_san ssl_c_san -m str DNS:prometheus
|
||||
http-request use-service prometheus-exporter if is_metrics prom_cert prom_cn prom_san
|
||||
http-request use-service prometheus-exporter if is_metrics prom_used prom_verified prom_cn prom_san
|
||||
http-request deny deny_status 403 if is_metrics
|
||||
acl stats_auth http_auth(ops_stats)
|
||||
http-request auth realm haproxy-stats if is_stats !stats_auth
|
||||
|
||||
Reference in New Issue
Block a user