Skip to content

Migrate from Security plugin APIs to Core-supported security APIs #194452

Open

Description

Motivation

As per the email "CTA Migrate from Security plugin APIs to Core-supported security APIs" we need to migrate from using methods from security plugin @kbn/security-plugin to using the same methods from the core. One such place is x-pack/plugins/cloud_security_posture/server/routes/setup_routes.ts where we use authc.getCurrentUser from the security plugin. There might be more cases like this. Check the linked email for the details of how to migrate to using methods from the core

Definition of done

  • all usages of security plugin are replaced with corresponding methods from the core in cloud_security_posture and other plugins the team owns
  • security plugin is removed from the updated plugin dependencies (check kibana.jsonc)

Out of scope

Related tasks/epics

Team tag

@elastic/kibana-cloud-security-posture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions