fleet/ee/fleetd-chrome
Juan Fernandez 43ab81ee11
Feature 11829: Tailor host table response to ChromeOS (#12002)
Updated ingestion logic and fixed ChromeOS virtual tables to accommodate the requested UI changes.
2023-05-30 22:13:42 -04:00
..
src Feature 11829: Tailor host table response to ChromeOS (#12002) 2023-05-30 22:13:42 -04:00
.gitignore ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04:00
jest.config.ts Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03: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 ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04:00
package.json ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04:00
README.md ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04: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.xml Fleetd for Chrome (#10281) 2023-03-16 09:01:10 -03:00
webpack.common.js ChromeOS support for Fleet dashboard (#11953) 2023-05-26 14:32:01 -04: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

Pack extension

(In parent dir)

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

Configure in Google Admin

Left menu: Devices > Chrome > Apps & Extensions > Users & browsers (https://admin.google.com/ac/chrome/apps/user)

Select the appropriate organizational unit, users, or groups.

Bottom right yellow + button > Add Chrome app or extension by ID

Extension ID: fleeedmmihkfkeemmipgmhhjemlljidg From a custom URL: https://chrome.fleetdm.com/updates.xml

Then add the "Policy for extensions" to configure it:

{
  "fleet_url": {
    "Value": "https://fleet.example.com"
  },
  "enroll_secret":{
    "Value": "<secretgoeshere>"
  }
}

Select "Force install". Select "Update URL" > "Installation URL (see above)"

Debugging

Service worker

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

Dev

  1. Create your .env file:
echo 'FLEET_URL="<some_url>"' >> .env
echo 'FLEET_ENROLL_SECRET="<your enroll secret>"' >> .env
  1. Build:
npm install && npm run build
  1. The unpacked extension is in the dist dir.