GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [fix][broker] Check the original principal of proxied HTTP requests with its own authentication data by lhotari · Pull Request #26748 · apache/pulsar Conversation
Member
MotivationFor requests that come through a proxy, the broker authorizes both the proxy role and the original principal. On the binary protocol, The tenant admin check for proxied requests ( Modifications
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:If the box was checked, please highlight the changes
Public API:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…ith its own authentication data For proxied HTTP requests, the broker checked the original principal with the request authentication data, which is authenticated as the proxy. Providers that resolve roles from the authentication data, such as MultiRolesTokenAuthorizationProvider, then evaluated the original principal with the roles of the proxy token. - AuthorizationService: check the original principal of proxied requests with AuthenticationDataForwarded, keeping the subscription, for super user, tenant, namespace, namespace and topic policy, topic, broker, cluster, and function, source and sink checks. Add isSuperUserOrTenantAdmin, which uses the provider's own admin checks and also recognizes a tenant admin role when the request carries no token. - AuthenticationDataForwarded: add ofProxiedRequest and getProxiedRequestData. - MultiRolesTokenAuthorizationProvider: for the original principal of a proxied request, use the roles of a token in the request only when it authenticates as the original principal. - PulsarWebResource: the super user check uses the original principal's own authentication data, and for proxied requests needing tenant admin access both the proxy role and the original principal must each be a super user or a tenant admin. Assisted-by: Claude Code
lhotari
requested review from
Technoboy-,
dao-jun,
david-streamlio,
merlimat and
nodece
merlimat
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
2 of 3 tasks
ascentstream-bot
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…ith its own authentication data (apache#26748) (cherry picked from commit f0c9094)
ascentstream-bot
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…ith its own authentication data (apache#26748) (cherry picked from commit f0c9094)
Radiancebobo
pushed a commit
to Radiancebobo/pulsar
that referenced
this pull request
…ith its own authentication data (apache#26748)
2 of 3 tasks
4 of 5 tasks
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…ith its own authentication data (apache#26748) (cherry picked from commit f0c9094)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedProjectsDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |