diff --git a/ui-v2/app/components/policy-form.js b/ui-v2/app/components/policy-form.js index 0fd9e76bfa..cbd7cd13af 100644 --- a/ui-v2/app/components/policy-form.js +++ b/ui-v2/app/components/policy-form.js @@ -7,6 +7,7 @@ export default FormComponent.extend({ datacenterRepo: service('repository/dc/component'), type: 'policy', name: 'policy', + allowServiceIdentity: true, classNames: ['policy-form'], isScoped: false, diff --git a/ui-v2/app/components/policy-selector.js b/ui-v2/app/components/policy-selector.js index 6fd42ea413..a36115af04 100644 --- a/ui-v2/app/components/policy-selector.js +++ b/ui-v2/app/components/policy-selector.js @@ -12,6 +12,7 @@ export default ChildSelectorComponent.extend({ datacenterRepo: service('repository/dc/component'), name: 'policy', type: 'policy', + allowServiceIdentity: true, classNames: ['policy-selector'], init: function() { this._super(...arguments); diff --git a/ui-v2/app/templates/components/policy-form.hbs b/ui-v2/app/templates/components/policy-form.hbs index 6ae0e8521a..fb9f8a46c0 100644 --- a/ui-v2/app/templates/components/policy-form.hbs +++ b/ui-v2/app/templates/components/policy-form.hbs @@ -3,8 +3,9 @@ {{#yield-slot name='template'}} {{else}} - Policy or service identity? + Policy{{if allowServiceIdentity ' or service identity?' ''}} + {{#if allowServiceIdentity}}
A Service Identity is default policy with a configurable service name. This saves you some time and effort you're using Consul for Connect features.
By adding policies to this namespaces, you will apply them to all tokens created within this namespace.