このページは、まだ日本語ではご利用いただけません。翻訳中です。
古いプラグインバージョンのドキュメントを閲覧しています。
構成
互換性のあるプロトコル
Header Cert Authenticationプラグインは以下のプロトコルに対応しています:
grpc, grpcs, http, https
パラメータ
このプラグインの設定で使用できるすべてのパラメータのリストは次のとおりです。
-
name or plugin
string requiredプラグイン名。この場合は
header-cert-auth。- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
nameです。 - Kubernetes で KongPlugin オブジェクトを使用する場合、フィールドは
pluginです。
- Kong Admin API、Kong Konnect API、宣言型構成、または decK ファイルを使用する場合、フィールドは
-
instance_name
stringプラグインのインスタンスを識別するための任意のカスタム名 (例:
header-cert-auth_my-service。インスタンス名はKong ManagerとKonnectに表示されるので、 例えば複数のサービスで同じプラグインを複数のコンテキストで実行する場合に便利です。また、Kong Admin API経由で特定のプラグインインスタンスに アクセスするためにも使用できます。
インスタンス名は、次のコンテキスト内で一意である必要があります。
- Kong Gateway Enterpriseのワークスペース内
- Konnectのコントロールプレーン(CP)またはコントロールプレーン(CP)グループ内
- Kong Gateway (OSS)の全世界
-
service.name or service.id
stringプラグインが対象とするサービス名または ID。最上位の
/pluginsエンドポイント. からプラグインをサービスに追加する場合は、これらのパラメータのいずれかを設定してください/services/{serviceName|Id}/pluginsを使用する場合は必要ありません。 -
route.name or route.id
stringプラグインがターゲットとするルート名または ID。最上位の
/pluginsエンドポイント. を通るルートにプラグインを追加する場合は、これらのパラメータのいずれかを設定してください/routes/{routeName|Id}/pluginsを使用する場合は必要ありません。 -
enabled
boolean default:trueこのプラグインが適用されるかどうか。
-
config
record required-
certificate_header_name
string requiredName of the header that contains the certificate, received from the WAF or other L7 downstream proxy.
-
certificate_header_format
string required Must be one of:base64_encoded,url_encodedFormat of the certificate header. Supported formats:
base64_encoded,url_encoded.
-
secure_source
boolean required default:trueWhether to secure the source of the request. If set to
true, the plugin will only allow requests from trusted IPs (configured by thetrusted_ipsconfig option).
-
anonymous
stringAn optional string (consumer UUID or username) value to use as an “anonymous” consumer if authentication fails. If empty (default null), the request fails with an authentication failure
4xx. Note that this value must refer to the consumeridorusernameattribute, and not itscustom_id.
-
consumer_by
array of typestringdefault:username, custom_idMust be one of:username,custom_idWhether to match the subject name of the client-supplied certificate against consumer’s
usernameand/orcustom_idattribute. If set to[](the empty array), then auto-matching is disabled.
-
ca_certificates
array of typestringrequiredList of CA Certificates strings to use as Certificate Authorities (CA) when validating a client certificate. At least one is required but you can specify as many as needed. The value of this array is comprised of primary keys (
id).
-
cache_ttl
number required default:60Cache expiry time in seconds.
-
skip_consumer_lookup
boolean required default:falseSkip consumer lookup once certificate is trusted against the configured CA list.
-
allow_partial_chain
boolean required default:falseAllow certificate verification with only an intermediate certificate. When this is enabled, you don’t need to upload the full chain to Kong Certificates.
-
authenticated_group_by
string default:CNMust be one of:CN,DNCertificate property to use as the authenticated group. Valid values are
CN(Common Name) orDN(Distinguished Name). Onceskip_consumer_lookupis applied, any client with a valid certificate can access the Service/API. To restrict usage to only some of the authenticated users, also add the ACL plugin (not covered here) and create allowed or denied groups of users.
-
revocation_check_mode
string default:IGNORE_CA_ERRORMust be one of:SKIP,IGNORE_CA_ERROR,STRICTControls client certificate revocation check behavior. If set to
SKIP, no revocation check is performed. If set toIGNORE_CA_ERROR, the plugin respects the revocation status when either OCSP or CRL URL is set, and doesn’t fail on network issues. If set toSTRICT, the plugin only treats the certificate as valid when it’s able to verify the revocation status.
-
http_timeout
number default:30000HTTP timeout threshold in milliseconds when communicating with the OCSP server or downloading CRL.
-
cert_cache_ttl
number default:60000The length of time in milliseconds between refreshes of the revocation check status cache.
-
default_consumer
stringThe UUID or username of the consumer to use when a trusted client certificate is presented but no consumer matches. Note that this value must refer to the consumer
idorusernameattribute, and not itscustom_id.
-
http_proxy_host
stringA string representing a host name, such as example.com.
-
http_proxy_port
integer between:065535An integer representing a port number between 0 and 65535, inclusive.
-
https_proxy_host
stringA string representing a host name, such as example.com.
-
https_proxy_port
integer between:065535An integer representing a port number between 0 and 65535, inclusive.
-