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

Login error after Cortex upgrade to 3 #199

Closed
lokuhetty opened this issue Jun 14, 2019 · 4 comments
Closed

Login error after Cortex upgrade to 3 #199

lokuhetty opened this issue Jun 14, 2019 · 4 comments
Assignees
Labels
Milestone

Comments

@lokuhetty
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) CentOS Linux release 7.6.1810
Cortex version cortex-3.0.0-0.1RC3
Package Type RPM
Elasticsearch Version 5.6

Problem Description

I just upgraded the Cortex 2.X to 3.0 via stable channel RPM. Installation didn't change the configuration automatically. So I added the URI instead of the HOST and added the cluster as a new section. Now the Cortex starts up.
My URI line : uri = "http://127.0.0.1:9200" (I have change the port to 9200 from 9300)

Now when I try to log in , I get "Authentication Failure". Note that my username goes like an email address. ([email protected])

image

And the with the error, "@"sign in the username feild gets deleted as in the above image. I have queried the Elasticsearch for the user and it still shows the username with the charachter "@" shown below

image

Following is a screen of the indices that I have. I have thehive in here as well and the same username was there and it still works after upgrading.

image

@nicpenning
Copy link

I can confirm this as well. Using local or AD auth and having a username such as "user1234" the user fails to login and in the user field it shows "user 1234" with a space. In the logs it appears to try and login with the wrong account "user 1234". Tested on Cortex 3 RC-3, Ubuntu 18, ES 5.6. TheHive works great after upgrade to 3.4.0-RC1 with same auth settings.

@To-om To-om added the bug label Jun 28, 2019
@To-om To-om added this to the 3.0.0-RC4 milestone Jun 28, 2019
@nadouani
Copy link
Contributor

Thanks to the lowerCase function of Lodash (https://lodash.com/docs/4.17.11#lowerCase) and my bad for not reading the full method description. It replaces non alpha chars to space :)

@nadouani
Copy link
Contributor

The lowerCase function is in fact doing this

Converts string, as space separated words, to lower case.

@nicpenning
Copy link

Thanks for addressing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants