From 1ec0851ae802f731318b66c781cf19567377301b Mon Sep 17 00:00:00 2001 From: Rithin Pullela Date: Wed, 29 Jan 2025 14:45:07 -0800 Subject: [PATCH] [Backport 2.x] Adds LTR transport actions to the static dropdown list of cluster permissions (#2170) * Adds LTR transport actions to the static dropdown list of cluster permissions Signed-off-by: rithin-pullela-aws * add security plugin download to deal with CI failures Signed-off-by: rithin-pullela-aws --------- Signed-off-by: rithin-pullela-aws --- .github/actions/download-plugin/action.yml | 4 ++-- public/apps/configuration/constants.tsx | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/actions/download-plugin/action.yml b/.github/actions/download-plugin/action.yml index 5b11ff291..09c09fe2e 100644 --- a/.github/actions/download-plugin/action.yml +++ b/.github/actions/download-plugin/action.yml @@ -25,7 +25,7 @@ runs: mvn dependency:get \ -DremoteRepositories=https://aws.oss.sonatype.org/content/repositories/snapshots/ \ -Dartifact=org.opensearch.plugin:${{ inputs.plugin-name }}:${{ inputs.plugin-version }}-SNAPSHOT:zip \ - -Dtransitive=false \ - -Ddest=${{ inputs.download-location }}.zip + -Dtransitive=false + cp ~/.m2/repository/org/opensearch/plugin/${{ inputs.plugin-name }}/${{ inputs.plugin-version }}-SNAPSHOT/${{ inputs.plugin-name }}-${{ inputs.plugin-version }}-SNAPSHOT.zip ${{ inputs.download-location }}.zip shell: bash \ No newline at end of file diff --git a/public/apps/configuration/constants.tsx b/public/apps/configuration/constants.tsx index a1a79cb06..0466c8fbf 100644 --- a/public/apps/configuration/constants.tsx +++ b/public/apps/configuration/constants.tsx @@ -46,6 +46,13 @@ export const CLUSTER_PERMISSIONS: string[] = [ 'cluster:admin/ingest/pipeline/put', 'cluster:admin/ingest/pipeline/simulate', 'cluster:admin/ingest/processor/grok/get', + 'cluster:admin/ltr/caches', + 'cluster:admin/ltr/caches/stats', + 'cluster:admin/ltr/featurestore/data', + 'cluster:admin/ltr/featurestore/list', + 'cluster:admin/ltr/store/add-features-to-set', + 'cluster:admin/ltr/store/create-model-from-set', + 'cluster:admin/ltr/stats', 'cluster:admin/nodes/reload_secure_settings', 'cluster:admin/persistent/completion', 'cluster:admin/persistent/remove',