Skip to content

Conversation

danielbelchior
Copy link
Contributor

@danielbelchior danielbelchior commented Aug 14, 2025

Description

This PR addresses #26187 by adding a new property, http-event-listener.connect-http-headers.config-file, that allows defining custom HTTP headers in an external configuration file.

Key changes:

  • Introduced http-event-listener.connect-http-headers.config-file property.
  • Allows header names and values containing commas (,) or colons (:) that are not supported in the inline http-event-listener.connect-http-headers property.
  • Configuration file format: one key=value pair per line.
  • Added validation to ensure that only one of
    http-event-listener.connect-http-headers or
    http-event-listener.connect-http-headers.config-file is set,
    otherwise an exception is thrown at startup.
  • Updated documentation to reflect new property and usage.

This enhancement ensures correct handling of special characters in HTTP header values, which was not possible with the existing inline configuration format.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(X) Release notes are required, with the following suggested text:

## General
* Add http-event-listener.connect-http-headers.config-file to support special characters in header values. ({issue}`26187`)

Closes #26187

@cla-bot cla-bot bot added the cla-signed label Aug 14, 2025
@github-actions github-actions bot added the docs label Aug 14, 2025
@danielbelchior danielbelchior force-pushed the add-header-file-configuration-to-http-event-listener branch from 9ce36cb to d9ce568 Compare August 14, 2025 19:14
@danielbelchior danielbelchior requested a review from ebyhr August 17, 2025 10:46
@danielbelchior danielbelchior force-pushed the add-header-file-configuration-to-http-event-listener branch 4 times, most recently from 8db5537 to 592debd Compare August 17, 2025 21:01
@danielbelchior danielbelchior requested a review from ebyhr August 17, 2025 21:29
@danielbelchior danielbelchior force-pushed the add-header-file-configuration-to-http-event-listener branch 6 times, most recently from cce33d2 to 3f34f65 Compare August 18, 2025 09:47
@danielbelchior danielbelchior requested a review from ebyhr August 19, 2025 22:26
@github-actions github-actions bot added iceberg Iceberg connector blackhole Blackhole connector elasticsearch Elasticsearch connector labels Aug 20, 2025
@danielbelchior danielbelchior force-pushed the add-header-file-configuration-to-http-event-listener branch from 95c3660 to 592debd Compare August 20, 2025 12:07
Introduces the `http-event-listener.connect-http-headers.config-file`
property to allow defining custom HTTP headers in an external file
using `key=value` pairs. This supports header names and values
containing commas (`,`) or colons (`:`), which are not supported in
the inline `http-event-listener.connect-http-headers` property.

Only one of `http-event-listener.connect-http-headers` or
`http-event-listener.connect-http-headers.config-file` may be set.
An exception will be raised if both are configured.
@danielbelchior danielbelchior force-pushed the add-header-file-configuration-to-http-event-listener branch from 592debd to 561e52a Compare August 20, 2025 13:11
Copy link

This pull request has gone a while without any activity. Ask for help on #core-dev on Trino slack.

@github-actions github-actions bot added the stale label Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blackhole Blackhole connector cla-signed docs elasticsearch Elasticsearch connector iceberg Iceberg connector stale
Development

Successfully merging this pull request may close these issues.

HTTP Event Listener - http-event-listener.connect-http-headers is not escaping values correctly
2 participants