Centralized Config Proxy Defaults dont support nested maps #5746
Labels
theme/connect
Anything related to Consul Connect, Service Mesh, Side Car Proxies
type/bug
Feature does not function as expected
In short making a
PUT
request to/v1/config
with the following payload gets stored in raft but is unretrievable afterwards.The problem seems to be the nested map internally is typed as a
map[interface{}]interface{}
which the JSON encoder refuses to handle.To fix this I think we would need to not store these pass through configs as a regular
map[string]interface{}
but instead have some type which enforces the JSON compatibility of the pass through config when decoding/encoding and prevents these issues.This is very loosely related to #4971 and could possibly be fixed in a common way.
The text was updated successfully, but these errors were encountered: