From a332e10b2b7f5245da587c7a06cab413feea00d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Tue, 24 Jan 2023 08:47:27 -1000 Subject: [PATCH] Fix plugin configuration path (#1304) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dashboard has references to an old path that does not exist anymore: `plugins/opensearch-security/securityconfig/config.yml`. It was replaced by `config/opensearch-security/config.yml` in this commit: https://github.com/opensearch-project/security/commit/b44d7eafc1250a0d58828ef6f9cef48b5755fefc Fix the last occurences of `plugins/opensearch-security/securityconfig`. Signed-off-by: Romain Tartière Co-authored-by: Stephen Crawford <65832608+scrawfor99@users.noreply.github.com> (cherry picked from commit 82c27c7c235a3f075e697d566b6fe3c97f4fdcbd) --- .../configuration/panels/auth-view/instruction-view.tsx | 6 +++--- public/apps/configuration/panels/get-started.tsx | 2 +- .../panels/test/__snapshots__/get-started.test.tsx.snap | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/public/apps/configuration/panels/auth-view/instruction-view.tsx b/public/apps/configuration/panels/auth-view/instruction-view.tsx index 6133ac865..c06383e23 100644 --- a/public/apps/configuration/panels/auth-view/instruction-view.tsx +++ b/public/apps/configuration/panels/auth-view/instruction-view.tsx @@ -35,9 +35,9 @@ export function InstructionView(props: { config: ClientConfigType }) { In order to use Security plugin, you must decide on authentication authc{' '} and authorization backends authz. Use{' '} - plugins/opensearch-security/securityconfig/config.yml to define how to - retrieve and verify the user credentials, and how to fetch additional roles from backend - system if needed. + config/opensearch-security/config.yml to define how to retrieve and + verify the user credentials, and how to fetch additional roles from backend system if + needed. diff --git a/public/apps/configuration/panels/get-started.tsx b/public/apps/configuration/panels/get-started.tsx index c892a7413..e00e43372 100644 --- a/public/apps/configuration/panels/get-started.tsx +++ b/public/apps/configuration/panels/get-started.tsx @@ -41,7 +41,7 @@ const addBackendStep = { <> Add authentication(authc)and authorization(authz) - information toplugins/opensearch-security/securityconfig/config.yml. The + information toconfig/opensearch-security/config.yml. The authc section contains the backends to check user credentials against. The authz section contains any backends to fetch backend roles from. The most common example of a diff --git a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap index 8581923fe..df32d3d4d 100644 --- a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap +++ b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap @@ -264,7 +264,7 @@ exports[`Get started (landing page) renders when backend configuration is enable information to - plugins/opensearch-security/securityconfig/config.yml + config/opensearch-security/config.yml . The