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

[BUG] Seed data missing administrator password for form-based authentication #2

Open
metaturso opened this issue Jul 1, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@metaturso
Copy link

metaturso commented Jul 1, 2020

Describe the bug

The seed data loaded into ElasticSearch doesn't contain a password to authenticate to Cortex using the "initial username".

In my particular case I don't use LDAP or oAuth and I'd like a plain form login method.

To Reproduce

Using the following host variables:

cortex_load_seed_data: true
cortex_seed_initial_username: "admin"
cortex_api_key: SECRET_API_KEY
cortex_secret: MAYBE_A_PASSWORD
cortex_crypto_secret: MAYBE_A_PASSWORD
  1. Provision a Cortex machine
  2. Visit the Cortex GUI
  3. Login using the user defined in cortex_seed_initial_username

Expected behaviour

At this point I'd normally know what password to use, login and go on my merry way. However, this role currently defines 3 secrets none of which is working.

One secret is the API key, one is defined but unused (see #1) and the last secret doesn't work for login (i.e. cortex_crypto_secret.

Screenshots

cortex

@metaturso metaturso added the bug Something isn't working label Jul 1, 2020
@metaturso
Copy link
Author

I must've been mistaken to think that Cortex holds enough information in ElasticSearch or configuration files to authenticate users.

Is the seeding logic based around the cortex_load_seed_data flag supposed to populate ElasticSearch with a pretend TheHive index containing the cortex_seed_initial_username and its password?

@sblack4
Copy link

sblack4 commented Jul 8, 2020

@cdaniluk - you're the cortex expert! 🧑‍🔬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants