Skip to content

Commit 02ce21a

Browse files
fen-qinRyanL1997cwperksDarshitChanpura
authored
update read access to specific indices (#5590)
Signed-off-by: Fen Qin <[email protected]> Signed-off-by: Darshit Chanpura <[email protected]> Signed-off-by: Craig Perkins <[email protected]> Co-authored-by: Jialiang Liang <[email protected]> Co-authored-by: Craig Perkins <[email protected]> Co-authored-by: Darshit Chanpura <[email protected]> Co-authored-by: Craig Perkins <[email protected]>
1 parent 711f7a0 commit 02ce21a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1111
- Ensure all restHeaders from ActionPlugin.getRestHeaders are carried to threadContext for tracing ([#5396](https://github.com/opensearch-project/security/pull/5396))
1212
- Deprecate plugins.security.system_indices.indices ([#5775](https://github.com/opensearch-project/security/pull/5775))
1313
- Allow overlap of static and custom security configs, but prefer static ([#5805](https://github.com/opensearch-project/security/pull/5805))
14+
- Update read access to specific search-relevance indices ([#5590](https://github.com/opensearch-project/security/pull/5590))
1415

1516
### Features
1617

config/roles.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ search_relevance_full_access:
487487
- '*'
488488
allowed_actions:
489489
- 'indices:admin/mappings/get'
490-
- 'indices:data/read/search*'
490+
- 'indices:data/read/*'
491491

492492
# Allow users to read Search Relevance resources
493493
search_relevance_read_access:
@@ -497,6 +497,12 @@ search_relevance_read_access:
497497
- 'cluster:admin/opensearch/search_relevance/judgment/get'
498498
- 'cluster:admin/opensearch/search_relevance/queryset/get'
499499
- 'cluster:admin/opensearch/search_relevance/search_configuration/get'
500+
index_permissions:
501+
- index_patterns:
502+
- 'search-relevance-*'
503+
allowed_actions:
504+
- 'indices:admin/mappings/get'
505+
- 'indices:data/read/*'
500506

501507
# Allow users to read Forecast resources
502508
forecast_read_access:

0 commit comments

Comments
 (0)