Skip to content

[ResponseOps][Connectors]Migrate remaining routes.#204042

Merged
adcoelho merged 7 commits intoelastic:mainfrom
adcoelho:migrate-stack-connectors-routes
Dec 16, 2024
Merged

[ResponseOps][Connectors]Migrate remaining routes.#204042
adcoelho merged 7 commits intoelastic:mainfrom
adcoelho:migrate-stack-connectors-routes

Conversation

@adcoelho
Copy link
Copy Markdown
Contributor

@adcoelho adcoelho commented Dec 12, 2024

Connected with https://github.com/elastic/kibana-team/issues/1322

Summary

This PR migrates the remaining response-ops routes that do not use access tags.

Documentation.

@adcoelho adcoelho added Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v9.0.0 backport:prev-minor labels Dec 12, 2024
@adcoelho adcoelho self-assigned this Dec 12, 2024
@adcoelho adcoelho requested a review from a team as a code owner December 12, 2024 14:37
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Copy link
Copy Markdown
Member

@cnasikas cnasikas left a comment

Choose a reason for hiding this comment

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

I think we should not provide the same reason for all routes as both the stack connectors and the triggers actions UI do not use their authorization model. Specifically:

For the stack connectors:

  • Inference API relies on ES authorization.
  • Email service does not perform any authorization.
  • Slack API relies on Slack's authorization.

For triggers actions UI:

  • Config relies on the alerting authorization
    -Health service does not perform any authorization

Copy link
Copy Markdown
Contributor

@js-jankisalvi js-jankisalvi left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@adcoelho adcoelho enabled auto-merge (squash) December 16, 2024 11:31
@adcoelho adcoelho merged commit be8e298 into elastic:main Dec 16, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12352098165

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #41 / Stateful Observability - Deployment-agnostic API integration tests SyntheticsAPITests getSyntheticsMonitors get one monitor should get by id

Metrics [docs]

✅ unchanged

History

cc @adcoelho

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Dec 18, 2024
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 204042 locally

@adcoelho
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

adcoelho added a commit to adcoelho/kibana that referenced this pull request Dec 18, 2024
Connected with elastic/kibana-team#1322

## Summary

This PR migrates the remaining response-ops routes that do not use
access tags.

[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit be8e298)
adcoelho added a commit that referenced this pull request Dec 19, 2024
…204769)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Connectors]Migrate remaining routes.
(#204042)](#204042)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Antonio","email":"antonio.coelho@elastic.co"},"sourceCommit":{"committedDate":"2024-12-16T11:54:49Z","message":"[ResponseOps][Connectors]Migrate
remaining routes. (#204042)\n\nConnected with
https://github.com/elastic/kibana-team/issues/1322\r\n\r\n##
Summary\r\n\r\nThis PR migrates the remaining response-ops routes that
do not use\r\naccess
tags.\r\n\r\n\r\n[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"be8e29836bd805f613a25d4bc467c43a1c7a3649","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","backport
missing","v9.0.0","backport:prev-minor","v8.18.0"],"number":204042,"url":"https://github.com/elastic/kibana/pull/204042","mergeCommit":{"message":"[ResponseOps][Connectors]Migrate
remaining routes. (#204042)\n\nConnected with
https://github.com/elastic/kibana-team/issues/1322\r\n\r\n##
Summary\r\n\r\nThis PR migrates the remaining response-ops routes that
do not use\r\naccess
tags.\r\n\r\n\r\n[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"be8e29836bd805f613a25d4bc467c43a1c7a3649"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204042","number":204042,"mergeCommit":{"message":"[ResponseOps][Connectors]Migrate
remaining routes. (#204042)\n\nConnected with
https://github.com/elastic/kibana-team/issues/1322\r\n\r\n##
Summary\r\n\r\nThis PR migrates the remaining response-ops routes that
do not use\r\naccess
tags.\r\n\r\n\r\n[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"be8e29836bd805f613a25d4bc467c43a1c7a3649"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Dec 19, 2024
JoseLuisGJ pushed a commit to JoseLuisGJ/kibana that referenced this pull request Dec 19, 2024
Connected with elastic/kibana-team#1322

## Summary

This PR migrates the remaining response-ops routes that do not use
access tags.


[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants