fleet/ee/maintained-apps
github-actions[bot] dd7ba8d110
Update Fleet-maintained apps (#29041)
Automated ingestion of latest Fleet-maintained app data.

Co-authored-by: jahzielv <19838370+jahzielv@users.noreply.github.com>
2025-05-12 09:31:01 -05:00
..
ingesters software categories: backend (#28479) 2025-05-02 11:41:26 -04:00
inputs software categories: backend (#28479) 2025-05-02 11:41:26 -04:00
outputs Update Fleet-maintained apps (#29041) 2025-05-12 09:31:01 -05:00
maintained_apps.go software categories: backend (#28479) 2025-05-02 11:41:26 -04:00
README.md Contribute to Fleet-maintained apps (#28812) 2025-05-07 17:16:45 -04:00

Fleet-maintained apps (FMA)

Adding a new app

  1. Decide on a source for the app's metadata. We currently support homebrew as a source for macOS apps.
  2. Find that app's metadata. For homebrew, you can visit https://formulae.brew.sh/ and find the app there.
  3. Create a new file called $YOUR_APP_NAME.json in the inputs/$SOURCE directory. For example, if you wanted to add Box Drive and use homebrew as the source, you would create the file inputs/homebrew/box-drive.json.
  4. Fill out the file according to the breakdown below. For our example Box Drive app, it would look like this:
    {
       "name": "Box Drive",
       "slug": "box-drive/darwin",
       "unique_identifier": "com.box.desktop",
       "token": "box-drive",
       "installer_format": "pkg",
       "pre_uninstall_scripts": [
          "(cd /Users/$LOGGED_IN_USER; sudo -u $LOGGED_IN_USER fileproviderctl domain remove -A com.box.desktop.boxfileprovider)",
          "(cd /Users/$LOGGED_IN_USER; sudo -u $LOGGED_IN_USER /Applications/Box.app/Contents/MacOS/fpe/streem --remove-fpe-domain-and-archive-unsynced-content Box)",
          "(cd /Users/$LOGGED_IN_USER; sudo -u $LOGGED_IN_USER /Applications/Box.app/Contents/MacOS/fpe/streem --remove-fpe-domain-and-preserve-unsynced-content Box)",
          "(cd /Users/$LOGGED_IN_USER; defaults delete com.box.desktop)",
          "echo \"${LOGGED_IN_USER} ALL = (root) NOPASSWD: /Library/Application\\ Support/Box/uninstall_box_drive_r\" >> /etc/sudoers.d/box_uninstall"
       ],
       "post_uninstall_scripts": ["rm /etc/sudoers.d/box_uninstall"]
    }
    
  5. Open a PR to the fleet repository with the new app file. This will trigger a CI job which will automatically update your PR with the required output files. These files contain important data such as the install and uninstall scripts for the app.
  6. The #g-software product group will review the PR and test the app. Once approved and merged, the app should appear in the Fleet-maintained apps section when adding new software to Fleet.

Input file schema

name

This is the user-facing name of the application.

unique_identifier

This is the platform-specific unique identifier for the app. On macOS, this is the app's bundle identifier.

token

This is the identifier used by homebrew for the app; it is the token field on the homebrew API response.

installer_format

This is the file format for the app's installer. Currently supported values are:

  • zip
  • dmg
  • pkg

To find the app's installer format, you can look at the url field on the homebrew API response. The installer's extension should be at the end of this URL.

Sometimes the file type is not included in the installer's URL. In this case, you can download the installer and use the extension of the downloaded file.

slug

The slug identifies a specific app and platform combination. It is used to name the manifest files that contain the metadata that Fleet needs to add, install, and uninstall this app.

The slug is composed of a filesystem-friendly version of the app name, and an operating system platform identifier, separated by a /.

For the app name part, use - to separate words if necessary, for example adobe-acrobat-reader.

The platform part can be any of these values:

  • darwin

For example, use a slug of box-drive/darwin for Box Drive on macOS.

pre_uninstall_scripts

These are command lines that will be run before the generated uninstall script is executed.

post_uninstall_scripts

These are command lines that will be run after the generated uninstall script is executed.

Testing

Fleet tests every Fleet-maintained app. For new apps, start at step 1. For updates to existing apps, skip to step 4.

  1. When a pull request is opened in inputs/, the #g-software Engineering Manager (EM) is automatically added as reviewer.
  2. The EM is responsible for making sure that the name for the new app matches the name that shows up in Fleet's software inventory. If the name doesn't match or if the name is not user-friendly, the EM will bring it to #g-software design review. This way, when the app is added to Fleet, the app will be matched with the app that comes back in software inventory.
  3. Then, the EM builds the app's outputs/ on the same PR. At this time, @eashaw and a Product Designer are added to the PR. Eric adds the icon for fleetdm.com/app-library.
  4. The Product Designer is responsible for testing the app:
  • If the app is a new app, add an icon for the app to the PR. App icons are located here in the repository. Run the Docker publish GitHub action to add the tag to Docker Hub.
  • Run the following fleetctl preview command and test the app: Does the icon look right? Does the app install? Does the app uninstall? Can you open the app once it's installed?
fleetctl preview --tag=<Docker-tag> --license-key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJGbGVldCBEZXZpY2UgTWFuYWdlbWVudCBJbmMuIiwiZXhwIjoxNjQwOTk1MjAwLCJzdWIiOiJkZXZlbG9wbWVudCIsImRldmljZXMiOjEwMCwibm90ZSI6ImZvciBkZXZlbG9wbWVudCBvbmx5IiwidGllciI6ImJhc2ljIiwiaWF0IjoxNjIyNDI2NTg2fQ.WmZ0kG4seW3IrNvULCHUPBSfFdqj38A_eiXdV_DFunMHechjHbkwtfkf1J6JQJoDyqn8raXpgbdhafDwv3rmDw
  1. If the tests fail, the PD sets the PR to draft and files a bug that links to the PR.
  2. If the test is successful, the PD approves and merges the PR. For new apps, the PD opens a user story to test the new icon, adds it to the #g-software board (:release and #g-software labels), and assigns the EM.