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

Confluent 정책 구성 참조

원문 보기 위키 갱신

Confluent 정책 구성 참조 (Confluent Policy Configuration Reference)

이 문서는 Kong의 Confluent 정책에서 설정할 수 있는 구성 옵션을 JSON 스키마 형태로 정리한 참조 자료예요. 프로듀서 타임아웃이나 메모리 버퍼 한도 같은 기본 동작 설정부터 부트스트랩 브로커 목록, 허용 토픽 목록, 요청 전달 옵션, 스키마 레지스트리 인증 방식까지 각 필드의 타입과 기본값, 설명이 함께 담겨 있어요. Confluent 정책을 새로 구성하거나 기존 설정을 조정할 때 어떤 필드에 어떤 값을 넣어야 하는지 확인하는 용도로 활용하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "producer_request_timeout": {
          "type": "integer",
          "description": "Time to wait for a Produce response in milliseconds.",
          "default": 2000
        },
        "producer_async_buffering_limits_messages_in_memory": {
          "type": "integer",
          "description": "Maximum number of messages that can be buffered in memory in asynchronous mode.",
          "default": 50000
        },
        "bootstrap_servers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string",
                "description": "A string representing a host name, such as example.com."
              },
              "port": {
                "type": "integer",
                "maximum": 65535,
                "minimum": 0,
                "description": "An integer representing a port number between 0 and 65535, inclusive."
              }
            },
            "required": [
              "host",
              "port"
            ]
          },
          "description": "Set of bootstrap brokers in a `{host: host, port: port}` list format."
        },
        "allowed_topics": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "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`."
        },
        "forward_uri": {
          "type": "boolean",
          "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`.",
          "default": false
        },
        "schema_registry": {
          "type": "object",
          "properties": {
            "confluent": {
              "type": "object",
              "properties": {
                "ssl_verify": {
                  "type": "boolean",
                  "description": "Set to false to disable SSL certificate verification when connecting to the schema registry.",
                  "default": true
                },
                "authentication": {
                  "type": "object",
                  "properties": {
                    "mode": {
                      "type": "string",
                      "enum": [
                        "basic",
                        "none",
                        "oauth2"
                      ],
                      "description": "Authentication mode to use with the schema registry.",
                      "default": "none"
                    },
                    "basic": {
                      "type": "object",
                      "properties": {
                        "username": {
                          "type": "string",
                          "x-encrypted": true,
                          "x-referenceable": true
                        },
                        "password": {
                          "type": "string",
                          "x-referenceable": true,
                          "x-encrypted": true
                        }
                      },
                      "required": [
                        "password",
                        "username"
                      ]
                    },
                    "oauth2": {
                      "type": "object",
                      "properties": {
                        "scopes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "List of scopes to request from the IdP when obtaining a new token.",
                          "default": [
                            "openid"
                          ]
                        },
                        "audience": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "List of audiences passed to the IdP when obtaining a new token.",
                          "default": []
                        },
                        "token_headers": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string",
                            "x-referenceable": true
                          },
                          "description": "Extra headers to be passed in the token endpoint request."
                        },
                        "token_post_args": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string",
                            "x-referenceable": true
                          },
                          "description": "Extra post arguments to be passed in the token endpoint request."
                        },
                        "grant_type": {
                          "type": "string",
                          "enum": [
                            "client_credentials",
                            "password"
                          ],
                          "description": "The OAuth grant type to be used.",
                          "default": "client_credentials"
                        },
                        "client_id": {
                          "type": "string",
                          "description": "The client ID for the application registration in the IdP.",
                          "x-referenceable": true,
                          "x-encrypted": true
                        },
                        "username": {
                          "type": "string",
                          "description": "The username to use if `config.oauth.grant_type` is set to `password`.",
                          "x-referenceable": true,
                          "x-encrypted": true
                        },
                        "token_endpoint": {
                          "type": "string",
                          "description": "The token endpoint URI."
                        },
                        "client_secret": {
                          "type": "string",
                          "description": "The client secret for the application registration in the IdP.",
                          "x-referenceable": true,
                          "x-encrypted": true
                        },
                        "password": {
                          "type": "string",
                          "description": "The password to use if `config.oauth.grant_type` is set to `password`.",
                          "x-encrypted": true,
                          "x-referenceable": true
                        }
                      },
                      "required": [
                        "token_endpoint"
                      ]
                    },
                    "oauth2_client": {
                      "type": "object",
                      "properties": {
                        "auth_method": {
                          "type": "string",
                          "enum": [
                            "client_secret_basic",
                            "client_secret_jwt",
                            "client_secret_post",
                            "none"
                          ],
                          "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.",
                          "default": "client_secret_post"
                        },
                        "http_proxy_authorization": {
                          "type": "string",
                          "description": "The `Proxy-Authorization` header value to be used with `http_proxy`."
                        },
                        "https_proxy": {
                          "type": "string",
                          "description": "The proxy to use when making HTTPS requests to the IdP."
                        },
                        "timeout": {
                          "type": "integer",
                          "maximum": 2147483646,
                          "minimum": 0,
                          "description": "Network I/O timeout for requests to the IdP in milliseconds.",
                          "default": 10000
                        },
                        "client_secret_jwt_alg": {
                          "type": "string",
                          "enum": [
                            "HS256",
                            "HS512"
                          ],
                          "description": "The algorithm to use with JWT when using `client_secret_jwt` authentication.",
                          "default": "HS512"
                        },
                        "http_version": {
                          "type": "number",
                          "description": "The HTTP version used for requests made by this policy. Supported values: `1.1` for HTTP 1.1 and `1.0` for HTTP 1.0.",
                          "default": 1.1
                        },
                        "http_proxy": {
                          "type": "string",
                          "description": "The proxy to use when making HTTP requests to the IdP."
                        },
                        "https_proxy_authorization": {
                          "type": "string",
                          "description": "The `Proxy-Authorization` header value to be used with `https_proxy`."
                        },
                        "no_proxy": {
                          "type": "string",
                          "description": "A comma-separated list of hosts that should not be proxied."
                        },
                        "keep_alive": {
                          "type": "boolean",
                          "description": "Whether to use keepalive connections to the IdP.",
                          "default": true
                        },
                        "ssl_verify": {
                          "type": "boolean",
                          "description": "Whether to verify the certificate presented by the IdP when using HTTPS.",
                          "default": true
                        }
                      }
                    }
                  }
                },
                "value_schema": {
                  "type": "object",
                  "properties": {
                    "subject_name": {
                      "type": "string",
                      "description": "The name of the subject"
                    },
                    "schema_version": {
                      "type": "string",
                      "description": "The schema version to use for serialization/deserialization. Use 'latest' to always fetch the most recent version."
                    }
                  }
                },
                "key_schema": {
                  "type": "object",
                  "properties": {
                    "schema_version": {
                      "type": "string",
                      "description": "The schema version to use for serialization/deserialization. Use 'latest' to always fetch the most recent version."
                    },
                    "subject_name": {
                      "type": "string",
                      "description": "The name of the subject"
                    }
                  }
                },
                "url": {
                  "type": "string",
                  "description": "The URL of the schema registry."
                },
                "ttl": {
                  "type": "number",
                  "maximum": 3600,
                  "minimum": 0,
                  "description": "The TTL in seconds for the schema registry cache."
                }
              }
            }
          },
          "description": "The plugin-global schema registry configuration. This can be overwritten by the topic configuration."
        },
        "security": {
          "type": "object",
          "properties": {
            "ssl_verify": {
              "type": "boolean",
              "description": "Enables verification of the certificate presented by the server.",
              "default": true
            }
          }
        },
        "producer_request_limits_messages_per_request": {
          "type": "integer",
          "description": "Maximum number of messages to include into a single producer request.",
          "default": 200
        },
        "producer_request_limits_bytes_per_request": {
          "type": "integer",
          "description": "Maximum size of a Produce request in bytes.",
          "default": 1048576
        },
        "topics_query_arg": {
          "type": "string",
          "description": "The request query parameter name that contains the topics to publish to"
        },
        "topic": {
          "type": "string",
          "description": "The default Kafka topic to publish to if the query parameter defined in the `topics_query_arg` does not exist in the request"
        },
        "producer_request_retries_max_attempts": {
          "type": "integer",
          "description": "Maximum number of retry attempts per single Produce request.",
          "default": 10
        },
        "keepalive_enabled": {
          "type": "boolean",
          "default": false
        },
        "confluent_cloud_api_key": {
          "type": "string",
          "description": "Apikey for authentication with Confluent Cloud. This allows for management tasks such as creating topics, ACLs, etc.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "message_by_lua_functions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Lua functions that manipulates the message being sent to the Kafka topic."
        },
        "cluster_name": {
          "type": "string",
          "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 policy is configured without a `cluster_name` (that is, if the default autogenerated value is removed), these policies will use the same producer, and by extension, the same cluster. Logs will be sent to the leader of the cluster."
        },
        "producer_async_flush_timeout": {
          "type": "integer",
          "description": "Maximum time interval in milliseconds between buffer flushes in asynchronous mode.",
          "default": 1000
        },
        "confluent_cloud_api_secret": {
          "type": "string",
          "description": "The corresponding secret for the Confluent Cloud API key.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "forward_method": {
          "type": "boolean",
          "description": "Include the request method in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "default": false
        },
        "producer_request_acks": {
          "type": "integer",
          "enum": [
            -1,
            0,
            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).",
          "default": 1
        },
        "producer_request_retries_backoff_timeout": {
          "type": "integer",
          "description": "Backoff interval between retry attempts in milliseconds.",
          "default": 100
        },
        "key_query_arg": {
          "type": "string",
          "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."
        },
        "timeout": {
          "type": "integer",
          "description": "Socket timeout in milliseconds.",
          "default": 10000
        },
        "cluster_api_key": {
          "type": "string",
          "description": "Username/Apikey for SASL authentication.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "cluster_api_secret": {
          "type": "string",
          "description": "Password/ApiSecret for SASL authentication.",
          "x-referenceable": true,
          "x-encrypted": true
        },
        "forward_headers": {
          "type": "boolean",
          "description": "Include the request headers in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "default": false
        },
        "producer_async": {
          "type": "boolean",
          "description": "Flag to enable asynchronous mode.",
          "default": true
        },
        "keepalive": {
          "type": "integer",
          "description": "Keepalive timeout in milliseconds.",
          "default": 60000
        },
        "forward_body": {
          "type": "boolean",
          "description": "Include the request body in the message. At least one of these must be true: `forward_method`, `forward_uri`, `forward_headers`, `forward_body`.",
          "default": true
        }
      },
      "required": [
        "cluster_api_key",
        "cluster_api_secret",
        "topic"
      ]
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.