fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.24k stars 360 forks source link

`fleetctl preview` errors after adding a 2nd enroll secret #19129

Open rachaelshaw opened 2 weeks ago

rachaelshaw commented 2 weeks ago

Fleet version: 4.49.3


💥  Actual behavior

Screenshot 2024-05-17 at 4 08 43 PM

We're going to be adding teams as part of https://github.com/fleetdm/fleet/issues/18869, so we'll need to support there being multiple enroll secrets.

🧑‍💻  Steps to reproduce

  1. Run fleetctl preview
  2. Add a new enroll secret and close the browser tab
  3. Try running fleetctl preview again

🕯️ More info (optional)

Looks like you can still manually navigate to localhost:1337, but it doesn't automatically open in the browser when there's >1 enroll secret