fix: Include Software URLs in fleet generate-gitops when software has URL (#30177)

fixes: https://github.com/fleetdm/fleet/issues/29617
# Checklist for submitter

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Manual QA for all new/changed functionality


I implemented support for exporting the url field in fleetctl
generate-gitops when it's available in the software installer metadata.
During testing, I found that although some Fleet-maintained apps (like
Brave and Cloudflare WARP) show URLs in the UI, those URLs are not
persisted to the database—hence they don’t appear in the generated YAML
unless added manually. I confirmed the url field is supported in the
database and properly handled in the insertion logic. The version field
does get populated when the software is installed on a host. This patch
completes the GitOps export part, but the root issue may lie in the
ingestion flow of the url.


![image](https://github.com/user-attachments/assets/422c04cc-26f8-4607-83e0-b1772b8d81cf)

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
This commit is contained in:
Dhruv Trivedi
2025-06-24 16:42:59 -05:00
committed by GitHub
co-authored by Ian Littman
parent 27381b9ecd
commit f4d6e35409
4 changed files with 7 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
* Added missing "url" parameter when exporting YAML on software packages that have a URL specified (thanks @drvcodenta!)