FilterChain
The FilterChain configurations of MOSN.
This topic describes the FilterChain configurations of MOSN.
FilterChain configurations are core logic configurations for MOSN listeners. Different FilterChain configurations describe how a listener handles requests.
Currently, a MOSN listener supports only one FilterChain.
The FilterChain configuration structure is shown as follows.
{
"tls_context": {},
"tls_context_set": [],
"filters": []
}
tls_context_set
- Settings for a group of
tls_context
. MOSN usestls_context_set
to describe the TLS certificate information of a listener by default. - A listener supports multiple TLS certificates simultaneously.
tls_context
- Setting a single
tls_context
instead oftls_context_set
is required for backward compatibility of MOSN (for earlier versions that support configuring only one certificate). This setting method will be gradually abandoned. - For details about the tls_context configuration, see the tls_context.
filters
Settings of a group of network filters.
network filter
network filter specifies how MOSN processes connection data at layer 4 after a connection is established.
{
"type":"",
"config": {}
}
type
is a string that describes the filter type.config
can be any json values that describe configurations of different filters.network filter
supports custom extensions. The following types are supported by default:proxy
,tcp proxy
, andconnection_manager
.connection_manager
is a special filter used withproxy
. It describes the router configurations ofproxy
and may be modified subsequently as a compatibility configuration.
Last modified December 2, 2022: Bump tar from 4.4.8 to 4.4.19 in /themes/docsy/userguide (942c999)