Skip to content

Commit

Permalink
[Search] Add read version of enterprise search privilege (elastic#211810
Browse files Browse the repository at this point in the history
)

## Summary

This adds a read version of the default Search privilege. This will make
sure that viewer users don't land on a 403 error when logging into a
Search solution.

Optimizing the experience for the viewer role will be a separate task.
  • Loading branch information
sphilipse authored Feb 24, 2025
1 parent 74eb39e commit 2b621ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,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: [],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,14 @@ export default function catalogueTests({ getService }: FtrProviderContext) {
const exceptions = [
'ml_file_data_visualizer',
'monitoring',
'enterpriseSearch',
'enterpriseSearchContent',
'enterpriseSearchAnalytics',
'enterpriseSearchApplications',
'enterpriseSearchAISearch',
'enterpriseSearchVectorSearch',
'enterpriseSearchSemanticSearch',
'enterpriseSearchElasticsearch',
'searchPlayground',
'elasticsearchIndices',
'elasticsearchStart',
'searchInferenceEndpoints',
'searchSynonyms',
'appSearch',
'observabilityAIAssistant',
'workplaceSearch',
'searchExperiences',
'spaces',
...esFeatureExceptions,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default function navLinksTests({ getService }: FtrProviderContext) {
navLinksBuilder.except(
'monitoring',
'observabilityAIAssistant',
'enterpriseSearch',
'enterpriseSearchApplications',
'enterpriseSearchAnalytics',
'searchPlayground',
Expand Down

0 comments on commit 2b621ee

Please sign in to comment.