Repository navigation
Conversation
…ing requests Honor the AuthenticationHandler completion contract before dispatching HTTP requests, and preserve responses while authentication is pending. Co-Authored-By: Codex <noreply@openai.com> AI-Model: gpt-6 AI-Contributed/Feature: 8/8 AI-Contributed/UT: 197/197
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Honor the completion result of
AuthenticationHandler.authenticatebefore delegating HTTP requests. When a handler returns no user, preserve its response until authentication completes.Add filter coverage for incomplete Basic credentials and pending Negotiate responses, together with Master and Worker HTTP resource regressions. Keep successful authentication, explicitly configured anonymous providers and configured bypass paths working as before.
Why are the changes needed?
https://issues.apache.org/jira/browse/CELEBORN-2559
The handler contract allows an authentication mechanism to own the response while authentication is incomplete. The filter should wait for an authenticated user before dispatching the request and preserve the handler status and
WWW-Authenticatechallenge.Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
Requests with incomplete authentication retain the handler response rather than entering application processing. No configuration change is required.
How was this patch tested?
Validated with JDK 17 and Maven 3.9.16:
dev/reformatpassed all 16 configured invocations.build/mvn test -pl worker -am -Dtest=none \ -DwildcardSuites=org.apache.celeborn.server.common.http.authentication.AuthenticationFilterSuite,org.apache.celeborn.server.common.http.authentication.AuthenticationHandlerSuite,org.apache.celeborn.service.deploy.master.ApiMasterResourceAuthenticationSuite,org.apache.celeborn.service.deploy.worker.storage.ApiWorkerResourceAuthenticationSuite dev/reformat