lab7: безопасность, mTLS, OpenBao и PKI lifecycle
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
global
|
||||
log stdout format raw local0
|
||||
maxconn 256
|
||||
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
|
||||
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
log-format "%ST %Tt %b"
|
||||
timeout connect 3s
|
||||
timeout client 10s
|
||||
timeout server 10s
|
||||
|
||||
frontend operator_management
|
||||
bind *:15671 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
||||
acl operator ssl_c_s_dn(CN) -m str operator
|
||||
http-request deny deny_status 403 unless operator
|
||||
default_backend management_loopback
|
||||
|
||||
backend management_loopback
|
||||
server management 127.0.0.1:15672
|
||||
|
||||
frontend prometheus_scrape
|
||||
bind *:15693 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
||||
acl monitor ssl_c_s_dn(CN) -m str prometheus operator
|
||||
http-request deny deny_status 403 unless monitor
|
||||
http-request deny deny_status 403 unless { method GET } { path /metrics }
|
||||
default_backend metrics_loopback
|
||||
|
||||
backend metrics_loopback
|
||||
server metrics 127.0.0.1:15692
|
||||
@@ -0,0 +1 @@
|
||||
[rabbitmq_management,rabbitmq_prometheus,rabbitmq_auth_mechanism_ssl].
|
||||
@@ -0,0 +1,24 @@
|
||||
# Native AMQP TLS, no plaintext or password-mechanism fallback.
|
||||
listeners.tcp = none
|
||||
listeners.ssl.default = 5671
|
||||
ssl_options.cacertfile = /run/identity/current/ca.crt
|
||||
ssl_options.certfile = /run/identity/current/tls.crt
|
||||
ssl_options.keyfile = /run/identity/current/tls.key
|
||||
ssl_options.verify = verify_peer
|
||||
ssl_options.fail_if_no_peer_cert = true
|
||||
ssl_options.versions.1 = tlsv1.3
|
||||
ssl_options.versions.2 = tlsv1.2
|
||||
auth_mechanisms.1 = EXTERNAL
|
||||
ssl_cert_login_from = subject_alternative_name
|
||||
ssl_cert_login_san_type = dns
|
||||
ssl_cert_login_san_index = 0
|
||||
|
||||
definitions.import_backend = local_filesystem
|
||||
definitions.local.path = /run/backend/definitions.json
|
||||
|
||||
# Admin/scrape transports never leave this container's shared loopback boundary.
|
||||
management.tcp.ip = 127.0.0.1
|
||||
management.tcp.port = 15672
|
||||
prometheus.tcp.ip = 127.0.0.1
|
||||
prometheus.tcp.port = 15692
|
||||
prometheus.return_per_object_metrics = true
|
||||
Reference in New Issue
Block a user