mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security AI Assistant] Changed license to enterprise and added api privilege 'elasticAssistant' (#180644)
1. Changed AI Assistant API license check to be consistent with client. 2. Fixed API access issues
This commit is contained in:
parent
8c357a1ccd
commit
755fb60db9
3 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ export const getAssistantBaseKibanaFeature = (): BaseKibanaFeatureConfig => ({
|
|||
minimumLicense: 'enterprise',
|
||||
privileges: {
|
||||
all: {
|
||||
api: [],
|
||||
api: ['elasticAssistant'],
|
||||
app: [ASSISTANT_FEATURE_ID, 'kibana'],
|
||||
catalogue: [APP_ID],
|
||||
savedObject: {
|
||||
|
|
|
@ -33,4 +33,4 @@ export const CAPABILITIES = `${BASE_PATH}/capabilities`;
|
|||
/**
|
||||
Licensing requirements
|
||||
*/
|
||||
export const MINIMUM_AI_ASSISTANT_LICENSE = 'platinum' as const;
|
||||
export const MINIMUM_AI_ASSISTANT_LICENSE = 'enterprise' as const;
|
||||
|
|
|
@ -61,7 +61,7 @@ const createMockConfig = () => ({});
|
|||
|
||||
const createAppClientMock = () => ({});
|
||||
|
||||
const license = licensingMock.createLicense({ license: { type: 'platinum' } });
|
||||
const license = licensingMock.createLicense({ license: { type: 'enterprise' } });
|
||||
const createRequestContextMock = (
|
||||
clients: MockClients = createMockClients()
|
||||
): ElasticAssistantRequestHandlerContextMock => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue