Briefly, this error occurs when the Elasticsearch API key provided does not match any key associated with the user making the request. This could be due to an incorrect key, or the key may have been deleted or expired. To resolve this issue, you can verify the API key, regenerate a new key if it’s expired or deleted, or check the user’s permissions to ensure they have access to the required resources.
This guide will help you check for common problems that cause the log ” no API key owned by requesting user found for ID [” + id + “] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.
Log Context
Log “no API key owned by requesting user found for ID [” + id + “]” class name is ApiKeyService.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :
return; } final SetfoundIds = foundDocs.stream().map(VersionedApiKeyDoc::id).collect(Collectors.toUnmodifiableSet()); for (String id : requestedIds) { if (foundIds.contains(id) == false) { responseBuilder.error(id; new ResourceNotFoundException("no API key owned by requesting user found for ID [" + id + "]")); } } } /**