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

[Alerting] add alerting privileges for uptime and metrics #61113

Merged
merged 3 commits into from
Apr 1, 2020

Conversation

pmuellr
Copy link
Member

@pmuellr pmuellr commented Mar 24, 2020

resolves #60135

See the reference issue for how to configure Kibana to test this manually.
There are no automated tests for this ATM.

The basic test scenario is to create a role with just the Uptime space
privilege, make sure it get to the Alerts and Actions management app,
make sure you can create an action (server log), and alert (index threshold),
and that the alert and action run successfully.

Then repeat with just the Metrics space privilege.

@pmuellr pmuellr added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Mar 24, 2020
@pmuellr pmuellr requested review from a team as code owners March 24, 2020 16:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

resolves elastic#60135

See the reference issue for how to configure Kibana to test this manually.
There are no automated tests for this ATM.

The basic test scenario is to create a role with just the Uptime space
privilege, make sure it get to the Alerts and Actions management app,
make sure you can create an action (server log), and alert (index threshold),
and that the alert and action run successfully.

Then repeat with just the Metrics space privilege.
@pmuellr pmuellr force-pushed the alerting/privs-uptime-metrics branch from 4cdf1e1 to daf35f9 Compare March 24, 2020 17:03
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

LGTM thanks for tackling this 🙏 It looks like APM may need a few adjustments as well https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/apm/index.ts#L108-L133 probably in a follow up PR.

pmuellr added a commit to pmuellr/kibana that referenced this pull request Mar 24, 2020
Based on a [review comment of a related PR][1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] elastic#61113 (review)
@mikecote
Copy link
Contributor

@elasticmachine merge upstream

pmuellr added a commit that referenced this pull request Mar 31, 2020
Based on a [review comment of a related PR[1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] #61113 (review)
pmuellr added a commit to pmuellr/kibana that referenced this pull request Mar 31, 2020
…#61159)

Based on a [review comment of a related PR[1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] elastic#61113 (review)
pmuellr added a commit to pmuellr/kibana that referenced this pull request Mar 31, 2020
…#61159)

Based on a [review comment of a related PR[1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] elastic#61113 (review)
pmuellr added a commit that referenced this pull request Mar 31, 2020
…#61923)

Based on a [review comment of a related PR[1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] #61113 (review)
pmuellr added a commit that referenced this pull request Mar 31, 2020
…#61922)

Based on a [review comment of a related PR[1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] #61113 (review)
Copy link
Contributor

@phillipb phillipb left a comment

Choose a reason for hiding this comment

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

@pmuellr The infra changes look good to me!

@mikecote
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@shahzad31 shahzad31 added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Apr 1, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

Looks good for uptime.

@pmuellr pmuellr merged commit 014ea12 into elastic:master Apr 1, 2020
pmuellr added a commit to pmuellr/kibana that referenced this pull request Apr 1, 2020
)

resolves elastic#60135

See the reference issue for how to configure Kibana to test this manually.
There are no automated tests for this ATM.

The basic test scenario is to create a role with just the Uptime space
privilege, make sure it get to the Alerts and Actions management app,
make sure you can create an action (server log), and alert (index threshold),
and that the alert and action run successfully.

Then repeat with just the Metrics space privilege.
pmuellr added a commit to pmuellr/kibana that referenced this pull request Apr 1, 2020
)

resolves elastic#60135

See the reference issue for how to configure Kibana to test this manually.
There are no automated tests for this ATM.

The basic test scenario is to create a role with just the Uptime space
privilege, make sure it get to the Alerts and Actions management app,
make sure you can create an action (server log), and alert (index threshold),
and that the alert and action run successfully.

Then repeat with just the Metrics space privilege.
gmmorris added a commit to gmmorris/kibana that referenced this pull request Apr 1, 2020
* master: (44 commits)
  [Alerting] add alerting privileges for uptime and metrics (elastic#61113)
  Update percy agent to latest version (elastic#62089)
  [APM] Update central configuration text (elastic#61556)
  [Fleet] Ouput api key do not need metricbeat* access (elastic#60319)
  Document new `xpack.security.authc.*` settings and related 8.0.0 breaking changes. (elastic#61443)
  Migrate test plugins ⇒ NP (kbn_tp_sample_panel_action) (elastic#60749)
  [Alerting] Add "Start trial" button for connectors (elastic#61774)
  [ML] Transforms: Fix handling of default and advanced search on step summary view. (elastic#61799)
  [Task Manager] Change info message "ran out Available Workers" to debug (elastic#62083)
  [Maps] Highlight selected layer in TOC (elastic#61510)
  ensure pageIndex is set correclty in analytics list (elastic#62041)
  [ML] Functional API tests - fix mml request bodies (elastic#62116)
  Fix validation for index threshold when selecting an index (elastic#61615)
  [SIEM][Detection Engine] Adds release notes link and updates one UI section
  [backport] Bump to 5.1.2 (elastic#62117)
  [APM] .apm-agent-configuration is not created if Kibana is started while ES is not ready (elastic#61610)
  [Fleet] Enrollment list page (elastic#61346)
  [ML] Fix maximum default enabled columns for data grid. (elastic#62005)
  [Home][Tutorial] Add Oracle data UI (elastic#61595)
  [APM] Ensure telemetry data matches SO/telemetry mapping (elastic#61957)
  ...
pmuellr added a commit that referenced this pull request Apr 1, 2020
…62188)

resolves #60135

See the reference issue for how to configure Kibana to test this manually.
There are no automated tests for this ATM.

The basic test scenario is to create a role with just the Uptime space
privilege, make sure it get to the Alerts and Actions management app,
make sure you can create an action (server log), and alert (index threshold),
and that the alert and action run successfully.

Then repeat with just the Metrics space privilege.
pmuellr added a commit that referenced this pull request Apr 1, 2020
…62189)

resolves #60135

See the reference issue for how to configure Kibana to test this manually.
There are no automated tests for this ATM.

The basic test scenario is to create a role with just the Uptime space
privilege, make sure it get to the Alerts and Actions management app,
make sure you can create an action (server log), and alert (index threshold),
and that the alert and action run successfully.

Then repeat with just the Metrics space privilege.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add necessary privileges to apps using alerting
6 participants