hashicorp / consul

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
https://www.consul.io
Other
28.24k stars 4.41k forks source link

disable_compression doesn't seem to be working #6230

Open mlamothe opened 5 years ago

mlamothe commented 5 years ago

Overview of the Issue

I have two consul servers configured more or less like this (different IP addresses)

`{ "datacenter": "test", "data_dir": "/opt/consul", "encrypt": "####", "client_addr": "10.30.54.161", "addresses": { "http": "0.0.0.0" }, "server": true, "bootstrap_expect": 2, "ui": true, "bind_addr": "10.30.54.161", "dns_config": { "disable_compression": true }

}`

Reproduction Steps

Setup Consul with disable_compression, the response from a SRV DNS query is still compressed. This actually crashes Go, which doesn't allow compressed SRV records.

Operating system and Environment details

Consul v1.5.2 Ubuntu Server 18.04.02 LTS

dbknickerbocker commented 5 years ago

Go erroneously (https://github.com/golang/go/issues/24870) disables support for compressed SRV Target fields which necessitates the ability to turn off compression in Consul for integrations with any Go related project - i.e. krackend (https://github.com/devopsfaith/krakend/issues/268)