https://github.com/osquery/osquery logo
Title
c

chris

04/13/2018, 2:59 PM
@ccoy we have narrowed down the issue with Kolide Fleet/DAG SAML interoperability to the compression being used. we’re trying to figure out what libraries in PHP can deal with the raw FLATE decompression as opposed to gzinflate which doesn’t work
c

ccoy

04/13/2018, 3:01 PM
Thanks for the update! Curious to hear what you come up with.
c

chris

04/13/2018, 3:05 PM
we’re also not sure if the fix should be on the PHP side or Golang side. we’re trying to determine if what kolide fleet produces is RFC 1951 compliant
okay… figured out PHP code that can inflate the output from golang’s
compress/flate
<?php
$value_b64 = "from_golang";
$value = base64_decode($value_b64);
$context = inflate_init(ZLIB_ENCODING_RAW);
if (!$context) {
    echo "oh no\n";
}
$output = inflate_add($context, $value);
echo $output;
echo "\n";
the higher-level APIs in PHP don’t seem to like golang’s
flate