Skip to content

Commit

Permalink
Reverts erroneous addition of security plugin enabled config option (#…
Browse files Browse the repository at this point in the history
…175565)

## Summary

In #155582, an `enabled` option was added to the `Security` plugin. This
option is not supported or documented. This PR reverts that change.
  • Loading branch information
jeramysoucy authored Jan 26, 2024
1 parent 0e3513a commit 4385dc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions x-pack/plugins/security/server/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ describe('config schema', () => {
"selector": Object {},
},
"cookieName": "sid",
"enabled": true,
"encryptionKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"loginAssistanceMessage": "",
"public": Object {},
Expand Down Expand Up @@ -115,7 +114,6 @@ describe('config schema', () => {
"selector": Object {},
},
"cookieName": "sid",
"enabled": true,
"encryptionKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"loginAssistanceMessage": "",
"public": Object {},
Expand Down Expand Up @@ -170,7 +168,6 @@ describe('config schema', () => {
"selector": Object {},
},
"cookieName": "sid",
"enabled": true,
"loginAssistanceMessage": "",
"public": Object {},
"secureCookies": false,
Expand Down Expand Up @@ -227,7 +224,6 @@ describe('config schema', () => {
"selector": Object {},
},
"cookieName": "sid",
"enabled": true,
"loginAssistanceMessage": "",
"public": Object {},
"secureCookies": false,
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/security/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ export const ConfigSchema = schema.object({
)
),
}),
enabled: schema.boolean({ defaultValue: true }),

// Setting only allowed in the Serverless offering
ui: offeringBasedSchema({
Expand Down

0 comments on commit 4385dc1

Please sign in to comment.