elasticsearch
elasticsearch copied to clipboard
Introduce role description field
This PR introduces new description
field to roles definitions.
Role API:
POST /_security/role/viewer
{
"description": "Grants permission to view all indices.",
"indices": [
{
"names": [ "*" ],
"privileges": [ "read" , "view_index_metadata"]
}
]
}
File-based role:
viewer:
description: 'Grants permission to view all indices.'
indices:
- names: [ '*' ]
privileges: [ 'read', 'view_index_metadata' ]
Note: I will address the doc changes in a followup PR.
Hi @slobodanadamovic, I've created a changelog YAML for you.
Pinging @elastic/es-security (Team:Security)
Additionally, we could add descriptions for all existing pre-defined roles. But, I would prefer to do this in a follow up (maybe as part of doc changes).