Solace 업스트림 플러그인 구성 참조
Solace 업스트림 플러그인 구성 참조 (Solace Upstream Plugin Configuration Reference)
이 문서는 Kong Gateway가 Solace 브로커로 메시지를 전송할 때 사용하는 Solace 업스트림 플러그인의 구성 옵션을 정리한 참조 자료예요. 승인 타임아웃, 콘텐츠 인코딩과 타입, 전송 모드(DIRECT/PERSISTENT), 큐·토픽 목적지 같은 메시지 관련 설정을 JSON 스키마 형태로 하나씩 설명해요. 각 필드의 기본값과 허용 범위가 함께 표시되어 있어서 플러그인을 설정하거나 검토할 때 바로 참고하기 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"message": {
"description": "The message related configuration.",
"properties": {
"ack_timeout": {
"default": 2000,
"description": "When using a non-DIRECT guaranteed delivery mode, this property sets the message acknowledgement timeout in milliseconds (waiting time).",
"maximum": 100000,
"minimum": 1,
"type": "integer"
},
"content_encoding": {
"description": "Sets the HTTP Content-Encoding applied to the Solace message payload (for example, gzip). If unset, the request Content-Encoding header is used when available.",
"type": "string"
},
"content_type": {
"description": "Sets the HTTP Content-Type applied to the Solace message payload. If unset, the request Content-Type header is used when available.",
"type": "string"
},
"default_content": {
"description": "When not using `forward_method`, `forward_uri`, `forward_headers`, `forward_body` or `forward_body_raw_only`, this sets the message content.",
"type": "string"
},
"delivery_mode": {
"default": "DIRECT",
"description": "Sets the message delivery mode.",
"enum": [
"DIRECT",
"PERSISTENT"
],
"type": "string"
},
"destinations": {
"description": "The message destinations.",
"items": {
"properties": {
"name": {
"description": "The name of the destination. You can use $(uri_captures['<capture-identifier>']) in this field (replace `<capture-identifier>` with a real value, for example `$uri_captures[’queue’]` when the matched route has a path `~/(?<queue>[a-z]+)`).",
"type": "string"
},
"type": {
"default": "QUEUE",
"description": "The type of the destination.",
"enum": [
"QUEUE",
"TOPIC"
],
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"minLength": 1,
"type": "array"
},
"dmq_eligible": {
"default": false,
"description": "Sets the dead message queue (DMQ) eligible property on the message.",
"type": "boolean"
},
"forward_body": {
"default": false,
"description": "Include the request body and the body arguments in the message.",
"type": "boolean"
},
"forward_body_raw_only": {
"default": false,
"description": "Forward only the raw request body without wrapping it in a JSON payload or adding extra fields.",
"type": "boolean"
},
"forward_headers": {
"default": false,
"description": "Include the request headers in the message.",
"type": "boolean"
},
"forward_method": {
"default": false,
"description": "Include the request method in the message.",
"type": "boolean"
},
"forward_uri": {
"default": false,
"description": "Include the request URI and the URI arguments (as in, query arguments) in the message.",
"type": "boolean"
},
"functions": {
"description": "The Lua functions that manipulates (or generates) the message being sent to Solace. The `message` variable can be used to access the current message content, and the function can return a new content.",
"items": {
"type": "string"
},
"type": "array"
},
"priority": {
"default": 4,
"description": "Sets the message priority.",
"maximum": 255,
"minimum": 0,
"type": "integer"
},
"sender_id": {
"description": "Allows the application to set the content of the sender identifier.",
"type": "string"
},
"tracing": {
"default": false,
"description": "Enable or disable the tracing propagation. This is primarily used for distributed tracing and message correlation, especially in debugging or tracking message flows across multiple systems.",
"type": "boolean"
},
"tracing_sampled": {
"default": false,
"description": "Forcibly turn on the tracing on all the messages for distributed tracing (tracing needs to be enabled as well).",
"type": "boolean"
},
"ttl": {
"default": 0,
"description": "Sets the time to live (TTL) in milliseconds for the message. Setting the time to live to zero disables the TTL for the message.",
"type": "integer"
},
"user_properties": {
"description": "User defined properties to be included in the message. Separate static properties from header mappings.",
"properties": {
"headers": {
"description": "Header settings for user properties (mapping, inclusion and exclusion).",
"properties": {
"exclude_headers": {
"description": "Headers that must not be forwarded into user properties. This is used to exclude sensitive headers such as authorization from being forwarded as user properties, or to avoid duplication when a header is mapped to a user property but you don't want the original header to be included as well.",
"items": {
"type": "string"
},
"type": "array"
},
"include_headers": {
"description": "Headers to include as user properties even without explicit mapping.",
"items": {
"type": "string"
},
"type": "array"
},
"mappings": {
"additionalProperties": {
"type": "string",
"x-lua-required": true
},
"description": "Header-to-user_property mapping (key = HTTP header name, value = target user property name).",
"type": "object"
}
},
"type": "object"
},
"predefined_properties": {
"additionalProperties": {
"type": "string",
"x-lua-required": true
},
"description": "Predefined user properties to set on every message (key = property name, value = property value).",
"type": "object"
}
},
"type": "object"
}
},
"required": [
"destinations"
],
"type": "object"
},
"session": {
"description": "Session related configuration.",
"properties": {
"authentication": {
"description": "Session authentication related configuration.",
"properties": {
"access_token": {
"description": "The OAuth2 access token used with `OAUTH2` authentication scheme when connecting to an event broker. \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
},
"access_token_header": {
"description": "Specifies the header that contains access token for the `OAUTH2` authentication scheme when connecting to an event broker. This header takes precedence over the `access_token` field.",
"type": "string"
},
"basic_auth_header": {
"description": "Specifies the header that contains Basic Authentication credentials for the `BASIC` authentication scheme when connecting to an event broker. This header takes precedence over the `username` and `password` fields.",
"type": "string"
},
"client_credentials": {
"description": "Client credentials used to automatically obtain and renew OAuth2 access tokens from an IdP for the `CLIENT_CREDENTIALS` authentication scheme. When set, Kong fetches tokens from `token_endpoint` using `client_id` and `client_secret`, caches them until expiry, and retries with a fresh token whenever Solace returns an unauthenticated response.",
"properties": {
"client_id": {
"description": "The OAuth2 client ID used with `CLIENT_CREDENTIALS` authentication scheme when connecting to an event broker. \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 OAuth2 client secret used with `CLIENT_CREDENTIALS` authentication scheme when connecting to an event broker. \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
},
"eagerly_expire": {
"default": 5,
"description": "Number of seconds before actual expiry when cached access tokens should be considered expired and proactively renewed. This helps prevent edge cases where tokens are rejected by Solace just as they expire, but setting this too high may lead to unnecessary token refreshes.",
"type": "integer"
},
"scopes": {
"description": "The OAuth2 scopes to request when retrieving access tokens for the `CLIENT_CREDENTIALS` authentication scheme.",
"items": {
"type": "string"
},
"type": "array"
},
"ssl_verify": {
"default": true,
"description": "Controls TLS certificate verification for HTTPS token endpoint requests.",
"type": "boolean"
},
"token_endpoint": {
"description": "The OAuth2 token endpoint URL used to retrieve access tokens for the `CLIENT_CREDENTIALS` authentication scheme when connecting to an event broker.",
"type": "string"
}
},
"required": [
"client_id",
"client_secret",
"token_endpoint"
],
"type": "object"
},
"id_token": {
"description": "The OpenID Connect ID token used with `OAUTH2` authentication scheme when connecting to an event broker. \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
},
"id_token_header": {
"description": "Specifies the header that contains id token for the `OAUTH2` authentication scheme when connecting to an event broker. This header takes precedence over the `id_token` field.",
"type": "string"
},
"password": {
"description": "The password used with `BASIC` authentication scheme when connecting to an event broker. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
"maxLength": 128,
"type": "string",
"x-encrypted": true,
"x-referenceable": true
},
"scheme": {
"default": "BASIC",
"description": "The client authentication scheme used when connection to an event broker.",
"enum": [
"BASIC",
"CLIENT_CREDENTIALS",
"NONE",
"OAUTH2"
],
"type": "string"
},
"username": {
"description": "The username used with `BASIC` authentication scheme when connecting to an event broker. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
"maxLength": 189,
"type": "string",
"x-encrypted": true,
"x-referenceable": true
}
},
"type": "object"
},
"calculate_message_expiry": {
"default": true,
"description": "If this property is true and time-to-live has a positive value in a message, the expiration time is calculated when the message is sent or received",
"type": "boolean"
},
"connect_timeout": {
"default": 3000,
"description": "The timeout period (in milliseconds) for a connect operation to a given host (per host).",
"maximum": 100000,
"minimum": 100,
"type": "integer"
},
"generate_rcv_timestamps": {
"default": true,
"description": "When enabled, a receive timestamp is recorded for each message.",
"type": "boolean"
},
"generate_send_timestamps": {
"default": true,
"description": "When enabled, a send timestamp is automatically included (if not already present) in the Solace-defined fields for each message sent.",
"type": "boolean"
},
"generate_sender_id": {
"default": true,
"description": "When enabled, a sender id is automatically included (if not already present) in the Solace-defined fields for each message sent.",
"type": "boolean"
},
"generate_sequence_number": {
"default": true,
"description": "When enabled, a sequence number is automatically included (if not already present) in the Solace-defined fields for each message sent.",
"type": "boolean"
},
"host": {
"description": "The IPv4 or IPv6 address or host name to connect to (see: https://docs.solace.com/API-Developer-Online-Ref-Documentation/c/index.html#host-entry). \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
"type": "string",
"x-referenceable": true
},
"properties": {
"additionalProperties": {
"description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
"type": "string",
"x-lua-required": true,
"x-referenceable": true
},
"description": "Additional Solace session properties (each setting needs to have `SESSION_` prefix). \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
"type": "object"
},
"ssl_validate_certificate": {
"default": true,
"description": "Indicates whether the API should validate server certificates with the trusted certificates.",
"type": "boolean"
},
"vpn_name": {
"description": "The name of the Message VPN to attempt to join when connecting to an event broker.",
"maxLength": 32,
"type": "string"
}
},
"required": [
"host"
],
"type": "object"
}
},
"required": [
"message",
"session"
],
"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"
]
}
더 알아보기 (Learn more)
- 구성 값에서 Vault에 저장된 시크릿을 참조하는 방법을 확인할 수 있어요 — referenceable
- 키링을 사용하면 민감한 구성 값을 암호화된 상태로 관리할 수 있어요 — encrypted