@@ -50872,6 +50872,16 @@ components:
5087250872 description: Name of the environment variable or secret that holds the username (used when `auth_strategy` is `plain`).
5087350873 example: HTTP_AUTH_USERNAME
5087450874 type: string
50875+ valid_tokens:
50876+ description: |-
50877+ A list of tokens that are accepted for authenticating incoming HTTP requests. When set,
50878+ the source rejects any request whose token does not match an enabled entry in this list.
50879+ Cannot be combined with the `plain` auth strategy.
50880+ items:
50881+ $ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidToken"
50882+ maxItems: 1000
50883+ minItems: 1
50884+ type: array
5087550885 required:
5087650886 - id
5087750887 - type
@@ -50897,6 +50907,55 @@ components:
5089750907 type: string
5089850908 x-enum-varnames:
5089950909 - HTTP_SERVER
50910+ ObservabilityPipelineHttpServerSourceValidToken:
50911+ description: An accepted token used to authenticate incoming HTTP server requests.
50912+ properties:
50913+ enabled:
50914+ default: true
50915+ description: |-
50916+ Indicates whether this token is currently accepted. Disabled tokens are rejected without
50917+ being removed from the configuration.
50918+ example: true
50919+ type: boolean
50920+ field_to_add:
50921+ $ref: "#/components/schemas/ObservabilityPipelineSourceValidTokenFieldToAdd"
50922+ path_to_token:
50923+ $ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToToken"
50924+ token_key:
50925+ description: Name of the environment variable or secret that holds the expected token value.
50926+ example: HTTP_SERVER_TOKEN
50927+ pattern: "^[A-Za-z0-9_]+$"
50928+ type: string
50929+ required:
50930+ - token_key
50931+ type: object
50932+ ObservabilityPipelineHttpServerSourceValidTokenPathToToken:
50933+ description: |-
50934+ Specifies where the worker extracts the token from in the incoming HTTP request.
50935+ This can be either a built-in location (`path` or `address`) or an HTTP header object.
50936+ oneOf:
50937+ - $ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToTokenLocation"
50938+ - $ref: "#/components/schemas/ObservabilityPipelineHttpServerSourceValidTokenPathToTokenHeader"
50939+ ObservabilityPipelineHttpServerSourceValidTokenPathToTokenHeader:
50940+ description: Extract the token from a specific HTTP request header.
50941+ properties:
50942+ header:
50943+ description: The name of the HTTP header that carries the token.
50944+ example: X-Token
50945+ type: string
50946+ required:
50947+ - header
50948+ type: object
50949+ ObservabilityPipelineHttpServerSourceValidTokenPathToTokenLocation:
50950+ description: Built-in token location on the incoming HTTP request.
50951+ enum:
50952+ - path
50953+ - address
50954+ example: path
50955+ type: string
50956+ x-enum-varnames:
50957+ - PATH
50958+ - ADDRESS
5090050959 ObservabilityPipelineKafkaDestination:
5090150960 description: |-
5090250961 The `kafka` destination sends logs to Apache Kafka topics.
@@ -52920,6 +52979,27 @@ components:
5292052979 type: string
5292152980 x-enum-varnames:
5292252981 - SOCKET
52982+ ObservabilityPipelineSourceValidTokenFieldToAdd:
52983+ description: |-
52984+ An optional metadata field that is attached to every event authenticated by the
52985+ associated token. Both `key` and `value` must match `^[A-Za-z0-9_]+$`.
52986+ properties:
52987+ key:
52988+ description: The metadata field name to add to incoming events.
52989+ example: token_name
52990+ maxLength: 256
52991+ pattern: "^[A-Za-z0-9_]+$"
52992+ type: string
52993+ value:
52994+ description: The metadata field value to add to incoming events.
52995+ example: my_token
52996+ maxLength: 1024
52997+ pattern: "^[A-Za-z0-9_]+$"
52998+ type: string
52999+ required:
53000+ - key
53001+ - value
53002+ type: object
5292353003 ObservabilityPipelineSpec:
5292453004 description: Input schema representing an observability pipeline configuration. Used in create and validate requests.
5292553005 properties:
@@ -53116,6 +53196,15 @@ components:
5311653196 $ref: "#/components/schemas/ObservabilityPipelineTls"
5311753197 type:
5311853198 $ref: "#/components/schemas/ObservabilityPipelineSplunkHecSourceType"
53199+ valid_tokens:
53200+ description: |-
53201+ A list of tokens that are accepted for authenticating incoming HEC requests. When set, the source
53202+ rejects any request whose HEC token does not match an enabled entry in this list.
53203+ items:
53204+ $ref: "#/components/schemas/ObservabilityPipelineSplunkHecSourceValidToken"
53205+ maxItems: 1000
53206+ minItems: 1
53207+ type: array
5311953208 required:
5312053209 - id
5312153210 - type
@@ -53130,6 +53219,26 @@ components:
5313053219 type: string
5313153220 x-enum-varnames:
5313253221 - SPLUNK_HEC
53222+ ObservabilityPipelineSplunkHecSourceValidToken:
53223+ description: An accepted HEC token used to authenticate incoming Splunk HEC requests.
53224+ properties:
53225+ enabled:
53226+ default: true
53227+ description: |-
53228+ Indicates whether this token is currently accepted. Disabled tokens are rejected without
53229+ being removed from the configuration.
53230+ example: true
53231+ type: boolean
53232+ field_to_add:
53233+ $ref: "#/components/schemas/ObservabilityPipelineSourceValidTokenFieldToAdd"
53234+ token_key:
53235+ description: Name of the environment variable or secret that holds the expected HEC token value.
53236+ example: SPLUNK_HEC_TOKEN
53237+ pattern: "^[A-Za-z0-9_]+$"
53238+ type: string
53239+ required:
53240+ - token_key
53241+ type: object
5313353242 ObservabilityPipelineSplunkTcpSource:
5313453243 description: |-
5313553244 The `splunk_tcp` source receives logs from a Splunk Universal Forwarder over TCP.
0 commit comments