Giter Club home page Giter Club logo

Comments (6)

aetter avatar aetter commented on July 26, 2024

Hi @scf0920, this sounds like a permissions issue. Can you log in as admin and check the permissions for someone under Role Mappings? Then check to make sure those roles have the basic permissions you might need?

from for-elasticsearch-docs.

scf0920 avatar scf0920 commented on July 26, 2024

@aetter But it works well until kibana was restarted. And the API returns the correct results.
My security config:
Roles:
image
Role Map:
image
Users:
image

My solution:

  1. export all Saved Objects as a.json file
  2. delete .kibana__someone
  3. log back in someone
  4. import a.json into Saved Objects

Everything was back to normal...
I think it's kibana security plugin's bug. It's going to reproduce 100%. Please try to reproduce.
Thanks.

from for-elasticsearch-docs.

scf0920 avatar scf0920 commented on July 26, 2024

@aetter can you reproduce it?

from for-elasticsearch-docs.

aetter avatar aetter commented on July 26, 2024

Hi @scf0920, unfortunately, no, I can't reproduce your error.

  • When I log in with someone, I'm unable to create an index pattern, because I can't read any data (as expected).
  • When I have the administrator add an index called someone, I still can't create an index pattern. (See image.)

pattern

  • When I map someone to kibana_user, now I can create the index pattern, but I can't do much else (as expected).
  • When I docker-compose stop and docker-compose start and log in as someone, I still have my index pattern.

Can you reproduce from a brand new 0.8.0 cluster? If so, can you post your docker-compose.yml and the start to finish steps?

from for-elasticsearch-docs.

scf0920 avatar scf0920 commented on July 26, 2024

@aetter Very thanks.. I finally found the reason...
Before:
image
After I change:
image
Then I log in as someone, my index pattern back to normal...
In a word, someone has miss index permissions of .kibana_xxxxxx_someone_2. But I think it should be automatic...
You can map someone to my own_index and see if you can reproduce.

from for-elasticsearch-docs.

aetter avatar aetter commented on July 26, 2024

Hi @scf0920, yeah, I think that's a suggestion worth discussing in a broader forum. I'm closing this issue, but opened https://github.com/opendistro-for-elasticsearch/security/issues/31 so that we can discuss if there are any negative side effects to making this sort of change. Thanks a bunch!

from for-elasticsearch-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.