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][Response Actions] Show download link for get-file action on response actions history #144094

Conversation

ashokaditya
Copy link
Member

@ashokaditya ashokaditya commented Oct 27, 2022

Summary

Shows a download link for get-file action on success for users with file operation permission/privilege (RBAC). The link is not shown when the user doesn't have that permission.

To verify. Create a role without file operations and log in with a user that has only this custom role assigned. You should not see the download link on successful get-file actions.
Screenshot 2022-10-27 at 14 13 20

with file operation permission
Screenshot 2022-10-27 at 12 26 46

without file operation permission
Screenshot 2022-10-27 at 12 38 37

Checklist

Delete any items that are not applicable to this PR.

Show download link for successful get-file actions on action history

fixes elastic/security-team/issues/5076
@ashokaditya ashokaditya self-assigned this Oct 27, 2022
@ashokaditya ashokaditya added v8.6.0 release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution OLM Sprint labels Oct 27, 2022
@ashokaditya ashokaditya marked this pull request as ready for review October 27, 2022 12:14
@ashokaditya ashokaditya requested a review from a team as a code owner October 27, 2022 12:14
@elasticmachine
Copy link
Contributor

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

@@ -379,7 +379,7 @@ export const getEndpointResponseActionsConsoleCommands = ({
capabilities: endpointCapabilities,
privileges: endpointPrivileges,
},
exampleUsage: 'get-file path "/full/path/to/file.txt" --comment "Possible malware"',
exampleUsage: 'get-file --path "/full/path/to/file.txt" --comment "Possible malware"',
Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you 🙏

/>
</EuiText>
</>
<EuiFlexGroup alignItems="center" gutterSize="none">
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add data-test-subj={dataTestSubj} here so that the entire component gets a test subject?

Copy link
Member Author

Choose a reason for hiding this comment

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

@ashokaditya ashokaditya force-pushed the feat/olm-get-file-download-link-action-history-5076 branch from f926f7c to 72aed7e Compare October 28, 2022 08:52
@ashokaditya ashokaditya force-pushed the feat/olm-get-file-download-link-action-history-5076 branch from b85bc15 to e67bf36 Compare October 28, 2022 09:25
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.

Looking good! Left a comment, let me know what do you think about it!

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.

Thanks for the changes! LGTM!

Copy link
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

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

only one small suggestion, looks great 🎉

@ashokaditya ashokaditya enabled auto-merge (squash) October 31, 2022 08:53
@ashokaditya ashokaditya merged commit 43ffa96 into elastic:main Oct 31, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
securitySolution 9.6MB 9.6MB +463.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 57 63 +6
osquery 103 108 +5
securitySolution 439 443 +4
total +17

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 65 71 +6
osquery 104 110 +6
securitySolution 516 520 +4
total +18

History

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

cc @ashokaditya

@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 31, 2022
@ashokaditya ashokaditya deleted the feat/olm-get-file-download-link-action-history-5076 branch October 31, 2022 10:31
@ashokaditya ashokaditya added release_note:feature Makes this part of the condensed release notes and removed release_note:skip Skip the PR/issue when compiling release notes labels Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting OLM Sprint release_note:feature Makes this part of the condensed release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants