Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][ws] Implement missing http header data functions in AuthenticationDataSubscription #23638

Merged

Conversation

heesung-sn
Copy link
Contributor

@heesung-sn heesung-sn commented Nov 26, 2024

Motivation

I realized that http header data interface is missing in AuthenticationDataSubscription.

It appears that websocket consumer authorization fails because authorization providers cannot pull the authorization header from AuthenticationDataSubscription.

Modifications

added http data interface in AuthenticationDataSubscription

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 26, 2024
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good catch @heesung-sn

@heesung-sn heesung-sn changed the title [fix][ws] fix http data interface in AuthenticationDataSubscription [fix][ws] Implement missing http header data functions in AuthenticationDataSubscription Nov 26, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.36%. Comparing base (bbc6224) to head (df1b5bb).
Report is 747 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23638      +/-   ##
============================================
+ Coverage     73.57%   74.36%   +0.78%     
- Complexity    32624    34997    +2373     
============================================
  Files          1877     1944      +67     
  Lines        139502   147200    +7698     
  Branches      15299    16239     +940     
============================================
+ Hits         102638   109458    +6820     
- Misses        28908    29284     +376     
- Partials       7956     8458     +502     
Flag Coverage Δ
inttests 27.38% <0.00%> (+2.80%) ⬆️
systests 24.39% <0.00%> (+0.07%) ⬆️
unittests 73.75% <100.00%> (+0.90%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...authentication/AuthenticationDataSubscription.java 70.58% <100.00%> (+6.30%) ⬆️

... and 663 files with indirect coverage changes

@heesung-sn heesung-sn merged commit 81dfb43 into apache:master Nov 26, 2024
56 checks passed
lhotari pushed a commit that referenced this pull request Nov 27, 2024
lhotari pushed a commit that referenced this pull request Nov 27, 2024
heesung-sn added a commit that referenced this pull request Nov 27, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Nov 28, 2024
…ionDataSubscription (apache#23638)

(cherry picked from commit 81dfb43)
(cherry picked from commit e9c2866)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Nov 28, 2024
…ionDataSubscription (apache#23638)

(cherry picked from commit 81dfb43)
(cherry picked from commit e9c2866)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants