Open
Description
When Anonymous Access is enabled, all other users will inherit whichever roles you assign your anonymous user. We should document this behavior as it can cause some confusing results (e.g an explicit user is given access to indices X/Y/Z, but also has access to index A thanks to xpack.security.authc.anonymous.roles
).
Ideally, _es_anonymous_user
should be the least privileged user, but it's not always the case.