Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply software version transformations to uploaded custom packages #25970

Open
iansltx opened this issue Feb 2, 2025 · 0 comments
Open

Apply software version transformations to uploaded custom packages #25970

iansltx opened this issue Feb 2, 2025 · 0 comments
Labels
~engineering-initiated Engineering-initiated story, such as a bug, refactor, or contributor experience improvement. #g-software Software product group

Comments

@iansltx
Copy link
Member

iansltx commented Feb 2, 2025

Problem

Currently version number transformations for proper vulnerability matching only happen on software ingestion from osquery. If an installer is uploaded with a similar version issue, we don't touch the version number.

This matters for upcoming (Q1'25 software OKR) patching workflows, as we'll likely need to tweak automated query generation for "does this host need to be patched" for known cases where the installer version won't match what we would see in osquery (if we base patching workflows on policies) or in software inventory (if we base patching workflows on software inventory post-ingest).

What have you tried?

There is currently no way (other than modifying in the DB) to tweak the version number of a custom package once it's been uploaded to Fleet. Modifying the package could be a workaround, at the expense of any code signing the package has.

Potential solutions

Add a templated (hard-coded first, to be replaced later with a feed that is pulled independent of Fleet release cycles) way to modify software title versions on upload before they hit the database. Note that this will likely be a different set of transformations than we have for software ingest.

What is the expected workflow as a result of your proposal?

If I upload an e.g. Python for Windows installer, and then ran that installer on a host, the version reported from the host for patching purposes should match the version associated with the installer.

For reference, right now the installed version of Python for Windows would report as newer than the installer version (installer has dot-zero where installed has a 1xxx static number representing Python ABI). Once #24611 lands to fix vulnerability processing mismatches, the version reported in software inventory will be lower than the version extracted from the installer (e.g. 3.9.1150.0 for the installer vs. 3.9.1 for software inventory).

@iansltx iansltx added #g-software Software product group ~engineering-initiated Engineering-initiated story, such as a bug, refactor, or contributor experience improvement. labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
~engineering-initiated Engineering-initiated story, such as a bug, refactor, or contributor experience improvement. #g-software Software product group
Projects
None yet
Development

No branches or pull requests

1 participant