diff --git a/ui-v2/app/components/node-identity/index.hbs b/ui-v2/app/components/node-identity/index.hbs index 7ee0bfa2e..e570640be 100644 --- a/ui-v2/app/components/node-identity/index.hbs +++ b/ui-v2/app/components/node-identity/index.hbs @@ -1,6 +1,19 @@ +{{#if (env "CONSUL_NSPACES_ENABLED")}} +namespace "default" { + node "{{name}}" { + policy = "write" + } +} +namespace_prefix "" { + service_prefix "" { + policy = "read" + } +} +{{else}} node "{{name}}" { policy = "write" } service_prefix "" { policy = "read" -} \ No newline at end of file +} +{{/if}} \ No newline at end of file diff --git a/ui-v2/app/components/policy-form/index.hbs b/ui-v2/app/components/policy-form/index.hbs index 01137a652..6204c5e5b 100644 --- a/ui-v2/app/components/policy-form/index.hbs +++ b/ui-v2/app/components/policy-form/index.hbs @@ -36,7 +36,7 @@ Rules (HCL Format) {{#if (eq item.template 'service-identity')}} - {{~component 'service-identity' name=item.Name~}} + {{~component 'service-identity' nspace=nspace name=item.Name~}} {{else if (eq item.template 'node-identity')}} diff --git a/ui-v2/app/components/policy-selector/index.hbs b/ui-v2/app/components/policy-selector/index.hbs index 38cbea1df..270e89f33 100644 --- a/ui-v2/app/components/policy-selector/index.hbs +++ b/ui-v2/app/components/policy-selector/index.hbs @@ -21,7 +21,7 @@

New Policy

- +