Skip to content

[8.19] [ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope (#217790)#220457

Merged
kibanamachine merged 2 commits intoelastic:8.19from
kibanamachine:backport/8.19/pr-217790
Jun 3, 2025
Merged

[8.19] [ResponseOps][TaskManager] Throw error if using generated encryption key to schedule tasks with user scope (#217790)#220457
kibanamachine merged 2 commits intoelastic:8.19from
kibanamachine:backport/8.19/pr-217790

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…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)
@kibanamachine kibanamachine merged commit 8aded04 into elastic:8.19 Jun 3, 2025
8 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #47 / machine learning - anomaly detection anomaly explorer with influencers with farequote based multi metric job Anomaly Charts as embeddable attaches an embeddable to a case
  • [job] [logs] Jest Tests #1 / When using the useGetFileInfo() hook should call the correct API

Metrics [docs]

✅ unchanged

History

cc @JiaweiWu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants