How to make username case insensitive? (The default Basic Authentication via Internal Native Realm)

Hi

I would like to make my usernames case insensitive, but can't seem to find the config to achieve it.
E.g. "Christof" is working, but "christof" is not (Difference: capital C)

I found the documentation about authentication:

Neither an answer on Kibana side:

Neither do the API docs state the username is case sensitive:

However while Googling Gemini proposed below solution:


With search condition:

In general the AI solution seems ok, but I have 2 concerns:

  1. I need to start tampering with default Elastic indices, so any upgrade might break this solution.
  2. The solution also specifies a specific search option ("case_insensitive": true) which I have no control over

So does anyone have an idea if I can make my usernames case insensitive? And how to achieve it?

Thanks!
Christof

There is no option to do this in Elasticsearch.

Ok, thanks!