Skip to content

Commit

Permalink
missing arg
Browse files Browse the repository at this point in the history
  • Loading branch information
klacabane committed Nov 8, 2024
1 parent 8b06469 commit 403f593
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { KibanaRequest } from '@kbn/core-http-server';
import { getFakeKibanaRequest } from '@kbn/security-plugin/server/authentication/api_keys/fake_kibana_request';
import { EntityManagerServerSetup } from '../../../types';
import { canManageEntityDefinition, entityDefinitionRuntimePrivileges } from '../privileges';
import { BUILT_IN_ALLOWED_INDICES } from '../../entities/built_in/constants';

export interface EntityDiscoveryAPIKey {
id: string;
Expand Down Expand Up @@ -45,7 +46,7 @@ export const checkIfEntityDiscoveryAPIKeyIsValid = async (

server.logger.debug('validating API key has runtime privileges for entity discovery');

return canManageEntityDefinition(esClient);
return canManageEntityDefinition(esClient, BUILT_IN_ALLOWED_INDICES);
};

export const generateEntityDiscoveryAPIKey = async (
Expand Down

0 comments on commit 403f593

Please sign in to comment.