example <https://github.com/kolide/go-extension-tu...
# kolide
j
This is a good method for testing, but what if I wanted to push to 100 computers with osquery….ENVs aren’t, IMO, ideal. if there is no method for getting the data from the flagfile, is the next best option to parse it in the extension??
g
Why are ENVs not ideal?
use a JSON file if you prefer and load it from a specific location
j
I really dont have a answer to that, I just feel managing ENVs across an enterprise sounds painful. Maybe I am mistaken. The JSON sounds okay….would adding functionality to the API to leverage the flagfile even be possible?
because I would have to assume that the extensions get loaded after the flagfile vars….again, im assuming.
g
you can't use CLI flags to configure your extension. the architecture of osquery + extensions makes it not possible
j
gotcha
g
env vars are no more or less difficult than a file or CLI flags. You just add them to your launchd/systemd file and you're done
launchd looks very similar
j
fair enough, ill give it a whirl…..thanks again