Code Monkey home page Code Monkey logo

Comments (4)

TinaHeiligers avatar TinaHeiligers commented on August 16, 2024 2

Reporting uses getCurrentUser and licensing from the Security Plugin.
I'll migrate getCurrentUser as part of On-Week (June 2024).
We have to wait for licensing to be exposed from Core before completely migrating off of (and removing) the security Plugin.

@tsullivan will search for a client-side use case as part of On-Week June 2024.

from kibana.

tsullivan avatar tsullivan commented on August 16, 2024 1

I have found a few plugins throughout Kibana that call security.authc.getCurrentUser from browser-side code.

  • src/plugins/data_views/public:
    • Has a "getter" type called UserIdGetter. This is needed in the Data Views API client, which sends a user-hash field in request headers.
  • src/plugins/image_embeddable:
    • The Image Editor Flyout has a feature to allow the user to delete a file, based on whether the current user ID is stored in the file metadata.
  • x-pack/plugins/cases/public:
    • A useCurrentUser hook to build a query filter that gets the recent cases belonging to the current user
  • x-pack/plugins/cloud_integrations/cloud_links/public:
    • The current user is checked whether they are a cloud user before adding Cloud links to the security nav controls.
  • x-pack/plugins/data_visualizer/public:
    • used to generate text for a Filebeat configuration
    • used to generate a browser session seed for a FieldStats request

Some additional areas that security.authc is used in browser-side code:

  • x-pack/plugins/enterprise_search/public Already consumes getCurrentUser from core.security
  • x-pack/plugins/fleet/public Doesn't consume getCurrentUser
  • x-pack/plugins/maps/public
  • x-pack/plugins/observability_solution/apm/public
  • x-pack/plugins/observability_solution/observability_ai_assistant_app/public
  • x-pack/plugins/stack_connectors/public Doesn't consume getCurrentUser

I'd like to focus on an area or areas where updating the code to use core.security APIs will allow me to remove the security dependency from a plugin.

from kibana.

elasticmachine avatar elasticmachine commented on August 16, 2024

Pinging @elastic/kibana-core (Team:Core)

from kibana.

elasticmachine avatar elasticmachine commented on August 16, 2024

Pinging @elastic/kibana-security (Team:Security)

from kibana.

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.