Title
#kolide
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
ccoy

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
5:58 PM
okay… figured out PHP code that can inflate the output from golang’s
compress/flate
5:59 PM
<?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";
5:59 PM
the higher-level APIs in PHP don’t seem to like golang’s
flate