func Test_requireProxyProtocol(t *testing.T) {
	b := New("local-grpc", "local-http", nil, nil)
	t.Run("required", func(t *testing.T) {
		li, err := b.buildMainListener(context.Background(), &config.Config{Options: &config.Options{
			UseProxyProtocol: true,
			InsecureServer:   true,
		}})
		require.NoError(t, err)
		testutil.AssertProtoJSONEqual(t, `[
			{
				"name": "envoy.filters.listener.proxy_protocol",
				"typedConfig": {
					"@type": "type.googleapis.com/envoy.extensions.filters.listener.proxy_protocol.v3.ProxyProtocol"
				}
			}
		]`, li.GetListenerFilters())
	})
	t.Run("not required", func(t *testing.T) {
		li, err := b.buildMainListener(context.Background(), &config.Config{Options: &config.Options{
			UseProxyProtocol: false,
			InsecureServer:   true,
		}})
		require.NoError(t, err)
		assert.Len(t, li.GetListenerFilters(), 0)
	})
}
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.