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

FLS restricted fields should not be visible #8192

Closed
PhaedrusTheGreek opened this issue Sep 8, 2016 · 9 comments
Closed

FLS restricted fields should not be visible #8192

PhaedrusTheGreek opened this issue Sep 8, 2016 · 9 comments
Labels
enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@PhaedrusTheGreek
Copy link
Contributor

Kibana version:
4.6

Elasticsearch version:
2.4

In the screenshot here, the logged in user doesn’t have access to the “password” field due to an FLS restriction. This is not friendly, since no visualization can really be created by using this field.

May end up being resolved by #6498 if Elasticsearch can somehow provide a more accurate mapping for the logged in user.

Screenshot:

screen shot 2016-09-08 at 3 53 13 pm

Corresponding FLS Sample:

POST test-index/tester/1
{
  "password" : "secret", 
  "title" : "public_title",
  "body" : "A message body"
}

POST /_shield/role/test_fls_role
{
  "indices": [
    {
      "names": [ ".kibana*"],
      "privileges": ["read", "view_index_metadata"]
    },
    {
      "names": [ "test-index"],
      "privileges": ["read"], 
      "fields": [ "title", "body" ]
    }
  ]
}

POST /_shield/user/es_test
{
  "password" : "es_pass", 
  "roles" : [ "test_fls_role"], 
  "full_name" : "Some Guy"
}
@Bargs
Copy link
Contributor

Bargs commented Sep 9, 2016

Yeah, Kibana will definitely need a valid field list from Elasticsearch to accomplish this.

@kobelb
Copy link
Contributor

kobelb commented Aug 7, 2018

If the user creating the index pattern doesn't have access to the field via FLS, they're no longer showing up.

@kobelb
Copy link
Contributor

kobelb commented Apr 2, 2019

This was reported again with #34334, and I've re-opened the original issue as it applies to all consumers of index patterns.

@lukeelmers lukeelmers added Feature:Data Views Data Views code and UI - index patterns before 8.0 :AppArch Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! labels Apr 29, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security

@kobelb kobelb added enhancement New value added to drive a business result and removed release_note:enhancement labels Jan 14, 2020
@Bargs
Copy link
Contributor

Bargs commented Jan 29, 2020

A discuss user has reported that this is an issue in the KQL autocomplete and filter bar UI as well.

@mattkime
Copy link
Contributor

mattkime commented Dec 2, 2020

No longer needed as field list is no longer cached - #82223 - will be released in 7.11

@mattkime mattkime closed this as completed Dec 2, 2020
@legrego
Copy link
Member

legrego commented Dec 2, 2020

@mattkime that's fantastic, thanks for your work on this!

@kobelb
Copy link
Contributor

kobelb commented Dec 2, 2020

Woo-hoo! Thanks @mattkime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

No branches or pull requests

7 participants