From 9f12976c827c9f93808d97416a354b69db3592de Mon Sep 17 00:00:00 2001 From: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com> Date: Thu, 30 May 2024 15:50:59 +0200 Subject: [PATCH] Mark missing encryption key errors as Framework error (#184424) Resolves: #180418 This PR marks `Encrypted Saved Objects plugin is missing encryption key` errors as framework error. --- x-pack/plugins/actions/server/lib/action_executor.test.ts | 2 +- x-pack/plugins/actions/server/lib/action_executor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/actions/server/lib/action_executor.test.ts b/x-pack/plugins/actions/server/lib/action_executor.test.ts index 63fe8a871b0c49..015cc09fc383fb 100644 --- a/x-pack/plugins/actions/server/lib/action_executor.test.ts +++ b/x-pack/plugins/actions/server/lib/action_executor.test.ts @@ -936,7 +936,7 @@ describe('Action Executor', () => { expect(e.message).toBe( 'Unable to execute action because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.' ); - expect(getErrorSource(e)).toBe(TaskErrorSource.USER); + expect(getErrorSource(e)).toBe(TaskErrorSource.FRAMEWORK); } }); diff --git a/x-pack/plugins/actions/server/lib/action_executor.ts b/x-pack/plugins/actions/server/lib/action_executor.ts index 2db78f0d5058e9..c06e33bf3df6ad 100644 --- a/x-pack/plugins/actions/server/lib/action_executor.ts +++ b/x-pack/plugins/actions/server/lib/action_executor.ts @@ -317,7 +317,7 @@ export class ActionExecutor { new Error( `Unable to execute action because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.` ), - TaskErrorSource.USER + TaskErrorSource.FRAMEWORK ); }