launcher
launcher copied to clipboard
Patch utf8 handling
Osquery sometimes mis-encodes utf8 data https://github.com/facebook/osquery/issues/5288
This is a broad attempt to repair log files that exhibit that issue. This runs against the entire log file. Hopefully, there isn’t going to be a case where it misfires.
I'm not sure if this is great. On one hand, it fixes a bug in osquery. On the other hand, it introduces a discrepancy between osquery logs and launcher logs. Feel free to vote with 👍 or 👎. I'm going to let this sit a bit
Fixes: https://github.com/kolide/launcher/issues/445
I'm not confident this will behave correctly, and there's one downvote. So I'm going to close this.
Sounds like we probably want to revisit this. Probably only triggering repairs on utf8 errors
In light of the additional conversation on #445, let's revisit this.
This is a pretty heavy handed attempt to repair the data, and failing that, redact it,
I don't have much for a test case though.
This was fixed upstream, and I haven't seen this occur in ages. So I'm going to close this PR.