-
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
[Fleet] Better display of fleet requirements #65027
[Fleet] Better display of fleet requirements #65027
Conversation
Pinging @elastic/ingest-management (Team:Ingest 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.
Tested & confirmed locally.
starting ES with yarn es snapshot -E xpack.security.authc.api_key.enabled=true
yields a working Fleet.
Using yarn es snapshot
only produces the messages shown in the description.
I commented w/ some changes re: Cloud I'd like to add, but I think the worst case is it'll fail silently and can be addressed in a follow-up.
@@ -184,6 +196,9 @@ export class IngestManagerPlugin | |||
security: this.security, | |||
config$: this.config$, | |||
savedObjects: core.savedObjects, | |||
isProductionMode: this.isProductionMode, | |||
serverInfo: this.serverInfo, |
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.
I think we should also use this.serverInfo
in registerInstallScriptRoutes
a few lines above
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.
I am working on this routes, for the enrollment instructions, if you are ok with that I will do the change in an other PR
this.licensing$ = deps.licensing.license$; | ||
if (deps.security) { | ||
this.security = deps.security; | ||
} | ||
this.cloud = deps.cloud; |
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.
Security and cloud seem to be similar (both optional) but, iiuc, we treat them differently here.
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.
Yes the if for security is probably not necessary here
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.
The if is because it's an optional dependency. We do the same guard with features, iirc.
Can be done in a follow up PR
|
||
export interface IngestManagerSetupDeps { | ||
licensing: LicensingPluginSetup; | ||
security?: SecurityPluginSetup; | ||
features?: FeaturesPluginSetup; | ||
encryptedSavedObjects: EncryptedSavedObjectsPluginSetup; | ||
cloud?: CloudSetup; |
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.
Since we're adding this to our dependencies, I believe we'd need to add to kibana.json
as an optional dependency
"optionalPlugins": ["security", "features"] |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
# Conflicts: # x-pack/plugins/ingest_manager/public/applications/ingest_manager/index.tsx
Summary
Resolve #63637 #64519
To run fleet an user should:
If this requirements are not met we display an error message when the user try to acced fleet
API Change
UI Change