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

Allow set and override of osquery flags #613

Merged
merged 2 commits into from Jun 10, 2020

Conversation

zwass
Copy link
Contributor

@zwass zwass commented Jun 8, 2020

Adds a new option --osquery_flag that allows the user to provide a
flag that will be passed directly to osquery. These flags are appended
to all other default and computed flags, allowing them to potentially
override the default and computed flags. This allows users to set flags
that would not otherwise be possible to use with Launcher (like
windows_event_channels), and also opens up additional uses of Launcher
with overridden options, plugins, etc.

Support is also added to the package tooling to build packages with this
flag set.

Closes #96

Copy link
Contributor

@directionless directionless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore the nits. But I think the help location should change. And discussion about whether we really want this level of foot gun.,

cmd/launcher/options.go Outdated Show resolved Hide resolved
pkg/osquery/runtime/runtime.go Outdated Show resolved Hide resolved
cmd/package-builder/package-builder.go Show resolved Hide resolved
cmd/launcher/options.go Show resolved Hide resolved
@zwass
Copy link
Contributor Author

zwass commented Jun 9, 2020

@directionless Thank you for the review. I believe I addressed all of your concerns.

@directionless
Copy link
Contributor

Agree this looks good. I think I fixed this CI issue in #612 rebase?

zwass added 2 commits June 9, 2020 15:19
Adds a new option `--osquery_flag` that allows the user to provide a
flag that will be passed directly to osquery. These flags are appended
to all other default and computed flags, allowing them to potentially
override the default and computed flags. This allows users to set flags
that would not otherwise be possible to use with Launcher (like
`windows_event_channels`), and also opens up additional uses of Launcher
with overridden options, plugins, etc.

Support is also added to the package tooling to build packages with this
flag set.

Closes kolide#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add osquery flagfile option
2 participants