Proxy for a small selection of the Kolide API.
git clone git@github.com:nais/kolide-api-proxy.git
cd kolide-api-proxyInstall tools using mise:
mise installCreate a copy of the example environment file and adjust as needed:
cp .env.example .envRun the application to start the HTTP server:
go run main.goPoint your HTTP client of choice to http://localhost:8080/api/devices (or the HTTP_LISTEN_ADDRESS you have specified in your .env file), authenticate using username:password (or the PROXY_USERNAME:PROXY_PASSWORD combination you have specified in your .env file) to view devices.
Run mise run to see all available tasks. These are some of the most common ones used for local development:
mise run check # run all static code analysis toolsMIT, see LICENSE.txt for details.