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

[SIEM] Fixes timeline permissions for unauthorized users #41767

Merged
merged 7 commits into from
Jul 24, 2019

Conversation

XavierM
Copy link
Contributor

@XavierM XavierM commented Jul 23, 2019

Summary

If your kibana user does not have any privilege and you want to use the timeline in the SIEM app, you will get this page below because you are unauthorized to use saved objects

image

#41707

To Test

you will have to create a user with no power who would follow this role below

image

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@XavierM XavierM added Team:SIEM v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.3.0 v7.2.1 v7.4.0 labels Jul 23, 2019
@XavierM XavierM self-assigned this Jul 23, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/secops

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@XavierM XavierM force-pushed the siem-timeline-unauthorized-user branch from 31ed734 to b3f2ac1 Compare July 23, 2019 18:48
@andrew-goldstein

This comment has been minimized.

@XavierM XavierM force-pushed the siem-timeline-unauthorized-user branch from eb58748 to 3a1efdf Compare July 23, 2019 21:01
Copy link
Contributor

@andrew-goldstein andrew-goldstein left a comment

Choose a reason for hiding this comment

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

I ran (as a proxy for the code in this branch) the 7.3-specific siem-fix-unauthorized-timeline branch against a cloud instance of 7.3 BC5, and verified the timeline behaves as expected for regular and read-only users, including the case where timelines created by the former are opened by the latter.

Thanks @XavierM for supporting the use case of read-only users! 🙏 🚀

LGTM

Copy link
Contributor

@FrankHassanabad FrankHassanabad left a comment

Choose a reason for hiding this comment

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

Tested this on my machine locally and looked it over. Everything looks as discussed to make this work with unauthorized.

Hold this up to a mirror and you should see MTGL that which you most desire.

@XavierM XavierM force-pushed the siem-timeline-unauthorized-user branch from 20bc9cf to a76afbd Compare July 24, 2019 08:03
@elastic elastic deleted a comment from elasticmachine Jul 24, 2019
@elastic elastic deleted a comment from FrankHassanabad Jul 24, 2019
@elastic elastic deleted a comment from elasticmachine Jul 24, 2019
@elastic elastic deleted a comment from andrew-goldstein Jul 24, 2019
@XavierM
Copy link
Contributor Author

XavierM commented Jul 24, 2019

please retest this

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@XavierM XavierM merged commit a6ab210 into elastic:master Jul 24, 2019
XavierM added a commit to XavierM/kibana that referenced this pull request Jul 24, 2019
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
XavierM added a commit to XavierM/kibana that referenced this pull request Jul 24, 2019
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
XavierM added a commit to XavierM/kibana that referenced this pull request Jul 24, 2019
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
XavierM added a commit that referenced this pull request Jul 24, 2019
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
XavierM added a commit that referenced this pull request Jul 24, 2019
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
XavierM added a commit that referenced this pull request Jul 24, 2019
* Allow error to show in the application

* Allow unauthorized user to use timeline api with redux storage

* add callout to timeline to show + fix event details

* Build fixes

* fix pinned event

* review I

* fix details timeline test on api integration
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jul 24, 2019
* upstream/7.x:
  Ensure visualizations in percentage mode respect the advanced settings percent format (elastic#39044) (elastic#41855)
  [7.x] [telemetry] Analytics Package (elastic#41113) (elastic#41774)
  [Uptime] Improve `useUrlParams` hook for Uptime app (elastic#41545) (elastic#41818)
  [Maps] refactor filter actions to use embeddable actions (elastic#41713) (elastic#41821)
  [Maps] clean up tooltip header and footer (elastic#41793) (elastic#41816)
  [SIEM] Timeline NOT working with unauthorized  (elastic#41767) (elastic#41873)
  Use index patterns service inside data plugin (rather than importing from ui/public) (elastic#41639) (elastic#41867)
@FrankHassanabad FrankHassanabad added release_note:fix and removed release_note:skip Skip the PR/issue when compiling release notes labels Jul 29, 2019
@FrankHassanabad FrankHassanabad changed the title [SIEM] Timeline NOT working with unauthorized [SIEM] Fixes timeline permissions for unauthorized users Jul 29, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@XavierM XavierM deleted the siem-timeline-unauthorized-user branch June 4, 2020 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants