~simpoir/landscape-charm/pass_ping_through_https

« back to all changes in this revision

Viewing changes to lib/relations/tests/test_haproxy.py

  • Committer: 🤖 Landscape Builder
  • Author(s): Alberto Donato
  • Date: 2017-03-20 13:31:47 UTC
  • mfrom: (383.1.3 block-metrics-through-haproxy)
  • Revision ID: _landscape_builder-20170320133147-muuowqgkpkuzxu13
Merge block-metrics-through-haproxy [f=1674291] [r=fginther,adam-collard,landscape-builder] [a=Alberto Donato]
Change the haproxy configuration to prevent access to the /metrics endpoint on the landscape unit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
                 "acl message path_beg -i /message-system",
107
107
                 "acl attachment path_beg -i /attachment",
108
108
                 "acl api path_beg -i /api",
 
109
                 "acl prometheus_metrics path_beg -i /metrics",
 
110
                 "http-request deny if prometheus_metrics",
109
111
                 "use_backend landscape-message if message",
110
112
                 "use_backend landscape-message if attachment",
111
113
                 "use_backend landscape-api if api"],
430
432
                "acl message path_beg -i /message-system",
431
433
                "acl attachment path_beg -i /attachment",
432
434
                "acl api path_beg -i /api",
 
435
                "acl prometheus_metrics path_beg -i /metrics",
 
436
                "http-request deny if prometheus_metrics",
433
437
                "use_backend landscape-message if message",
434
438
                "use_backend landscape-message if attachment",
435
439
                "use_backend landscape-api if api",
485
489
                "acl message path_beg -i /message-system",
486
490
                "acl attachment path_beg -i /attachment",
487
491
                "acl api path_beg -i /api",
 
492
                "acl prometheus_metrics path_beg -i /metrics",
 
493
                "http-request deny if prometheus_metrics",
488
494
                "use_backend landscape-message if message",
489
495
                "use_backend landscape-message if attachment",
490
496
                "use_backend landscape-api if api",