Skip to content

Backport "HBASE-30264 Validate bulkToken path in cleanupBulkLoad (#8433)" to branch-2.5#8437

Merged
ndimiduk merged 1 commit into
apache:branch-2.5from
ndimiduk:30264-branch-2.5
Jun 29, 2026
Merged

Backport "HBASE-30264 Validate bulkToken path in cleanupBulkLoad (#8433)" to branch-2.5#8437
ndimiduk merged 1 commit into
apache:branch-2.5from
ndimiduk:30264-branch-2.5

Conversation

@ndimiduk

Copy link
Copy Markdown
Member

The cleanupBulkLoad RPC accepts a user-supplied bulkToken that is passed directly to fs.delete() without verifying that the path is within the expected staging directory. A misbehaving client or stale token could cause the RegionServer to delete paths outside the staging area.

Add path validation to ensure the bulkToken resolves to a direct child of baseStagingDir before performing the delete.

The cleanupBulkLoad RPC accepts a user-supplied bulkToken that is passed
directly to fs.delete() without verifying that the path is within the
expected staging directory. A misbehaving client or stale token could
cause the RegionServer to delete paths outside the staging area.

Add path validation to ensure the bulkToken resolves to a direct child
of baseStagingDir before performing the delete.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
@ndimiduk ndimiduk added the backport This PR is a back port of some issue or issues already committed to master label Jun 29, 2026
@ndimiduk ndimiduk merged commit 444ed8c into apache:branch-2.5 Jun 29, 2026
37 of 40 checks passed
@ndimiduk ndimiduk deleted the 30264-branch-2.5 branch June 29, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a back port of some issue or issues already committed to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant