-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate config deprecations and ShieldUser
functionality to the New Platform
#53768
Changes from 1 commit
01d1fbc
9e225ef
75659fc
e9783d4
7f7c271
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -28,31 +28,16 @@ export const security = kibana => | |||||||
enabled: Joi.boolean().default(true), | ||||||||
cookieName: HANDLED_IN_NEW_PLATFORM, | ||||||||
encryptionKey: HANDLED_IN_NEW_PLATFORM, | ||||||||
session: Joi.object({ | ||||||||
idleTimeout: HANDLED_IN_NEW_PLATFORM, | ||||||||
lifespan: HANDLED_IN_NEW_PLATFORM, | ||||||||
}).default(), | ||||||||
session: HANDLED_IN_NEW_PLATFORM, | ||||||||
secureCookies: HANDLED_IN_NEW_PLATFORM, | ||||||||
loginAssistanceMessage: HANDLED_IN_NEW_PLATFORM, | ||||||||
authorization: Joi.object({ | ||||||||
legacyFallback: Joi.object({ | ||||||||
enabled: Joi.boolean().default(true), // deprecated | ||||||||
}).default(), | ||||||||
}).default(), | ||||||||
audit: Joi.object({ | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Need to specify this in the legacy plugin config, otherwise Kibana will crash if you have specified
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wow, good catch, I could swear it worked when I tested it at the early stages of this PR 🙈 There is a chance I'm making this up though, let me check. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to check if it's indented behavior (that NP passes non-transformed config to the LP), but Platform team is out this week. Will just use your suggestion to not be blocked! |
||||||||
enabled: Joi.boolean().default(false), | ||||||||
}).default(), | ||||||||
authc: HANDLED_IN_NEW_PLATFORM, | ||||||||
}).default(); | ||||||||
}, | ||||||||
|
||||||||
deprecations: function({ rename, unused }) { | ||||||||
return [ | ||||||||
unused('authorization.legacyFallback.enabled'), | ||||||||
rename('sessionTimeout', 'session.idleTimeout'), | ||||||||
]; | ||||||||
}, | ||||||||
|
||||||||
uiExports: { | ||||||||
chromeNavControls: [], | ||||||||
managementSections: ['plugins/security/views/management'], | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏