fleetdm / fleet

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

MABM: VPP token fails to be migrated #21757

Closed mna closed 1 week ago

mna commented 1 week ago

The worker job fails with:

running migrate VPP token task: update VPP token: translating vpp token to db representation: unmarshalling raw vpp token: invalid character '\x16' looking for beginning of value

The DB migration script creates an entry in vpp_tokens that is byte-for-byte copied from whatever exists in mdm_config_assets, and the worker tries to extract the related metadata and update the row in the DB. It seems like there's a disconnect between the format the worker job expects the token bytes to be in, and the format it actually is in.

PezHub commented 1 week ago

QA Notes:

  1. reverted back to ver 4.55.1
  2. uploaded ABM and VPP Token
  3. Upgraded to ver 4.56
  4. waited ~1min (for cron jobs to run) then loaded the Fleet UI and can confirm I no longer see the Renewal Banners for ABM or VPP tokens like before
  5. Looked in the DB and confirmed tokens have been migrated to the appropriate tables

QA Approved!

fleet-release commented 1 week ago

VPP token fix, Harmony in code and data, Workflows run smoothly.