Open willmayhone88 opened 2 months ago
upload rpm files to Fleet's software management for rpm based linux distros
Hey @willmayhone88, thanks for tracking this.
What Linux distros exactly is prospect-redwine
looking to install software on?
cc @dherder
@noahtalerman Linux distros: Fedora and RHEL
Design capacity: S
I want to upload rpm files to Fleet's software management for rpm based linux distros, because .deb isn't support on those distros. I hear I can repackage it somehow, but I don't know how, and Fleet doesn't tell me.
I tried uploading a rpm file, and was not able to.
Add the ability to upload and distribute rpm packages to linux distros.
A fleet user can upload the rpm file and distribute it similar to current workflows with deb files.
Go library for RPM extraction: https://github.com/cavaliergopher/rpm
Luke: There’s a Go RPM library with 125+ stars that could make this very straightforward to implement.
Hey @lukeheath what's the library?
@noahtalerman Added the link to the issue description.
Hey @zayhanlon and @dherder, heads up this didn't make the 3 week drafting timeline. We left it on the drafting board b/c the plan is to carry this into the upcoming design sprint.
Est. BE: 5-8 Victor FE: 3 Rachel
FE portion will build upon work of revamping upload packages from a modal to page level after #21810 (MDM - @gillespi314) work is merged.
Heads-up: we'll need a docs PR for this, to update everywhere that says we can do .deb to .deb + .rpm. Should be quick, just need to make sure it gets done.
@rachaelshaw @noahtalerman
Couple of questions/comments.
Policies can run on macOS, Windows, "Linux" or ChromeOS. "Linux" policies will run on both "RPM based" systems (e.g. Fedora) and "DEB based" systems (e.g. Ubuntu). A "Linux" policy that checks for a deb package being installed will (unexpectedly) run on a Fedora hosts. A "Linux" policy that checks for an RPM package being installed will (unexpectedly) run on Ubuntu hosts. The current way to "solve" this is to document that user should put RPM hosts and DEB hosts on separate teams. In the future, we can think about increasing policy OS granularity or (more flexible idea) add labels to policies (e.g. Policy X should only run on hosts with label Y.) - old related issue: https://github.com/fleetdm/fleet/issues/2238.
Related to the above, do we want (on this iteration) to prevent Fleet automatic installation of DEB packages on Fedora/RHEL systems? (and similarly, prevent RPM packages from being automatically installed on Ubuntu/Debian based systems?).
Let me know if I'm making sense.
The current way to "solve" this is to document that user should put RPM hosts and DEB hosts on separate teams.
@lucasmrod I think let's document that the best practice is handling this in the policy's query in this iteration. I think we want to maintain this best practice.
It's ok if an Ubuntu policy runs and passes on Fedora hosts.
Then, I think we can come back to making it easier to prevent automatic install of DEB packages on Fedora and vice versa. We can come back to this in a later pass.
This way, the best practice won't change as we iterate on making this easier.
Goal
Context
More info
Changes
Product
Engineering
QA
Risk assessment
Manual testing steps
Testing notes
Confirmation