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

Solace 업스트림 정책 구성 레퍼런스

원문 보기 위키 갱신

Solace 업스트림 정책 구성 레퍼런스 (Solace Upstream Policy Configuration Reference)

이 문서는 Kong에서 Solace 이벤트 브로커를 업스트림으로 연결할 때 사용하는 정책의 구성 스키마를 항목별로 정리한 레퍼런스예요. 세션 설정을 중심으로 연결 타임아웃, 인증서 검증, 메시지 만료 계산, 타임스탬프와 시퀀스 번호 생성 같은 옵션들이 어떤 타입과 기본값을 가지는지 확인할 수 있어요. Message VPN 이름이나 SESSION_ 접두사가 필요한 추가 세션 속성처럼 Solace 고유의 설정 항목들도 함께 다루고 있어요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "session": {
          "type": "object",
          "properties": {
            "connect_timeout": {
              "type": "integer",
              "maximum": 100000,
              "minimum": 100,
              "description": "The timeout period (in milliseconds) for a connect operation to a given host (per host).",
              "default": 3000
            },
            "ssl_validate_certificate": {
              "type": "boolean",
              "description": "Indicates whether the API should validate server certificates with the trusted certificates.",
              "default": true
            },
            "calculate_message_expiry": {
              "type": "boolean",
              "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",
              "default": true
            },
            "generate_rcv_timestamps": {
              "type": "boolean",
              "description": "When enabled, a receive timestamp is recorded for each message.",
              "default": true
            },
            "generate_sender_id": {
              "type": "boolean",
              "description": "When enabled, a sender id is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "default": true
            },
            "generate_sequence_number": {
              "type": "boolean",
              "description": "When enabled, a sequence number is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "default": true
            },
            "vpn_name": {
              "type": "string",
              "maxLength": 32,
              "description": "The name of the Message VPN to attempt to join when connecting to an event broker."
            },
            "generate_send_timestamps": {
              "type": "boolean",
              "description": "When enabled, a send timestamp is automatically included (if not already present) in the Solace-defined fields for each message sent.",
              "default": true
            },
            "properties": {
              "type": "object",
              "additionalProperties": {
                "type": "string",
                "x-referenceable": true,
                "x-lua-required": true
              },
              "description": "Additional Solace session properties (each setting needs to have `SESSION_` prefix)."
            },
            "host": {
              "type": "string",
              "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).",
              "x-referenceable": true
            },
            "authentication": {
              "type": "object",
              "properties": {
                "access_token_header": {
                  "type": "string",
                  "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."
                },
                "id_token": {
                  "type": "string",
                  "description": "The OpenID Connect ID token used with `OAUTH2` authentication scheme when connecting to an event broker.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "id_token_header": {
                  "type": "string",
                  "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."
                },
                "scheme": {
                  "type": "string",
                  "enum": [
                    "BASIC",
                    "NONE",
                    "OAUTH2"
                  ],
                  "description": "The client authentication scheme used when connection to an event broker.",
                  "default": "BASIC"
                },
                "username": {
                  "type": "string",
                  "maxLength": 189,
                  "description": "The username used with `BASIC` authentication scheme when connecting to an event broker.",
                  "x-encrypted": true,
                  "x-referenceable": true
                },
                "password": {
                  "type": "string",
                  "maxLength": 128,
                  "description": "The password used with `BASIC` authentication scheme when connecting to an event broker.",
                  "x-referenceable": true,
                  "x-encrypted": true
                },
                "basic_auth_header": {
                  "type": "string",
                  "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."
                },
                "access_token": {
                  "type": "string",
                  "description": "The OAuth2 access token used with `OAUTH2` authentication scheme when connecting to an event broker.",
                  "x-referenceable": true,
                  "x-encrypted": true
                }
              },
              "description": "Session authentication related configuration."
            }
          },
          "required": [
            "host"
          ],
          "description": "Session related configuration."
        },
        "message": {
          "type": "object",
          "properties": {
            "content_encoding": {
              "type": "string",
              "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."
            },
            "functions": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "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."
            },
            "user_properties": {
              "type": "object",
              "properties": {
                "predefined_properties": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "string",
                    "x-lua-required": true
                  },
                  "description": "Predefined user properties to set on every message (key = property name, value = property value)."
                },
                "headers": {
                  "type": "object",
                  "properties": {
                    "mappings": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "x-lua-required": true
                      },
                      "description": "Header-to-user_property mapping (key = HTTP header name, value = target user property name)."
                    },
                    "include_headers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Headers to include as user properties even without explicit mapping."
                    },
                    "exclude_headers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "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."
                    }
                  },
                  "description": "Header settings for user properties (mapping, inclusion and exclusion)."
                }
              },
              "description": "User defined properties to be included in the message. Separate static properties from header mappings."
            },
            "ttl": {
              "type": "integer",
              "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.",
              "default": 0
            },
            "default_content": {
              "type": "string",
              "description": "When not using `forward_method`, `forward_uri`, `forward_headers`, `forward_body` or `forward_body_raw_only`, this sets the message content."
            },
            "dmq_eligible": {
              "type": "boolean",
              "description": "Sets the dead message queue (DMQ) eligible property on the message.",
              "default": false
            },
            "forward_body": {
              "type": "boolean",
              "description": "Include the request body and the body arguments in the message.",
              "default": false
            },
            "forward_body_raw_only": {
              "type": "boolean",
              "description": "Forward only the raw request body without wrapping it in a JSON payload or adding extra fields.",
              "default": false
            },
            "destinations": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "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": {
                    "type": "string",
                    "enum": [
                      "QUEUE",
                      "TOPIC"
                    ],
                    "description": "The type of the destination.",
                    "default": "QUEUE"
                  }
                },
                "required": [
                  "name"
                ]
              },
              "minLength": 1,
              "description": "The message destinations."
            },
            "delivery_mode": {
              "type": "string",
              "enum": [
                "DIRECT",
                "PERSISTENT"
              ],
              "description": "Sets the message delivery mode.",
              "default": "DIRECT"
            },
            "sender_id": {
              "type": "string",
              "description": "Allows the application to set the content of the sender identifier."
            },
            "priority": {
              "type": "integer",
              "maximum": 255,
              "minimum": 0,
              "description": "Sets the message priority.",
              "default": 4
            },
            "tracing": {
              "type": "boolean",
              "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.",
              "default": false
            },
            "tracing_sampled": {
              "type": "boolean",
              "description": "Forcibly turn on the tracing on all the messages for distributed tracing (tracing needs to be enabled as well).",
              "default": false
            },
            "forward_method": {
              "type": "boolean",
              "description": "Include the request method in the message.",
              "default": false
            },
            "content_type": {
              "type": "string",
              "description": "Sets the HTTP Content-Type applied to the Solace message payload. If unset, the request Content-Type header is used when available."
            },
            "ack_timeout": {
              "type": "integer",
              "maximum": 100000,
              "minimum": 1,
              "description": "When using a non-DIRECT guaranteed delivery mode, this property sets the message acknowledgement timeout in milliseconds (waiting time).",
              "default": 2000
            },
            "forward_uri": {
              "type": "boolean",
              "description": "Include the request URI and the URI arguments (as in, query arguments) in the message.",
              "default": false
            },
            "forward_headers": {
              "type": "boolean",
              "description": "Include the request headers in the message.",
              "default": false
            }
          },
          "required": [
            "destinations"
          ],
          "description": "The message related configuration."
        }
      },
      "required": [
        "message",
        "session"
      ]
    }
  }
}

더 알아보기 (Learn more)

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