Menu

Elasticsearch API keys inherit an identity as well as a privilege list
📰

Elasticsearch API keys inherit an identity as well as a privilege list

DEV Community: elasticsearch·andreagomez·1 day ago
#BhGRUf7t
#devtoelasticsearch#devto#dev#keys#owner
Long article (757 words) — no AI summary yet.
Reading 0:00
15s threshold

Elasticsearch API keys inherit an identity as well as a privilege list

An Elasticsearch API key is more than a bearer credential with index names attached. It represents a principal and a set of role descriptors, and its effective authority depends on the user who created or granted it. That makes key lifecycle, owner auditing, and document-level restrictions part of the same authorization review.

The API key service can create user API keys and cross-cluster API keys. The request can include role descriptors for indices and cluster privileges, expiration, and metadata. The key should be limited to the APIs and resources it needs. A key with a broad role because it was created by a highly privileged user can expose data that the service using the key was never meant to read.

Review the owner and the descriptors

Start with the creating user or service account. Record its roles and the reason it is allowed to grant the requested privileges.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.