Skip to content

Commit

Permalink
Mark missing encryption key errors as Framework error (elastic#184424)
Browse files Browse the repository at this point in the history
Resolves: elastic#180418

This PR marks `Encrypted Saved Objects plugin is missing encryption key`
errors as framework error.
  • Loading branch information
ersin-erdal committed May 30, 2024
1 parent cb9b7d2 commit 9f12976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/actions/server/lib/action_executor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/actions/server/lib/action_executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 9f12976

Please sign in to comment.