fleetdm / fleet

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

deb packages created with certain compression algorithms are failing to upload #23950

Open allenhouchins opened 2 days ago

allenhouchins commented 2 days ago

Fleet version: 4.59.0

Web browser and operating system: Any


💥  Actual behavior

deb packages created by Debreate are failing to upload.

More info here on the crash this creates: https://fleetdm.slack.com/archives/C03EG80BM2A/p1732032709331329

🧑‍💻  Steps to reproduce

  1. Create a deb package using Debreate using its default settings
  2. Attempt to upload the deb package to Fleet and witness failure

🕯️ More info (optional)

There is a work around by performing the following steps:

dpkg-deb -R '/path/to/deb/' '/path/to/where/you/want/debfiles' and then repackaging it using: dpkg-deb --build -Zgzip '/path/to/debfiles'

Unfortunately I haven't validated what compression is used by default but safe to assume once that is determined, this issue could be replicated without Debreate.

allenhouchins commented 2 days ago

More info:

Install Pre-requisites

sudo apt update
sudo apt install python3-pip
sudo apt install build-essential libgtk-3-dev libwebkit2gtk-4.1-dev \
    libgl1-mesa-dev libglu1-mesa-dev libjpeg-dev libtiff-dev \
    libsdl2-dev libgstreamer-plugins-base1.0-dev freeglut3-dev
pip3 install --upgrade --user --force-reinstall --no-cache-dir --break-system-packages wxPython

Install Debreate sudo dpkg -i '/path/to/debreate_#version'

sharon-fdm commented 1 day ago

Hey team! Please add your planning poker estimate with Zenhub @iansltx @lucasmrod @mostlikelee