Authenticate to Elasticsearch using native, file-based, LDAP/AD, SAML, OIDC, Kerberos, JWT, or certificate realms.
Authenticate to Elasticsearch using native, file-based, LDAP/AD, SAML, OIDC, Kerberos, JWT, or certificate realms. Use when connecting with credentials, choosing a realm, or managing API keys.This is the skill's description: the text your AI reads to decide when the skill applies.
elastic-elasticsearch-authn/SKILL.md
---
name: elasticsearch-authn
description: >
Authenticate to Elasticsearch using native, file-based, LDAP/AD, SAML, OIDC, Kerberos,
JWT, or certificate realms. Use when connecting with credentials, choosing a realm,
or managing API keys. Assumes the target realms are already configured.
compatibility: >
Requires curl or an HTTP client and network access to the target Elasticsearch cluster
endpoint. Environment variables: ELASTICSEARCH_URL (required), plus one of ELASTICSEARCH_API_KEY,
ELASTICSEARCH_USERNAME/ELASTICSEARCH_PASSWORD, or realm-specific credentials depending
on the authentication method.
metadata:
author: elastic
version: 0.1.0
---
# Elasticsearch Authentication
Authenticate to an Elasticsearch cluster using any supported authentication realm that is already configured. This skill
covers all built-in realms, credential verification, and the full API key lifecycle.
For roles, users, role assignment, and role mappings, see the **elasticsearch-authz** skill.
For detailed API endpoints, see [references/api-reference.md](references/api-reference.md).