From 55353533c198ec74a7021950ab77853a84d452f3 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:54:23 -0500 Subject: [PATCH] [8.12] Reverts erroneous addition of security plugin enabled config option (#175565) (#175692) # Backport This will backport the following commits from `main` to `8.12`: - [Reverts erroneous addition of security plugin enabled config option (#175565)](https://github.com/elastic/kibana/pull/175565) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Jeramy Soucy --- x-pack/plugins/security/server/config.test.ts | 4 ---- x-pack/plugins/security/server/config.ts | 1 - 2 files changed, 5 deletions(-) diff --git a/x-pack/plugins/security/server/config.test.ts b/x-pack/plugins/security/server/config.test.ts index 04b16aebab9cc..e5ed5270d93d8 100644 --- a/x-pack/plugins/security/server/config.test.ts +++ b/x-pack/plugins/security/server/config.test.ts @@ -60,7 +60,6 @@ describe('config schema', () => { "selector": Object {}, }, "cookieName": "sid", - "enabled": true, "encryptionKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "loginAssistanceMessage": "", "public": Object {}, @@ -115,7 +114,6 @@ describe('config schema', () => { "selector": Object {}, }, "cookieName": "sid", - "enabled": true, "encryptionKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "loginAssistanceMessage": "", "public": Object {}, @@ -170,7 +168,6 @@ describe('config schema', () => { "selector": Object {}, }, "cookieName": "sid", - "enabled": true, "loginAssistanceMessage": "", "public": Object {}, "secureCookies": false, @@ -227,7 +224,6 @@ describe('config schema', () => { "selector": Object {}, }, "cookieName": "sid", - "enabled": true, "loginAssistanceMessage": "", "public": Object {}, "secureCookies": false, diff --git a/x-pack/plugins/security/server/config.ts b/x-pack/plugins/security/server/config.ts index 68e1c7c2a0964..2be89e02b1224 100644 --- a/x-pack/plugins/security/server/config.ts +++ b/x-pack/plugins/security/server/config.ts @@ -301,7 +301,6 @@ export const ConfigSchema = schema.object({ ) ), }), - enabled: schema.boolean({ defaultValue: true }), // Setting only allowed in the Serverless offering ui: offeringBasedSchema({