# Fleetd Chrome Extension ## Pack extension (In parent dir) ``` sh /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": "" } } ``` 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=""' >> .env echo 'FLEET_ENROLL_SECRET=""' >> .env ``` 2. Build: ``` npm install && npm run build ``` 3. The unpacked extension is in the `dist` dir.