mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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',
|
minimumLicense: 'enterprise',
|
||||||
privileges: {
|
privileges: {
|
||||||
all: {
|
all: {
|
||||||
api: [],
|
api: ['elasticAssistant'],
|
||||||
app: [ASSISTANT_FEATURE_ID, 'kibana'],
|
app: [ASSISTANT_FEATURE_ID, 'kibana'],
|
||||||
catalogue: [APP_ID],
|
catalogue: [APP_ID],
|
||||||
savedObject: {
|
savedObject: {
|
||||||
|
|
|
@ -33,4 +33,4 @@ export const CAPABILITIES = `${BASE_PATH}/capabilities`;
|
||||||
/**
|
/**
|
||||||
Licensing requirements
|
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 createAppClientMock = () => ({});
|
||||||
|
|
||||||
const license = licensingMock.createLicense({ license: { type: 'platinum' } });
|
const license = licensingMock.createLicense({ license: { type: 'enterprise' } });
|
||||||
const createRequestContextMock = (
|
const createRequestContextMock = (
|
||||||
clients: MockClients = createMockClients()
|
clients: MockClients = createMockClients()
|
||||||
): ElasticAssistantRequestHandlerContextMock => {
|
): ElasticAssistantRequestHandlerContextMock => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue