fleetdm / fleet

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

Upcoming host activity for automatic installation of software by deleted user doesn't show that user's name (past activity is OK) #22228

Closed jacobshandling closed 1 month ago

jacobshandling commented 1 month ago

Fleet version: RC for minor-fleet-v4.57.0 as of 56a4bd3bbb6d

💥  Actual behavior

Screenshot 2024-09-18 at 5 35 31 PM

Actor name missing from API response:

Screenshot 2024-09-18 at 6 11 57 PM

🧑‍💻  Steps to reproduce

  1. Have a user with privileges to upload software to a team
  2. Upload a software package
  3. Delete that user
  4. Connect that package with a failing policy
  5. When policy fails for a host, see host activity generated like above
lucasmrod commented 1 month ago

Can you check the upcoming_activities API response? The upcoming activity should still have name/e-mail/avatar fields present.

jacobshandling commented 1 month ago

Good call @lucasmrod, confirmed they're not present in the upcoming response (updated description with screenshot)

jacobshandling commented 1 month ago

Closing as this fix is no longer necessary per product updates cc: @iansltx @noahtalerman

fleet-release commented 1 month ago

Gone user's name lost, Fleet now finds, restores the ghost, Clarity's the host.