본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Confluent 플러그인 설정 레퍼런스

원문 보기 위키 갱신

Confluent 플러그인 설정 레퍼런스 (Confluent Plugin Configuration Reference)

이 문서는 Kong의 Confluent 플러그인에서 설정할 수 있는 파라미터를 스키마 형태로 하나씩 풀어서 설명해 주는 설정 레퍼런스예요. 메시지를 보낼 수 있는 토픽 목록(allowed_topics)이나 부트스트랩 브로커 목록(bootstrap_servers)처럼 연결의 기본이 되는 필드부터 차근차근 살펴볼 수 있어요. SASL 인증에 쓰이는 cluster_api_key와 cluster_api_secret은 볼트 시크릿 참조와 암호화가 가능한 필드라는 표시도 함께 되어 있어요. 클러스터 식별자(cluster_name)나 메시지 압축 방식(compression_type) 같은 동작 옵션의 의미와 기본값도 여기서 확인해 보세요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "allowed_topics": {
          "description": "The list of allowed topic names to which messages can be sent. The default topic configured in the `topic` field is always allowed, regardless of its inclusion in `allowed_topics`.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "bootstrap_servers": {
          "description": "Set of bootstrap brokers in a `{host: host, port: port}` list format.",
          "items": {
            "properties": {
              "host": {
                "description": "A string representing a host name, such as example.com.",
                "type": "string"
              },
              "port": {
                "description": "An integer representing a port number between 0 and 65535, inclusive.",
                "maximum": 65535,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "host",
              "port"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "cluster_api_key": {
          "description": "Username/Apikey for SASL authentication. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
          "type": "string",
          "x-encrypted": true,
          "x-referenceable": true
        },
        "cluster_api_secret": {
          "description": "Password/ApiSecret for SASL authentication. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
          "type": "string",
          "x-encrypted": true,
          "x-referenceable": true
        },
        "cluster_name": {
          "description": "An identifier for the Kafka cluster. By default, this field generates a random string. You can also set your own custom cluster identifier.  If more than one Kafka plugin is configured without a `cluster_name` (that is, if the default autogenerated value is removed), these plugins will use the same producer, and by extension, the same cluster. Logs will be sent to the leader of the cluster.",
          "type": "string"
        },
        "compression_type": {
          "default": "none",
          "description": "The compression codec the producer uses to compress message batches before sending them to the Kafka broker. This applies only to the Kong-to-broker hop and is independent of any HTTP-level `Content-Encoding`. Defaults to `none` (compression disabled); `lz4` is the recommended codec when enabling compression.",
          "enum": [
            "gzip",
            "lz4",
            "none",
            "snappy"
          ],
          "type": "string"
        },
        "confluent_cloud_api_key": {
          "description": "Apikey for authentication with Confluent Cloud. This allows for management tasks such as creating topics, ACLs, etc. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
          "type": "string",
          "x-encrypted": true,
          "x-referenceable": true
        },
        "confluent_cloud_api_secret": {
          "description": "The corresponding secret for the Confluent Cloud API key. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
          "type": "string",
          "x-encrypted": true,
          "x-referenceable": true
        },
        "error_handling": {
          "properties": {
            "return_error_message": {
              "default": false,
              "description": "When enabled, the Kafka client error message is returned to the HTTP client. Useful for debugging but may expose internal details, so should be disabled in production.",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "forward_body": {
          "default": true,
          "description": "Include the request body in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "type": "boolean"
        },
        "forward_headers": {
          "default": false,
          "description": "Include the request headers in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "type": "boolean"
        },
        "forward_method": {
          "default": false,
          "description": "Include the request method in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "type": "boolean"
        },
        "forward_uri": {
          "default": false,
          "description": "Include the request URI and URI arguments (as in, query arguments) in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "type": "boolean"
        },
        "headers": {
          "description": "Configuration for forwarding HTTP headers as Kafka record headers.",
          "properties": {
            "exclude_headers": {
              "default": [],
              "description": "Blocklist of HTTP header names to exclude from forwarding. Used when `forward_all_by_default` is `enabled`.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "forward_all_by_default": {
              "default": false,
              "description": "When `false`, only headers listed in `include_headers` are forwarded. When `true`, all headers except those in `exclude_headers` are forwarded.",
              "type": "boolean"
            },
            "forward_http_headers_as_record_headers": {
              "default": true,
              "description": "Whether to forward HTTP headers as Kafka record headers.",
              "type": "boolean"
            },
            "include_headers": {
              "default": [],
              "description": "Allowlist of HTTP header names to forward as Kafka record headers. Used when `forward_all_by_default` is `disabled`.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "name_mappings": {
              "additionalProperties": {
                "type": "string"
              },
              "default": {},
              "description": "Map of HTTP header names to Kafka record header names. If an HTTP header name matches a key, the corresponding value is used as the Kafka record header name.",
              "type": "object"
            },
            "repeated_headers_behavior": {
              "default": "retain_duplicates",
              "description": "How to handle repeated HTTP headers: `concatenate_by_comma` joins values with a comma, `take_first` uses only the first value, `retain_duplicates` creates separate Kafka record headers for each value.",
              "enum": [
                "concatenate_by_comma",
                "retain_duplicates",
                "take_first"
              ],
              "type": "string"
            }
          },
          "type": "object"
        },
        "keepalive": {
          "default": 60000,
          "description": "Keepalive timeout in milliseconds.",
          "type": "integer"
        },
        "keepalive_enabled": {
          "default": false,
          "type": "boolean"
        },
        "key_query_arg": {
          "description": "The request query parameter name that contains the Kafka message key. If specified, messages with the same key will be sent to the same Kafka partition, ensuring consistent ordering.",
          "type": "string"
        },
        "message_by_lua_functions": {
          "description": "The Lua functions that manipulates the message being sent to the Kafka topic.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "new_kafka_async_producer": {
          "default": false,
          "description": "Use the improved asynchronous Kafka producer, which batches messages more efficiently under high load. Only affects asynchronous mode. Messages without a key may be reordered across partitions; set a message key if ordering matters.",
          "type": "boolean"
        },
        "oauthbearer": {
          "description": "Options for SASL OAUTHBEARER authentication. When set, takes precedence over `cluster_api_key`/`cluster_api_secret`.",
          "properties": {
            "client_id": {
              "description": "The OAuth2 client ID. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
              "type": "string",
              "x-referenceable": true
            },
            "client_secret": {
              "description": "The OAuth2 client secret. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
              "type": "string",
              "x-encrypted": true,
              "x-referenceable": true
            },
            "extensions": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "Key-value pairs sent as extensions in the OAUTHBEARER SASL handshake (e.g. logicalCluster, identityPoolId).",
              "type": "object"
            },
            "scopes": {
              "description": "List of OAuth2 scopes to request.",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "token_endpoint_tls_verify": {
              "default": true,
              "description": "Whether to verify the TLS certificate of the token endpoint.",
              "type": "boolean"
            },
            "token_endpoint_url": {
              "description": "The URL of the OAuth2 token endpoint. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
              "type": "string",
              "x-referenceable": true
            }
          },
          "type": "object"
        },
        "producer_async": {
          "default": true,
          "description": "Flag to enable asynchronous mode. Only takes effect when `producer_config_enabled` is true.",
          "type": "boolean"
        },
        "producer_async_buffering_limits_messages_in_memory": {
          "default": 50000,
          "description": "Maximum number of messages that can be buffered in memory in asynchronous mode.",
          "type": "integer"
        },
        "producer_async_flush_timeout": {
          "default": 1000,
          "description": "Maximum time interval in milliseconds between buffer flushes in asynchronous mode.",
          "type": "integer"
        },
        "producer_async_health_failure_threshold": {
          "default": 3,
          "description": "Number of consecutive authentication/authorization or connectivity failures before the producer is marked unhealthy and async requests are gated.",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "producer_async_health_gating": {
          "default": false,
          "description": "In asynchronous mode, fail incoming requests fast with HTTP 503 (instead of returning 200 and silently dropping the message) when the producer is sustainedly failing to authenticate with, or reach, the broker. Disabled by default.",
          "type": "boolean"
        },
        "producer_async_health_probe_interval": {
          "default": 5000,
          "description": "Interval in milliseconds between background recovery probes while the producer is unhealthy.",
          "maximum": 600000,
          "minimum": 100,
          "type": "integer"
        },
        "producer_async_health_recovery_threshold": {
          "default": 1,
          "description": "Number of consecutive successful recovery probes required before the producer resumes accepting async requests.",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "producer_config_enabled": {
          "default": false,
          "description": "Honor the `producer_*` delivery settings (asynchronous mode, request acks/limits/retries). Historically the Confluent plugin ignored these and always produced synchronously; this flag defaults to false to preserve that behavior. Set to true to opt into the configured producer behavior.",
          "type": "boolean"
        },
        "producer_request_acks": {
          "default": 1,
          "description": "The number of acknowledgments the producer requires the leader to have received before considering a request complete. Allowed values: 0 for no acknowledgments; 1 for only the leader; and -1 for the full ISR (In-Sync Replica set).",
          "enum": [
            -1,
            0,
            1
          ],
          "type": "integer"
        },
        "producer_request_limits_bytes_per_request": {
          "default": 1048576,
          "description": "Maximum size of a Produce request in bytes.",
          "type": "integer"
        },
        "producer_request_limits_messages_per_request": {
          "default": 200,
          "description": "Maximum number of messages to include into a single producer request.",
          "type": "integer"
        },
        "producer_request_retries_backoff_timeout": {
          "default": 100,
          "description": "Backoff interval between retry attempts in milliseconds.",
          "type": "integer"
        },
        "producer_request_retries_max_attempts": {
          "default": 10,
          "description": "Maximum number of retry attempts per single Produce request.",
          "type": "integer"
        },
        "producer_request_timeout": {
          "default": 2000,
          "description": "Time to wait for a Produce response in milliseconds.",
          "type": "integer"
        },
        "schema_registry": {
          "description": "The plugin-global schema registry configuration. This can be overwritten by the topic configuration.",
          "properties": {
            "confluent": {
              "properties": {
                "authentication": {
                  "properties": {
                    "basic": {
                      "properties": {
                        "password": {
                          "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        },
                        "username": {
                          "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        }
                      },
                      "required": [
                        "password",
                        "username"
                      ],
                      "type": "object"
                    },
                    "identity_pool_id": {
                      "description": "The Confluent Cloud OAuth identity pool ID, sent as the `Confluent-Identity-Pool-Id` request header. Optional: if omitted, Confluent Cloud automatically maps an identity pool based on the token's claims.",
                      "type": "string"
                    },
                    "logical_cluster_id": {
                      "description": "The Confluent Cloud Schema Registry cluster ID, sent as the `target-sr-cluster` request header. Confluent Cloud requires this when `mode` is 'oauth2'.",
                      "type": "string"
                    },
                    "mode": {
                      "default": "none",
                      "description": "Authentication mode to use with the schema registry.",
                      "enum": [
                        "basic",
                        "none",
                        "oauth2"
                      ],
                      "type": "string"
                    },
                    "oauth2": {
                      "properties": {
                        "audience": {
                          "default": [],
                          "description": "List of audiences passed to the IdP when obtaining a new token.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "client_id": {
                          "description": "The client ID for the application registration in the IdP. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        },
                        "client_secret": {
                          "description": "The client secret for the application registration in the IdP. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        },
                        "grant_type": {
                          "default": "client_credentials",
                          "description": "The OAuth grant type to be used.",
                          "enum": [
                            "client_credentials",
                            "password"
                          ],
                          "type": "string"
                        },
                        "password": {
                          "description": "The password to use if `config.oauth.grant_type` is set to `password`. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        },
                        "scopes": {
                          "default": [
                            "openid"
                          ],
                          "description": "List of scopes to request from the IdP when obtaining a new token.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "token_endpoint": {
                          "description": "The token endpoint URI.",
                          "type": "string"
                        },
                        "token_headers": {
                          "additionalProperties": {
                            "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                            "type": "string",
                            "x-referenceable": true
                          },
                          "description": "Extra headers to be passed in the token endpoint request. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                          "type": "object"
                        },
                        "token_post_args": {
                          "additionalProperties": {
                            "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                            "type": "string",
                            "x-referenceable": true
                          },
                          "description": "Extra post arguments to be passed in the token endpoint request. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                          "type": "object"
                        },
                        "username": {
                          "description": "The username to use if `config.oauth.grant_type` is set to `password`. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        }
                      },
                      "required": [
                        "token_endpoint"
                      ],
                      "type": "object"
                    },
                    "oauth2_client": {
                      "properties": {
                        "auth_method": {
                          "default": "client_secret_post",
                          "description": "The authentication method used in client requests to the IdP. Supported values are: `client_secret_basic` to send `client_id` and `client_secret` in the `Authorization: Basic` header, `client_secret_post` to send `client_id` and `client_secret` as part of the request body, or `client_secret_jwt` to send a JWT signed with the `client_secret` using the client assertion as part of the body.",
                          "enum": [
                            "client_secret_basic",
                            "client_secret_jwt",
                            "client_secret_post",
                            "none"
                          ],
                          "type": "string"
                        },
                        "client_secret_jwt_alg": {
                          "default": "HS512",
                          "description": "The algorithm to use with JWT when using `client_secret_jwt` authentication.",
                          "enum": [
                            "HS256",
                            "HS512"
                          ],
                          "type": "string"
                        },
                        "http_proxy": {
                          "description": "The proxy to use when making HTTP requests to the IdP.",
                          "type": "string"
                        },
                        "http_proxy_authorization": {
                          "description": "The `Proxy-Authorization` header value to be used with `http_proxy`.",
                          "type": "string"
                        },
                        "http_version": {
                          "default": 1.1,
                          "description": "The HTTP version used for requests made by this plugin. Supported values: `1.1` for HTTP 1.1 and `1.0` for HTTP 1.0.",
                          "type": "number"
                        },
                        "https_proxy": {
                          "description": "The proxy to use when making HTTPS requests to the IdP.",
                          "type": "string"
                        },
                        "https_proxy_authorization": {
                          "description": "The `Proxy-Authorization` header value to be used with `https_proxy`.",
                          "type": "string"
                        },
                        "keep_alive": {
                          "default": true,
                          "description": "Whether to use keepalive connections to the IdP.",
                          "type": "boolean"
                        },
                        "no_proxy": {
                          "description": "A comma-separated list of hosts that should not be proxied.",
                          "type": "string"
                        },
                        "ssl_verify": {
                          "default": true,
                          "description": "Whether to verify the certificate presented by the IdP when using HTTPS.",
                          "type": "boolean"
                        },
                        "timeout": {
                          "default": 10000,
                          "description": "Network I/O timeout for requests to the IdP in milliseconds.",
                          "maximum": 2147483646,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                },
                "key_schema": {
                  "properties": {
                    "payload_encoding": {
                      "default": "avro_json",
                      "description": "How the client encodes union/nullable fields in the request body for Avro schemas. 'avro_json' (default) requires Avro-spec JSON with type-tagged unions (e.g. {\"int\": 1}, {\"null\": null}). 'simple_json' lets the gateway accept plain JSON and resolve union branches against the schema.",
                      "enum": [
                        "avro_json",
                        "simple_json"
                      ],
                      "type": "string"
                    },
                    "schema_version": {
                      "description": "The schema version to use for serialization/deserialization. Use 'latest' to always fetch the most recent version.",
                      "type": "string"
                    },
                    "subject_name": {
                      "description": "The name of the subject",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "ssl_verify": {
                  "default": true,
                  "description": "Set to false to disable SSL certificate verification when connecting to the schema registry.",
                  "type": "boolean"
                },
                "ttl": {
                  "description": "The TTL in seconds for the schema registry cache.",
                  "maximum": 3600,
                  "minimum": 0,
                  "type": "number"
                },
                "url": {
                  "description": "The URL of the schema registry.",
                  "type": "string"
                },
                "value_schema": {
                  "properties": {
                    "payload_encoding": {
                      "default": "avro_json",
                      "description": "How the client encodes union/nullable fields in the request body for Avro schemas. 'avro_json' (default) requires Avro-spec JSON with type-tagged unions (e.g. {\"int\": 1}, {\"null\": null}). 'simple_json' lets the gateway accept plain JSON and resolve union branches against the schema.",
                      "enum": [
                        "avro_json",
                        "simple_json"
                      ],
                      "type": "string"
                    },
                    "schema_version": {
                      "description": "The schema version to use for serialization/deserialization. Use 'latest' to always fetch the most recent version.",
                      "type": "string"
                    },
                    "subject_name": {
                      "description": "The name of the subject",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            }
          },
          "type": "object"
        },
        "security": {
          "properties": {
            "ssl_verify": {
              "default": true,
              "description": "Enables verification of the certificate presented by the server.",
              "type": "boolean"
            }
          },
          "type": "object"
        },
        "timeout": {
          "default": 10000,
          "description": "Socket timeout in milliseconds.",
          "type": "integer"
        },
        "topic": {
          "description": "The default Kafka topic to publish to if the query parameter defined in the `topics_query_arg` does not exist in the request",
          "type": "string"
        },
        "topics_query_arg": {
          "description": "The request query parameter name that contains the topics to publish to",
          "type": "string"
        }
      },
      "required": [
        "topic"
      ],
      "type": "object"
    },
    "consumer": {
      "additionalProperties": false,
      "description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "expressions": {
      "additionalProperties": true,
      "type": "object"
    },
    "protocols": {
      "default": [
        "grpc",
        "grpcs",
        "http",
        "https"
      ],
      "description": "A set of strings representing HTTP protocols.",
      "items": {
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "route": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "service": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "config"
  ]
}

번역할 문서 조각이 아직 전달되지 않았어요. 메시지에 Kong 문서의 마크다운 내용이 빠져 있는 것 같아요.

원문을 붙여넣어 주시면 규칙에 따라 번역해 드릴게요:

  • 산문만 해요체로 번역
  • 코드 블록 자리표([[CODE_n]])는 위치·번호 그대로 유지
  • 인라인 코드, 식별자, 옵션명, URL, 쇼트코드 등은 원문 그대로
  • 마크다운 구조(제목, 리스트, 표 등) 동일하게 유지

관련 리소스

더 알아보기 (Learn more)

  • cluster_api_key처럼 민감한 필드를 볼트에 저장된 시크릿으로 참조하는 방법을 설명해요 — referenceable
  • 암호화 표시가 붙은 필드가 어떻게 보호되는지 키링 문서에서 확인할 수 있어요 — encrypted
  • Kafka 토픽으로 로그를 전송하는 Kafka Log 플러그인의 전체 문서예요 — Kafka Log
  • Kafka 클러스터를 업스트림으로 구성하는 Kafka Upstream 플러그인 문서예요 — Kafka Upstream