Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for forwarding osquery_flag arguments to the kolide launcher #33

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions modules/kolide-launcher/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ in
'';
};

osQueryFlags = mkOption {
f4z3r marked this conversation as resolved.
Show resolved Hide resolved
type = types.listOf types.str;
default = [];
description = ''
OsQuery flags to pass via the agent.
f4z3r marked this conversation as resolved.
Show resolved Hide resolved
'';
};

localdevPath = mkOption {
type = types.nullOr types.path;
default = null;
Expand Down Expand Up @@ -124,10 +132,11 @@ in
"--autoupdate_interval ${cfg.autoupdateInterval}"
"--autoupdater_initial_delay ${cfg.autoupdaterInitialDelay}"
]
++ optional cfg.insecureTransport "--insecure_transport"
++ optional cfg.insecureTLS "--insecure"
++ optional (!builtins.isNull cfg.localdevPath) "--localdev_path ${cfg.localdevPath}"
);
++ optional cfg.insecureTransport "--insecure_transport"
++ optional cfg.insecureTLS "--insecure"
++ optional (!builtins.isNull cfg.localdevPath) "--localdev_path ${cfg.localdevPath}"
++ map (x: "--osquery_flag ${x}") cfg.osQueryFlags
);
Restart = "on-failure";
RestartSec = 3;
};
Expand Down
Loading