Skip to content

Cherry pick #98827 to 25.8: Implement http header validation for DataLakeCatalog - #109437

Merged
robot-ch-test-poll3 merged 10 commits into
backport/25.8/98827from
cherrypick/25.8/98827
Jul 6, 2026
Merged

robot-ch-test-poll3 merged 10 commits into
backport/25.8/98827from
cherrypick/25.8/98827

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #98827

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

michael-anastasakis and others added 9 commits March 5, 2026 11:29
…der format

Restore the `else` branch in `registerDatabaseDataLake` that throws an
exception when `auth_header` is provided without a colon (i.e. not in
`name: value` format). This was removed in a previous commit but kssenii
asked to keep this validation.

Update `03913_datalake_restful_catalog_bad_format` to use
`Authorization: Wrong header` instead of `wrong.header` so the test
continues to exercise the "bad credentials" path (verifying
`system.tables` does not fail) without triggering the format-validation
exception.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Add `test_invalid_auth_header_format` to the three iceberg catalog
integration test suites (REST, Nessie, Lakekeeper). Each test verifies
that `CREATE DATABASE` with an `auth_header` that has no colon
(e.g. `wrong.header`) is rejected at creation time with
`Invalid auth header format`.

These tests fail on master (where no format validation exists) and pass
on this PR, satisfying the Bugfix validation CI requirement.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Implement http header validation for DataLakeCatalog
@robot-ch-test-poll robot-ch-test-poll added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Jul 5, 2026
Resolve conflicts for the backport of #98827 to 25.8:
- Keep only the new `HTTPHeaderFilter.h` include (25.8 has no `FailPoint.h` include here).
- `test_database_iceberg`: keep only the new `test_invalid_auth_header_format`, dropping master-only tests.
- `test_database_iceberg_nessie_catalog` does not exist in 25.8, keep it deleted.
- `03913_datalake_restful_catalog_bad_format`: keep only the forbidden-header check added by this PR. The first half of the master test relies on #96680, which is not in 25.8.

Co-Authored-By: Claude Fable 5 <[email protected]>
@robot-ch-test-poll3
robot-ch-test-poll3 merged commit 9657ff0 into backport/25.8/98827 Jul 6, 2026
1 check passed
@robot-ch-test-poll3
robot-ch-test-poll3 deleted the cherrypick/25.8/98827 branch July 6, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants