Skip to content

Commit

Permalink
feat: introduce osquery_flag to agent
Browse files Browse the repository at this point in the history
  • Loading branch information
f4z3r committed Oct 2, 2024
1 parent bafafdc commit e0b01a5
Showing 1 changed file with 13 additions and 4 deletions.
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 {
type = types.listOf types.str;
default = [];
description = ''
OsQuery flagsto pass via the agent.
'';
};

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

0 comments on commit e0b01a5

Please sign in to comment.