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

[Entity Analytics] [Entity Store] Refactor entity store enablement (server side) #199638

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

tiansivive
Copy link
Contributor

@tiansivive tiansivive commented Nov 11, 2024

Summary

This PR adds 2 new endpoints regarding enablement of the Entity Store:

  • api/entity_store/enable, which initializes entity engines for both user and host entities
  • api/entity_store/status, which computes a global store status based on the individual engine status

In addition, running initialization of multiple engines in parallel is now allowed.

How to test

  1. Use dev tools to call POST kbn:/api/entity_store/enable
  2. Check that two engines were created and that the status is installing by calling GET kbn:/api/entity_store/status
  3. Wait a few seconds and keep calling the status endpoint. Once initialization finishes, the status should switch to running

@tiansivive tiansivive added technical debt Improvement of the software architecture and operational architecture release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Entity Analytics Security Entity Analytics Team backport:version Backport to applied version labels v8.17.0 labels Nov 11, 2024
return { engines, succeeded: true };
}

public async status(): Promise<GetEntityStoreStatusResponse> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the correct way to compute the status?
What should we do in those "in between" states, where, for example, not all engines are stopped?

Maybe worry about it later if we ever decide allowing individual engine setup?

@tiansivive tiansivive marked this pull request as ready for review November 12, 2024 10:32
@tiansivive tiansivive requested review from a team as code owners November 12, 2024 10:32
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 12, 2024

💔 Build Failed

Failed CI Steps

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team technical debt Improvement of the software architecture and operational architecture v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants