Skip to content

[ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while disabling/enabling scheduled reports#247236

Merged
js-jankisalvi merged 3 commits intoelastic:mainfrom
js-jankisalvi:disable-reports-bug-fix
Dec 22, 2025
Merged

[ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while disabling/enabling scheduled reports#247236
js-jankisalvi merged 3 commits intoelastic:mainfrom
js-jankisalvi:disable-reports-bug-fix

Conversation

@js-jankisalvi
Copy link
Contributor

@js-jankisalvi js-jankisalvi commented Dec 22, 2025

Summary

Fixes https://github.com/elastic/response-ops-team/issues/503

This PR adds request options params to bulkEnable and bulkDisable of scheduled reports tasks. So that it uses SO scoped client to update task.

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@js-jankisalvi js-jankisalvi self-assigned this Dec 22, 2025
@js-jankisalvi js-jankisalvi added the bug Fixes for quality problems that affect the customer experience label Dec 22, 2025
@js-jankisalvi js-jankisalvi requested a review from a team as a code owner December 22, 2025 10:52
@js-jankisalvi js-jankisalvi added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// backport:version Backport to applied version labels v9.3.0 v9.4.0 labels Dec 22, 2025
@elasticmachine
Copy link
Contributor

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

@js-jankisalvi js-jankisalvi changed the title [ResponseOps][Reporting] [ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while disabling/enabling scheduled reports Dec 22, 2025
@cnasikas cnasikas self-requested a review December 22, 2025 12:15
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #88 / discover Discover CSV Export Generate CSV: new search generates a large export

Metrics [docs]

✅ unchanged

cc @js-jankisalvi

@js-jankisalvi js-jankisalvi merged commit f35125f into elastic:main Dec 22, 2025
13 checks passed
@js-jankisalvi js-jankisalvi deleted the disable-reports-bug-fix branch December 22, 2025 15:02
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.3

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Dec 22, 2025
…isabling/enabling scheduled reports (elastic#247236)

## Summary

Fixes elastic/response-ops-team#503

This PR adds request options params to `bulkEnable` and `bulkDisable` of
scheduled reports tasks. So that it uses SO scoped client to update
task.

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [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 f35125f)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.3

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

Questions ?

Please refer to the Backport tool documentation

mbondyra added a commit to mbondyra/kibana that referenced this pull request Dec 22, 2025
…d_step_back

* commit '51756d2722200a991607658d48ecda50aeb04a7d': (76 commits)
  [Synthetics] Fix SyncGlobalParamsSpaces flaky test (elastic#246487)
  [Synthetics] Fix useSyntheticsRules test (elastic#247259)
  [ES|QL] Fix index editor flaky test (elastic#247233)
  [ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while disabling/enabling scheduled reports (elastic#247236)
  [Console] Update console definitions (main) (elastic#247214)
  [ES|QL] Esql indentation shortcut on the editor (elastic#247234)
  [Streams] Use original request for rules client when in default space (elastic#247014)
  Consolidate and improve unflattenObject (elastic#246725)
  [scout] use svl mode to run api-int tests (elastic#247223)
  SIEM Readiness V2 (elastic#245776)
  [ObsPresentation][A11y] Fix asset details flyout header announcement (elastic#246872)
  [Streams] Add abort support and silent mode for stream description generation (elastic#247082)
  [SLO] Add environment context to SLO feedback button (elastic#247221)
  Ignore the reason and retry systematically (elastic#246830)
  Update dependency @types/moment-duration-format to ^2.2.7 (main) (elastic#242221)
  [Streams 🌊 ] Add explicit waits for data grid rows before clicking expand button (elastic#246919)
  [Security Solution][Entity Analytics][Risk Scoring] Handle special characters in ESQL query for risk scoring (elastic#247060)
  [ML] Data frame analytics: Updates page headers (elastic#247097)
  [ES|QL] Build function arguments suggestions from hints (elastic#246736)
  Update dependency @hey-api/openapi-ts to v0.88.1 (main) (elastic#247210)
  ...
kibanamachine added a commit that referenced this pull request Dec 22, 2025
…hile disabling/enabling scheduled reports (#247236) (#247278)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while
disabling/enabling scheduled reports
(#247236)](#247236)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Janki
Salvi","email":"117571355+js-jankisalvi@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-12-22T15:02:48Z","message":"[ResponseOps][Reporting]
Fix \"failed to decrypt apiKey\" error while disabling/enabling
scheduled reports (#247236)\n\n## Summary\n\nFixes
https://github.com/elastic/response-ops-team/issues/503\n\nThis PR adds
request options params to `bulkEnable` and `bulkDisable` of\nscheduled
reports tasks. So that it uses SO scoped client to update\ntask.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\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":"f35125f8eeb39a9607ce0dd6ac7e17cfdf98ff51","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:ResponseOps","backport:version","v9.3.0","v9.4.0"],"title":"[ResponseOps][Reporting]
Fix \"failed to decrypt apiKey\" error while disabling/enabling
scheduled
reports","number":247236,"url":"https://github.com/elastic/kibana/pull/247236","mergeCommit":{"message":"[ResponseOps][Reporting]
Fix \"failed to decrypt apiKey\" error while disabling/enabling
scheduled reports (#247236)\n\n## Summary\n\nFixes
https://github.com/elastic/response-ops-team/issues/503\n\nThis PR adds
request options params to `bulkEnable` and `bulkDisable` of\nscheduled
reports tasks. So that it uses SO scoped client to update\ntask.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\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":"f35125f8eeb39a9607ce0dd6ac7e17cfdf98ff51"}},"sourceBranch":"main","suggestedTargetBranches":["9.3"],"targetPullRequestStates":[{"branch":"9.3","label":"v9.3.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/247236","number":247236,"mergeCommit":{"message":"[ResponseOps][Reporting]
Fix \"failed to decrypt apiKey\" error while disabling/enabling
scheduled reports (#247236)\n\n## Summary\n\nFixes
https://github.com/elastic/response-ops-team/issues/503\n\nThis PR adds
request options params to `bulkEnable` and `bulkDisable` of\nscheduled
reports tasks. So that it uses SO scoped client to update\ntask.\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\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":"f35125f8eeb39a9607ce0dd6ac7e17cfdf98ff51"}}]}]
BACKPORT-->

Co-authored-by: Janki Salvi <117571355+js-jankisalvi@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 6, 2026
…isabling/enabling scheduled reports (elastic#247236)

## Summary

Fixes elastic/response-ops-team#503

This PR adds request options params to `bulkEnable` and `bulkDisable` of
scheduled reports tasks. So that it uses SO scoped client to update
task.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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
dej611 pushed a commit to dej611/kibana that referenced this pull request Jan 8, 2026
…isabling/enabling scheduled reports (elastic#247236)

## Summary

Fixes elastic/response-ops-team#503

This PR adds request options params to `bulkEnable` and `bulkDisable` of
scheduled reports tasks. So that it uses SO scoped client to update
task.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Platform ResponseOps team (formerly the Cases and Alerting teams) t// v9.3.0 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants