mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 21:05:23 +00:00
If a authenticated user with run as permission attempts to run as an unknown user, the unknown user will be assigned the default role and anonymous role if enabled. This change prevents this from happening as we require the run as user to have been looked up by a realm. Closes elastic/elasticsearch#3878 Original commit: elastic/x-pack-elasticsearch@034f44757d