[8.18] [Search] Add read version of enterprise search privilege (#211810) (#212231)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Search] Add read version of enterprise search privilege
(#211810)](https://github.com/elastic/kibana/pull/211810)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-24T12:14:43Z","message":"[Search]
Add read version of enterprise search privilege (#211810)\n\n##
Summary\n\nThis adds a read version of the default Search privilege.
This will make\nsure that viewer users don't land on a 403 error when
logging into a\nSearch solution.\n\nOptimizing the experience for the
viewer role will be a separate
task.","sha":"2b621eef9b420f93483f3dedd1ad1f1c2a2d7eba","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Search]
Add read version of enterprise search
privilege","number":211810,"url":"https://github.com/elastic/kibana/pull/211810","mergeCommit":{"message":"[Search]
Add read version of enterprise search privilege (#211810)\n\n##
Summary\n\nThis adds a read version of the default Search privilege.
This will make\nsure that viewer users don't land on a 403 error when
logging into a\nSearch solution.\n\nOptimizing the experience for the
viewer role will be a separate
task.","sha":"2b621eef9b420f93483f3dedd1ad1f1c2a2d7eba"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211810","number":211810,"mergeCommit":{"message":"[Search]
Add read version of enterprise search privilege (#211810)\n\n##
Summary\n\nThis adds a read version of the default Search privilege.
This will make\nsure that viewer users don't land on a 403 error when
logging into a\nSearch solution.\n\nOptimizing the experience for the
viewer role will be a separate
task.","sha":"2b621eef9b420f93483f3dedd1ad1f1c2a2d7eba"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2025-02-28 05:52:39 +11:00 committed by GitHub
parent f0e0a72f00
commit 56e8ebcac6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 11 deletions

View file

@ -230,10 +230,12 @@ export class EnterpriseSearchPlugin implements Plugin<void, void, PluginsSetup,
ui: [],
},
read: {
disabled: true,
app: ['kibana', ...PLUGIN_IDS],
api: [],
catalogue: PLUGIN_IDS,
savedObject: {
all: [],
read: [],
read: [ES_TELEMETRY_NAME, AS_TELEMETRY_NAME, WS_TELEMETRY_NAME],
},
ui: [],
},

View file

@ -85,21 +85,14 @@ export default function catalogueTests({ getService }: FtrProviderContext) {
const exceptions = [
'ml_file_data_visualizer',
'monitoring',
'enterpriseSearch',
'enterpriseSearchContent',
'enterpriseSearchAnalytics',
'enterpriseSearchApplications',
'enterpriseSearchAISearch',
'enterpriseSearchVectorSearch',
'enterpriseSearchSemanticSearch',
'enterpriseSearchElasticsearch',
'searchPlayground',
'searchInferenceEndpoints',
'searchSynonyms',
'appSearch',
'observabilityAIAssistant',
'workplaceSearch',
'searchExperiences',
'spaces',
...esFeatureExceptions,
];

View file

@ -63,7 +63,6 @@ export default function navLinksTests({ getService }: FtrProviderContext) {
navLinksBuilder.except(
'monitoring',
'observabilityAIAssistant',
'enterpriseSearch',
'enterpriseSearchApplications',
'enterpriseSearchAnalytics',
'searchPlayground',
@ -73,7 +72,11 @@ export default function navLinksTests({ getService }: FtrProviderContext) {
'securitySolutionAssistant',
'securitySolutionAttackDiscovery',
'securitySolutionSiemMigrations',
'dataQuality'
'dataQuality',
{
feature: 'enterpriseSearch',
apps: ['appSearch', 'workplaceSearch'],
}
)
);
break;