From 28768d5b5b48a13709ddf457e4e8768805e2fdd2 Mon Sep 17 00:00:00 2001 From: "Shannon Roberts (Beagin)" Date: Thu, 26 Dec 2024 09:24:24 -0800 Subject: [PATCH] [VAULT-33207] Update Policy Modal links to use HDS, add ACL Policies "get started" link (#29254) * [VAULT-33207] Update Policy Modal links to use HDS, add ACL Policies "get started" link * fix failing test --- .../core/addon/components/policy-example.hbs | 20 +++++++++++-------- .../components/policy-example-test.js | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/ui/lib/core/addon/components/policy-example.hbs b/ui/lib/core/addon/components/policy-example.hbs index 638089f752..4c9ac37598 100644 --- a/ui/lib/core/addon/components/policy-example.hbs +++ b/ui/lib/core/addon/components/policy-example.hbs @@ -6,15 +6,16 @@
{{#if (eq @policyType "acl")}}

- ACL Policies are written in Hashicorp Configuration Language ( - HCL + ACL Policies + are written in Hashicorp Configuration Language ( + HCL ) or JSON and describe which paths in Vault a user or machine is allowed to access. Here is an example policy:

{{else if (eq @policyType "rgp")}}

Role Governing Policies (RGPs) are tied to client tokens or identities which is similar to - ACL policies. They use - Sentinel + ACL policies. They use + Sentinel as a language framework to enable fine-grained policy decisions.

@@ -31,9 +32,9 @@ Endpoint Governing Policies (EGPs) are tied to particular paths (e.g. aws/creds/ ) instead of tokens. They use - Sentinel + Sentinel as a language to access - properties + properties of the incoming requests.

@@ -55,8 +56,11 @@ More information about {{uppercase @policyType}} policies can be found - + here. - +

\ No newline at end of file diff --git a/ui/tests/integration/components/policy-example-test.js b/ui/tests/integration/components/policy-example-test.js index 37659b0585..831f5c659f 100644 --- a/ui/tests/integration/components/policy-example-test.js +++ b/ui/tests/integration/components/policy-example-test.js @@ -50,7 +50,7 @@ module('Integration | Component | policy-example', function (hooks) { assert .dom(SELECTORS.policyDescription('rgp')) .hasText( - 'Role Governing Policies (RGPs) are tied to client tokens or identities which is similar to ACL policies . They use Sentinel as a language framework to enable fine-grained policy decisions.' + 'Role Governing Policies (RGPs) are tied to client tokens or identities which is similar to ACL policies. They use Sentinel as a language framework to enable fine-grained policy decisions.' ); });