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

[Security Solution][Endpoint] Show Endpoint Host Isolation status on endpoint list #101961

Conversation

paul-tavares
Copy link
Contributor

@paul-tavares paul-tavares commented Jun 10, 2021

Summary

  • Shows the Isolation status (if any) next to the Agent Status on both the Endpoint list as well as the Endpoint Details flyout
  • Some adjustments to the data generator to create pending actions

olm-1246-isolation-status-on-endpoint-list-details

Checklist

@paul-tavares paul-tavares added release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed v8.0 labels Jun 10, 2021
@paul-tavares paul-tavares self-assigned this Jun 10, 2021
@spalger spalger added v8.0.0 and removed v8.0 labels Jun 10, 2021
const agentIdToPendingActions: AgentIdsPendingActions = new Map();

for (const pendingAction of pendingActions) {
agentIdToPendingActions.set(pendingAction.agent_id, pendingAction.pending_actions);
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume you are ok keeping the last pending_actions in the pendingActions array, is it right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean in the store if the code inside this try {} block throw's an error?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, if you have the same pendingAction.agent_id twice (or more), you will overwrite it in the map. Just want to know if this is ok or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should not have duplicate agent ids. The code here does dedup and I think the API also dedups, so we should not get into that state. but - if we did, the data (pending_actions) would still be the same, so overwriting would be ok.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for the explanation 👍

Copy link
Contributor

@dasansol92 dasansol92 left a comment

Choose a reason for hiding this comment

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

Just added a question but it LGTM 🚢

@paul-tavares paul-tavares marked this pull request as ready for review June 15, 2021 19:29
@paul-tavares paul-tavares requested a review from a team as a code owner June 15, 2021 19:29
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

Copy link
Member

@ashokaditya ashokaditya left a comment

Choose a reason for hiding this comment

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

🚀

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 2181 2184 +3

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 6.9MB 6.9MB +6.7KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @paul-tavares

@paul-tavares paul-tavares merged commit 1b7a5a9 into elastic:master Jun 16, 2021
@paul-tavares paul-tavares deleted the task/olm-1246-show-isolation-status-on-endpoint-list branch June 16, 2021 13:59
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jun 16, 2021
…endpoint list (elastic#101961)

* Add endpoint isolation status for when multiple actions of different types are pending
* Refactored List to break out Agent status code to separate component
* Generator improvements for how actions are generated for Endpoints
* Add HTTP mock for fleet EPM packages (to silence console errors)
* new `.updateCommonInfo()` method to generator (to regenerate stateful data)
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 16, 2021
…endpoint list (#101961) (#102348)

* Add endpoint isolation status for when multiple actions of different types are pending
* Refactored List to break out Agent status code to separate component
* Generator improvements for how actions are generated for Endpoints
* Add HTTP mock for fleet EPM packages (to silence console errors)
* new `.updateCommonInfo()` method to generator (to regenerate stateful data)

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
majagrubic pushed a commit to majagrubic/kibana that referenced this pull request Jun 18, 2021
…endpoint list (elastic#101961)

* Add endpoint isolation status for when multiple actions of different types are pending
* Refactored List to break out Agent status code to separate component
* Generator improvements for how actions are generated for Endpoints
* Add HTTP mock for fleet EPM packages (to silence console errors)
* new `.updateCommonInfo()` method to generator (to regenerate stateful data)
ashokaditya added a commit that referenced this pull request Jul 5, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 5, 2021
kibanamachine added a commit that referenced this pull request Jul 5, 2021
* mark for refactor

refs elastic/security-team/issues/1407
refs /pull/101961/files

* update comments

review change

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
madirey pushed a commit to madirey/kibana that referenced this pull request Jul 6, 2021
* mark for refactor

refs elastic/security-team/issues/1407
refs elastic/pull/101961/files

* update comments

review change
ashokaditya added a commit that referenced this pull request Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants