envoyproxy/envoy

add listener message validation based on semantic

Open

#15,372 创建于 2021年3月8日

在 GitHub 查看
 (8 评论) (0 反应) (1 负责人)C++ (5,373 fork)batch import
area/configurationarea/listenerhelp wanted

仓库指标

Star
 (27,997 star)
PR 合并指标
 (平均合并 8天) (30 天内合并 378 个 PR)

描述

We have tcp listener, udp listener, api listener in the same Listener message , and I am adding another internal listener.

These listeners have their own feature set. e.g. connection_balance_config should not be used by udp listener, filter_chains should only be used by tcp listener (and quic ?), not all sock options are for udp, vice versa.

We don't have adequate validation for the above implicit rules for now.

It's probably good to warn the user upon receiving listener config, starting from "some fields are contradicting or ignored" and eventually reject inconsistent config.

WDYT?

贡献者指南