Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to filter users from domain in API keys #143079

Closed
psanz-estc opened this issue Oct 11, 2022 · 6 comments
Closed

Unable to filter users from domain in API keys #143079

psanz-estc opened this issue Oct 11, 2022 · 6 comments
Labels
bug Fixes for quality problems that affect the customer experience Feature:Users/Roles/API Keys Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@psanz-estc
Copy link

Kibana version: 8.4

Elasticsearch version:

Server OS version:

Browser version:

Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:
Users with @Domain coming from SAML are not filtered correctly. Kibana shows a pop up with text:

expected end of input or whitespace but "@" was found

Expected behavior:
SAML users should be able to be used as filter

Screenshots (if relevant):
image

@psanz-estc psanz-estc added bug Fixes for quality problems that affect the customer experience Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Oct 11, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@legrego
Copy link
Member

legrego commented Oct 11, 2022

Based on some quick testing, it looks like the search will work correctly if we wrap the username in quotes. eg. username:"user@domain" as opposed to username:user@domain:

CleanShot 2022-10-11 at 10 04 14

@zez3
Copy link

zez3 commented Oct 13, 2022

is it a feature is it a bug, don't really care as long as ther's a workaround

@legrego
Copy link
Member

legrego commented Oct 13, 2022

The current behavior us a bug. The workaround is to manually surround the search term in double quotes.

So instead of searching for username: user@domain, you would instead search for username: "user@domain". The fix here is for the "user" dropdown in the screenshot to automatically surround the username in double quotes when it updates the search bar.

@thomheymann
Copy link
Contributor

thomheymann commented Nov 8, 2022

This is a bug in EUI and affects other areas as well. For example tags have the same issue:

Screenshot 2022-11-08 at 13 15 59

The issue can't be fixed by wrapping the username in quotation marks since that confuses EUI. The query does get constructed correctly in the search bar but the table won't show any results since it includes the quotation marks when comparing the username.

EuiSearchBar.Query.parse will need to be updated to wrap values in quotation marks if they contain special characters.

Created the following issue in EUI: elastic/eui#6349

@thomheymann
Copy link
Contributor

Fixed as part of #145888

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Users/Roles/API Keys Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

No branches or pull requests

5 participants