[ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope#217790
Conversation
|
Pinging @elastic/response-ops (Team:ResponseOps) |
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/14897549139 |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
|
…key to schedule tasks with user scope (elastic#217790) ## Summary Resolves: elastic#216811 This PR ensures we can only schedule or bulk schedule tasks with API keys if and only if the encryption key is provided (and not auto generated). This PR also contains tests for this. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios (cherry picked from commit ee81230)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
7 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
4 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…key to schedule tasks with user scope (elastic#217790) ## Summary Resolves: elastic#216811 This PR ensures we can only schedule or bulk schedule tasks with API keys if and only if the encryption key is provided (and not auto generated). This PR also contains tests for this. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
2 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…yption key to schedule tasks with user scope (#217790) (#220457) # Backport This will backport the following commits from `main` to `8.19`: - [[ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope (#217790)](#217790) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jiawei Wu","email":"74562234+JiaweiWu@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-05-08T02:51:26Z","message":"[ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope (#217790)\n\n## Summary\n\nResolves: https://github.com/elastic/kibana/issues/216811\n\nThis PR ensures we can only schedule or bulk schedule tasks with API\nkeys if and only if the encryption key is provided (and not auto\ngenerated). This PR also contains tests for this.\n\n### Checklist\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"ee81230a9fd3e240c685e57d355389888b502638","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","backport:version","v9.1.0","v8.19.0"],"title":"[ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope","number":217790,"url":"https://github.com/elastic/kibana/pull/217790","mergeCommit":{"message":"[ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope (#217790)\n\n## Summary\n\nResolves: https://github.com/elastic/kibana/issues/216811\n\nThis PR ensures we can only schedule or bulk schedule tasks with API\nkeys if and only if the encryption key is provided (and not auto\ngenerated). This PR also contains tests for this.\n\n### Checklist\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"ee81230a9fd3e240c685e57d355389888b502638"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217790","number":217790,"mergeCommit":{"message":"[ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope (#217790)\n\n## Summary\n\nResolves: https://github.com/elastic/kibana/issues/216811\n\nThis PR ensures we can only schedule or bulk schedule tasks with API\nkeys if and only if the encryption key is provided (and not auto\ngenerated). This PR also contains tests for this.\n\n### Checklist\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"ee81230a9fd3e240c685e57d355389888b502638"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Jiawei Wu <74562234+JiaweiWu@users.noreply.github.com> Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
…key to schedule tasks with user scope (elastic#217790) ## Summary Resolves: elastic#216811 This PR ensures we can only schedule or bulk schedule tasks with API keys if and only if the encryption key is provided (and not auto generated). This PR also contains tests for this. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Summary
Resolves: #216811
This PR ensures we can only schedule or bulk schedule tasks with API keys if and only if the encryption key is provided (and not auto generated). This PR also contains tests for this.
Checklist