このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
このプラグインはDBレスモードに対応しています。
互換性のあるプロトコル
XML Threat Protectionプラグインは以下のプロトコルに対応しています:
 grpc, grpcs, http, https
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
- 
    name or pluginstring requiredプラグイン名。この場合は xml-threat-protection。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドはnameです。
- Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドはpluginです。
 
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
- 
      instance_namestringプラグインのインスタンスを識別するための任意のカスタム名 (例: xml-threat-protection_my-service。インスタンス名はKong ManagerとKonnectに表示されるので、 例えば複数のサービスで同じプラグインを複数のコンテキストで実行する場合に便利です。また、Kong Admin API経由で特定のプラグインインスタンスに アクセスするためにも使用できます。 インスタンス名は、次のコンテキスト内で一意である必要があります。 - Kong Gateway Enterpriseのワークスペース内
- Konnectのコントロールプレーン(CP)またはコントロールプレーン(CP)グループ内
- Kong Gateway (OSS)の全世界
 
- 
      service.name or service.idstringプラグインが対象とするサービス名または ID。最上位の /pluginsエンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/pluginsを使用する場合は必要ありません。
- 
      route.name or route.idstringプラグインがターゲットとするルート名または ID。最上位の /pluginsエンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/pluginsを使用する場合は必要ありません。
- 
      consumer.name or consumer.idstringプラグインがターゲットとするコンシューマーの名前または ID。 最上位の /pluginsエンドポイント. からコンシューマーにプラグインを追加する場合は、これらのパラメーターのいずれかを設定してください/consumers/{consumerName|Id}/pluginsを使用する場合は必要ありません。
- 
    enabledboolean default:trueこのプラグインが適用されるかどうか。 
- 
  configrecord required- 
  checked_content_typesset of typestringrequired default:application/xmlA list of Content-Type values with payloads that must be validated. 
 - 
  allowed_content_typesset of typestringrequiredA list of Content-Type values with payloads that are allowed, but aren’t validated. 
 - 
  allow_dtdboolean required default:falseIndicates whether an XML Document Type Definition (DTD) section is allowed. 
 - 
  namespace_awareboolean required default:trueIf not parsing namespace aware, all prefixes and namespace attributes will be counted as regular attributes and element names, and validated as such. 
 - 
  max_depthinteger required default:50Maximum depth of tags. Child elements such as Text or Comments are not counted as another level. 
 - 
  max_childreninteger required default:100Maximum number of children allowed (Element, Text, Comment, ProcessingInstruction, CDATASection). Note: Adjacent text and CDATA sections are counted as one. For example, text-cdata-text-cdata is one child. 
 - 
  max_attributesinteger required default:100Maximum number of attributes allowed on a tag, including default ones. Note: If namespace-aware parsing is disabled, then the namespaces definitions are counted as attributes. 
 - 
  max_namespacesinteger default:20Maximum number of namespaces defined on a tag. This value is required if parsing is namespace-aware. 
 - 
  documentinteger required default:10485760Maximum size of the entire document. 
 - 
  bufferinteger required default:1048576Maximum size of the unparsed buffer (see below). 
 - 
  commentinteger required default:1024Maximum size of comments. 
 - 
  localnameinteger required default:1024Maximum size of the localname. This applies to tags and attributes. 
 - 
  prefixinteger default:1024Maximum size of the prefix. This applies to tags and attributes. This value is required if parsing is namespace-aware. 
 - 
  namespaceuriinteger default:1024Maximum size of the namespace URI. This value is required if parsing is namespace-aware. 
 - 
  attributeinteger required default:1048576Maximum size of the attribute value. 
 - 
  textinteger required default:1048576Maximum text inside tags (counted over all adjacent text/CDATA elements combined). 
 - 
  pitargetinteger required default:1024Maximum size of processing instruction targets. 
 - 
  pidatainteger required default:1024Maximum size of processing instruction data. 
 - 
  entitynameinteger required default:1024Maximum size of entity names in EntityDecl. 
 - 
  entityinteger required default:1024Maximum size of entity values in EntityDecl. 
 - 
  entitypropertyinteger required default:1024Maximum size of systemId, publicId, or notationName in EntityDecl. 
 - 
  bla_max_amplificationnumber required default:100Sets the maximum allowed amplification. This protects against the Billion Laughs Attack. 
 - 
  bla_thresholdinteger required default:8388608Sets the threshold after which the protection starts. This protects against the Billion Laughs Attack. 
 
- 
  
 
                      