-
Notifications
You must be signed in to change notification settings - Fork 874
Fresh Fleet install does not apply default enable_host_users: trueΒ #44630
Copy link
Copy link
Labels
#g-orchestrationOrchestration product groupOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.P2Urgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needUrgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needbugSomething isn't working as documentedSomething isn't working as documented~released bugThis bug was found in a stable release.This bug was found in a stable release.
Milestone
Metadata
Metadata
Assignees
Labels
#g-orchestrationOrchestration product groupOrchestration product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.P2Urgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needUrgent: Supported workflow not functioning as intended, newly drafted feature with urgent Fleet needbugSomething isn't working as documentedSomething isn't working as documented~released bugThis bug was found in a stable release.This bug was found in a stable release.
Type
Projects
Status
π£ In progress
Fleet versions
Web browser and operating system: N/A β server-side bug, confirmed via DB and API
π₯ Actual behavior
After a fresh Fleet install (clean DB β
fleet prepare dbβfleetctl setup),features.enable_host_userspersists asfalsein the database, despite both the documentation and source code defining the default astrue.enable_software_inventory(also a default in the same code path) correctly persists astrueβ onlyenable_host_usersis affected.DB state immediately after a fresh install with no further config changes:
The host details page consequently displays "User collection has been disabled" with a docs link to enable the feature, despite the admin having taken no action to disable it.
π οΈ Expected behavior
A fresh Fleet install should persist
enable_host_users: trueper both the documentation and the source code default inserver/fleet/app.go:Documentation (https://fleetdm.com/docs/configuration/yaml-files#features) explicitly states:
Both
enable_host_usersandenable_software_inventoryshould betrueafter a fresh install with no admin intervention.π§βπ» Steps to reproduce
These steps:
fleet prepare dbagainst the clean DB../build/fleet serve --dev --config fleet.ymlfleetctl setupto create an admin user.docker exec -it fleet-mysql-1 mysql -uroot -ptoor fleet -e "SELECT JSON_EXTRACT(json_value, '\$.features') FROM app_config_json LIMIT 1;"enable_host_usersisfalse,enable_software_inventoryistrue.π―οΈ More info (optional)