From 7b39dfe02322f4ae3a01a4a90111ef8d4c1a8a87 Mon Sep 17 00:00:00 2001 From: Somesh Gupta Date: Thu, 30 Jan 2025 17:50:09 +0530 Subject: [PATCH] Changed CatShardsAction to internal to allow non-admin users Signed-off-by: Somesh Gupta --- CHANGELOG.md | 1 + .../opensearch/action/admin/cluster/shards/CatShardsAction.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index baced39bacfce..8b9deb41c4092 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -124,6 +124,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Fix AutoDateHistogramAggregator rounding assertion failure ([#17023](https://github.com/opensearch-project/OpenSearch/pull/17023)) - Add highlighting for wildcard search on `match_only_text` field ([#17101](https://github.com/opensearch-project/OpenSearch/pull/17101)) - Fix the failing CI's with `Failed to load eclipse jdt formatter` error ([#17172](https://github.com/opensearch-project/OpenSearch/pull/17172)) +- Changed CatShardsAction to internal to allow non-admin users. ([#17203](https://github.com/opensearch-project/OpenSearch/pull/17203)) ### Security diff --git a/server/src/main/java/org/opensearch/action/admin/cluster/shards/CatShardsAction.java b/server/src/main/java/org/opensearch/action/admin/cluster/shards/CatShardsAction.java index 381a950fe9a79..733da74c62087 100644 --- a/server/src/main/java/org/opensearch/action/admin/cluster/shards/CatShardsAction.java +++ b/server/src/main/java/org/opensearch/action/admin/cluster/shards/CatShardsAction.java @@ -17,7 +17,7 @@ */ public class CatShardsAction extends ActionType { public static final CatShardsAction INSTANCE = new CatShardsAction(); - public static final String NAME = "cluster:monitor/shards"; + public static final String NAME = "internal:monitor/shards"; private CatShardsAction() { super(NAME, CatShardsResponse::new);