-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Endpoint][Response Actions] Show download link for get-file
action on response actions history
#144094
Conversation
Show download link for successful get-file actions on action history fixes elastic/security-team/issues/5076
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"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 🙏
...on/public/management/components/endpoint_response_actions_list/response_actions_log.test.tsx
Outdated
Show resolved
Hide resolved
...on/public/management/components/endpoint_response_actions_list/response_actions_log.test.tsx
Outdated
Show resolved
Hide resolved
/> | ||
</EuiText> | ||
</> | ||
<EuiFlexGroup alignItems="center" gutterSize="none"> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
review changes (@paul-tavares)
f926f7c
to
72aed7e
Compare
review change (@paul-tavares)
b85bc15
to
e67bf36
Compare
There was a problem hiding this 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!
...blic/management/components/endpoint_response_actions_list/use_response_actions_log_table.tsx
Outdated
Show resolved
Hide resolved
review change (@dasansol92)
There was a problem hiding this 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!
There was a problem hiding this 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 🎉
...blic/management/components/endpoint_response_actions_list/use_response_actions_log_table.tsx
Outdated
Show resolved
Hide resolved
review suggestion (@gergoabraham)
💚 Build Succeeded
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @ashokaditya |
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.with file operation permission
without file operation permission
Checklist
Delete any items that are not applicable to this PR.