From 49997f7b73d52aa139097eee2eafc8fa3423ee5b Mon Sep 17 00:00:00 2001 From: Rebecca Mahany-Horton Date: Wed, 6 Mar 2024 13:40:37 -0500 Subject: [PATCH] Document current process for discovering the enrollment secret --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index d86462f..23bf50e 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,13 @@ environment.etc."kolide-k2/secret" = { }; ``` +The enrollment secret can be discovered by viewing `/etc/kolide-k2/secret` (on macOS/Linux) +or `C:\Program Files\Kolide\Launcher-kolide-k2\conf\secret` (on Windows) on an existing +installation. If an existing installation is not available, then the secret may be extracted +from one of the packages available for your tenant -- e.g. you can download `kolide-launcher.deb`, +run `nix-shell -p dpkg` to make the `dpkg-deb` tool available, and then use `dpkg-deb` to extract +the contents of the deb and view the resulting `/etc/kolide-k2/secret` file. + In `/etc/nixos/configuration.nix`, ensure that the kolide-launcher service is enabled: ```