-
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] Define onboarding flow for fleet-server #89396
Comments
Pinging @elastic/fleet (Feature:Fleet) |
Pinging @elastic/ingest-management (Team:Ingest Management) |
@blakerouse @ph can you help me understand a few things:
|
@blakerouse and @nchaulet could you help to fill up the blank in #89396 (comment), maybe we already have that information somewhere else. |
In the simplest case the command-line becomes this:
The You will notice that the For an enrollment of an Elastic Agent without Fleet Server it becomes.
You will notice here that
Fleet Server needs a user account to authenicate with elasticsearch. This account needs to have the correct permissions to create the required API keys. I think the flow would be that they user first clicks "enable central management" button, which will create this user, then on enrollment of the first Agent the
I would hope we could get Kibana to perform these operations for the user. They could obviously be done manually, but I think it would best to automate it with the "enable central management" button.
I do not have the answer to this. But adding the
I think for both self-managed and cloud, we should create a default centralized agent policy. It should just include the Fleet Server integration.
I think we should discuss that in a separate issue.
Not that I see at the moment. |
Thanks @blakerouse!
Ruflin wrote up a policy types document. I think we added a managed policy type to restrict what users could change on cloud. It also describes central and regular types that would be nice to include. @ph is that already done or scheduled?
It'd be good to mark the agent as unhealthy and throw an error if the agent has a fleet server integration without the required flag. |
This is not scheduled or done. But that would be a new type, than the one described in the doc? |
@ph thanks I added the central and regular policy types to our roadmap for later. I think they are defined in Ruflin's doc. |
Discussion: Do we need the button for enabling Fleet for self-managed? Yes, we keep it for 7.13. Questions to resolve:Do we need to support adding an additional Fleet-Server? @mostlyjason |
@mostlyjason can you update this issue to include a problem statement and the user stories we want to solve for? I'd like to use this as my design issue for tracking purposes. Alternatively, you can create a separate issue and link to this one. I can fill in details for deliverables. |
@hbharding @mostlyjason can we only a single owner for an issue, which should be the person responsible to drive to a conclusion? |
I'll take this one @ph. A quick update: I've been meeting with Jason and Mukesh and we've explored user journeys + wireframes for providing Fleet Server setup instructions within Fleet. Due to the complexity of the steps and various use cases to consider, we're leaning towards pointing the user to documentation for instruction. This will help lessen the required engineering effort and improve our ability to provide accurate, curated information to the user. |
I emailed the team on March 10th requesting review on a google document and whimsical userflow / wireframes (screenshot below) that walks through the process of adding a Fleet Server for both cloud and self-managed deployments. There wasn't significant feedback or concern with the direction we intend to build in 7.13. Two items came up that i'll mention:
As an overview, I'll describe the general flow for adding a Fleet Server on cloud and self-managed deployments below. Please refer to the wireframes and google doc I sent for complete details. Cloud deploymentsThe process for cloud will be relatively straight forward and automated. For new 7.13 cloud deployments, Fleet Server will be enabled by default and users will be able to enroll agents. If a user chooses to have a deployment without Fleet Server, they will see a prompt in Kibana UI to add one when they navigate to Fleet before they can enroll agents. This prompt will link them to the "Edit Deployment" screen in their cloud console where they can enable Fleet Server. Once enabled, Fleet will update inside Kibana and allow users to enroll agents. The Fleet Server URL for cloud will be added to the Fleet Settings flyout automatically. Self-managedSelf-managed users will see a similar prompt to "Add a Fleet Server" when they navigate to the "Agents" section of Fleet. The prompt will link them to instructions in our documentation that walk through the steps of adding a Fleet Server. After Fleet Server connects to Elasticsearch, the agent running Fleet Server will appear in Fleet. The user will need to manually add a Fleet Server URL #89442 in the Fleet Settings flyout before they can enroll agents (this part will be explained in the documentation). Once a Fleet Server URL exists, users are able to enroll agents. If users try to enroll an agent before Fleet Server exists, they will see the same "Add a Fleet Server" prompt in the "Add Agent" flyout. Users are still able to access instructions to run an agent in standalone mode. |
We learned recently that the Fleet Server URL needs to be set up before Fleet Server can be setup elastic/fleet-server#145. I will update userflow + doc |
@hbharding we just did a test and it still works if the user sets the Fleet Server URL after installing Fleet Server |
I think the onboarding UX is now fully defined so we can close this one. I believe the team is already working on implementation. |
Enrolling an Elastic Agent with fleet-server requires a slightly different enrollment / setup command then just a normal Elastic Agent. Especially on prem, the first thing the user needs to do to get started with Fleet is enrolling an Elastic Agent with fleet-server to enroll further Agents.
The text was updated successfully, but these errors were encountered: