fleet/ee/fleetd-chrome
Scott Gress 31190dfe65
Update Chrome extension version and instructions (#32002)
# Details

This PR updates the version in the chrome extension package.json to
1.3.3, updates the changelog with entries for the past two releases, and
updates to the beta-testing instructions in the README.
2025-09-02 08:32:15 -05:00
..
changes Update Chrome extension version and instructions (#32002) 2025-09-02 08:32:15 -05:00
src update fleetd-chrome to set expected HTTP headers (#31768) 2025-08-15 13:14:08 -05:00
.gitignore ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04:00
CHANGELOG.md Update Chrome extension version and instructions (#32002) 2025-09-02 08:32:15 -05:00
jest.config.ts ChromeOS Tables: Integration test for 3 tables (#12844) 2023-08-02 11:31:22 -04:00
jest.setup.ts Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00
jsdomwithfetch.ts Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00
package-lock.json Update Chrome extension version and instructions (#32002) 2025-09-02 08:32:15 -05:00
package.json Update Chrome extension version and instructions (#32002) 2025-09-02 08:32:15 -05:00
README.md Update Chrome extension version and instructions (#32002) 2025-09-02 08:32:15 -05:00
server.go Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00
tsconfig.json Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00
updates-beta.xml fleetd-chrome v1.3.1 release (#19087) 2024-05-16 16:39:36 -05:00
updates.xml fleetd-chrome v1.3.1 release (#19087) 2024-05-16 16:39:36 -05:00
webpack.common.js fleetd-chrome release workflows (#16020) 2024-01-16 11:56:43 -08:00
webpack.dev.js Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00
webpack.prod.js Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00

Fleetd Chrome Extension

Packaging the extension locally

Generate a .pem file to be the key for the chrome extension.

(In parent dir) Run the following command to generate an extension.

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=./fleetd-chrome --pack-extension-key=path/to/chrome.pem

Adding Chrome to Fleet

To learn how to package and add hosts to Fleet, visit: https://fleetdm.com/docs/using-fleet/enroll-hosts#enroll-chromebooks.

Debugging

Service worker

View service worker logs in chrome://serviceworker-internals/?devtools (in production), or in chrome://extensions (only during development).

Manual Enroll

Steps 1 and 2 can be performed on your workstation. Step 3 and 4 are to be executed on the target Chromebook.

  1. Create your .env file:

IMPORTANT: The address in FLEET_URL must have a valid TLS certificate.

echo 'FLEET_URL="https://your-fleet-server.example.com"' >> .env
echo 'FLEET_ENROLL_SECRET="<your enroll secret>"' >> .env

To test with your local Fleet server, you can use Tunnelmole or ngrok.

Tunnelmole:

tmole 8080

ngrok:

ngrok http https://localhost:8080
  1. Build the "unpacked extension":
npm install && npm run build

The above command will generate an unpacked extension in ./dist.

  1. Send the ./dist folder to the target Chromebook.

  2. In the target Chromebook, go to chrome://extensions, toggle Developer mode and click on Load unpacked and select the dist folder.

Testing

Run tests

npm run test

Release

  1. After your changes have been merged to the main branch, create a new branch for the release.
  2. At the top of the repo, update CHANGELOG.md by running version="X.X.X" make changelog-chrome
  3. Review CHANGELOG.md
  4. At ee/fleetd-chrome, run npm version X.X.X to update the version in package.json and package-lock.json
  5. Commit the changes and tag the commit with fleetd-chrome-vX.X.X-beta. This will trigger the beta release workflow.
  6. Test your beta release:
    1. Open the Google admin console (https://admin.google.com)
    2. Go to Devices > Chrome > Apps & Extensions > Users & browsers
    3. Under Organizational Units, select the group that your ChromeOS device is in, or the top-level Fleet Device Management OU to test the beta on all ChromeOS devices (yours may not be in a specific OU).
    4. Select the production extension (fleeedmmihkfkeemmipgmhhjemlljidg), change its installation policy to "Block", and save your changes. This will remove the production extension from the selected devices so that you can test the beta.
    5. Select the beta extension (bfleegjcoffelppfmadimianphbcdjkb), change its installation policy to "Force install" and save your change. This will push the beta extension out to the selected devices.
    6. Verify that the beta extension has installed on a device using the Chrome extension manager, and test your changes!
  7. Once the beta release is tested, make a PR with the updates to the version and changelog and tag the commit with fleetd-chrome-vX.X.X. This will trigger the release workflow.
  8. In the Google admin console, set the beta extension installation policy to "Block" and the production extension to "Force install".
  9. Announce the release in the #help-engineering channel in Slack.

Using GitHub Actions, the build is automatically uploaded to R2 and properly configured clients should be able to update immediately when the job completes. Note that automatic updates seem to only happen about once a day in Chrome -- Hit the "Update" button in chrome://extensions to trigger the update manually.

Beta releases

Beta releases are pushed to https://chrome-beta.fleetdm.com/updates.xml with the extension ID bfleegjcoffelppfmadimianphbcdjkb.

Kick off a beta release by updating the package.json, then tag a commit with fleetd-chrome-vX.X.X-beta to kick off the build and deploy.