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

Change built-in kibana user to kibana_system #29808

Open
elasticmachine opened this issue Aug 15, 2017 · 13 comments
Open

Change built-in kibana user to kibana_system #29808

elasticmachine opened this issue Aug 15, 2017 · 13 comments
Labels
>enhancement :Security/Security Security issues without another label Team:Security Meta label for security team

Comments

@elasticmachine
Copy link
Collaborator

Original comment by @skearns64:

Today, we have 3 built-in users: elastic, a superuser account, kibana the system account that the Kibana server uses for connecting to ES, setting up the .kibana index and pushing monitoring data, and logstash_system, an account for logstash monitoring.

Both the kibana user and the logstash_system users are system accounts that the respective systems use. It's a bit confusing and inconsistent that they don't follow the same naming scheme. There have been a number of cases where customers and users have mistaken the kibana user for an end-user account for logging into Kibana.

I propose that we change the kibana user to kibana_system for consistency.

Alternatively, I would also be comfortable changing logstash_system to logstash to match kibana - the consistency of the naming scheme is more important to me than the scheme itself.

@elasticmachine
Copy link
Collaborator Author

Original comment by @skearns64:

cc @epixa @clintongormley

@elasticmachine
Copy link
Collaborator Author

Original comment by @lcawl:

@epixa noted in LINK REDACTED that if customers use the credentials from the kibana.yml file (i.e. "kibana") to log in then "Kibana wouldn't really function properly", which is another good reason to make it clear that it's a system account.

@elasticmachine
Copy link
Collaborator Author

Original comment by @epixa:

++ to this idea. We have to be careful about how we handle this for backwards compatibility sake, but this will go a long way in helping avoid ambiguity around how this user is used.

@elasticmachine
Copy link
Collaborator Author

Original comment by @skearns64:

Great, glad there is appetite for this..

Is this something that we could fix for 6.0? Given the potential BWC implications, a major version seems like the right time to make the change.

@elasticmachine
Copy link
Collaborator Author

Original comment by @clintongormley:

@tvernum is there any way of doing this transparently (including during a rolling restart)?

@elasticmachine
Copy link
Collaborator Author

Original comment by @tvernum:

We renamed the kibana role from kibana to kibana_system with a BWC layer in place. (LINK REDACTED)
I think it's probably possible to do something similar for the user, but I'd need to investigate more thoroughly.

@elasticmachine
Copy link
Collaborator Author

Original comment by @skearns64:

I think this would be a really good one to get into 6.0, if at all possible. Otherwise, we will have to live with inconsistent default usernames for another major release.

@elasticmachine
Copy link
Collaborator Author

Original comment by @jimgoodwin:

Please discuss solutions...

@tomcallahan
Copy link
Contributor

@skearns64 is this still important?

@skearns64
Copy link
Contributor

Yes, I think that the naming confusion still exists among our customers, so this is still something we should address.

@tomcallahan
Copy link
Contributor

OK. Out of FixItFriday, at least some folks felt it would be better to move logstash_system to be logstash, instead of changing the logstash and kibana users, WDYT?

@tvernum
Copy link
Contributor

tvernum commented Jun 22, 2018

at least some folks felt it would be better to move logstash_system to be logstash, instead of changing the logstash and kibana users

Please no!
About once a week we have to explain to someone on the forums not to login to Kibana as the kibana user. We intentionally tried to solve that problem when we created the logstash_system user so that users didn't think it was suitable for use in logstash pipelines. It has helped by not completely.
Related: #29892

@rhoboat rhoboat removed their assignment Jun 29, 2018
@rhoboat
Copy link

rhoboat commented Jun 29, 2018

Unassigned myself so security team could get to this faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Security/Security Security issues without another label Team:Security Meta label for security team
Projects
None yet
Development

No branches or pull requests

6 participants