From cdf77e32f2e9ff059f498017c0dc1a0d9397f9fc Mon Sep 17 00:00:00 2001 From: kenia Date: Thu, 8 Apr 2021 14:09:57 -0400 Subject: [PATCH] Create warning banners for permissive default-allow and wildcard-intention --- .../topology-metrics/notice/default-allow.hbs | 23 +++++++++++++++++++ .../notice/wildcard-intention.hbs | 23 +++++++++++++++++++ .../templates/dc/services/show/topology.hbs | 6 +++++ 3 files changed, 52 insertions(+) create mode 100644 ui/packages/consul-ui/app/components/topology-metrics/notice/default-allow.hbs create mode 100644 ui/packages/consul-ui/app/components/topology-metrics/notice/wildcard-intention.hbs diff --git a/ui/packages/consul-ui/app/components/topology-metrics/notice/default-allow.hbs b/ui/packages/consul-ui/app/components/topology-metrics/notice/default-allow.hbs new file mode 100644 index 0000000000..b3bf908645 --- /dev/null +++ b/ui/packages/consul-ui/app/components/topology-metrics/notice/default-allow.hbs @@ -0,0 +1,23 @@ + + +

+ {{t "components.consul.topology-metrics.notice.default-allow.header"}} +

+
+ +

+ {{t "components.consul.topology-metrics.notice.default-allow.body"}} +

+
+ +

+ + {{t "components.consul.topology-metrics.notice.default-allow.footer"}} + +

+
+
\ No newline at end of file diff --git a/ui/packages/consul-ui/app/components/topology-metrics/notice/wildcard-intention.hbs b/ui/packages/consul-ui/app/components/topology-metrics/notice/wildcard-intention.hbs new file mode 100644 index 0000000000..90bd65778d --- /dev/null +++ b/ui/packages/consul-ui/app/components/topology-metrics/notice/wildcard-intention.hbs @@ -0,0 +1,23 @@ + + +

+ {{t "components.consul.topology-metrics.notice.wildcard-intention.header"}} +

+
+ +

+ {{t "components.consul.topology-metrics.notice.wildcard-intention.body"}} +

+
+ +

+ + {{t "components.consul.topology-metrics.notice.wildcard-intention.footer"}} + +

+
+
\ No newline at end of file diff --git a/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs b/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs index d9650f24a4..2bc9bfa3d3 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/show/topology.hbs @@ -25,6 +25,12 @@ as |route|> {{#if topology.FilteredByACLs}} {{/if}} + {{#if topology.DefaultAllow}} + + {{/if}} + {{#if topology.WildcardIntention}} + + {{/if}}