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] Apply subscription policies to namespace and topic subscription operations by lhotari · Pull Request #26767 · apache/pulsar Conversation
Member
MotivationNamespace subscription policies (the subscription roles allowlist and the
ModificationsSubscription operations on namespaces, bundles and topics now apply the namespace subscription policies consistently for roles that are not super users or tenant admins. Super users and tenant admins keep the existing behaviour.
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
REST endpoints: the bundle level
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…cription operations
Namespace subscription policies (subscription roles and the Prefix
subscription auth mode) were not applied consistently to admin operations
that act on subscriptions.
- Namespace and bundle clearBacklog/{subscription} and
unsubscribe/{subscription} pass the subscription to the authorization
provider, and PulsarAuthorizationProvider applies the subscription
policies to them.
- Namespace and topic operations on a subscription wrap the request
authentication data in AuthenticationDataSubscription, so the
subscription reaches the provider for every authentication data type.
AuthorizationService has an allowNamespaceOperationAsync overload with
separate authentication data for the original principal of proxied
requests, as for topic operations.
- For roles that are not super users or tenant admins, namespace
clearBacklog/{subscription} resolves the name as a subscription only
(passed to bundles with an internal subscriptionOnly parameter), and
namespace clearBacklog and topic all_subscription/expireMessages act only
on the subscriptions that the caller may act on, leaving replicator and
shadow replicator cursors alone.
- Add NamespacesImpl#clearNamespaceBundleBacklogForSubscriptionAsync with
the subscriptionOnly parameter for internal use.
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.
ascentstream-bot
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…cription operations (apache#26767) (cherry picked from commit 8fdca04)
ascentstream-bot
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…cription operations (apache#26767) (cherry picked from commit 8fdca04)
Radiancebobo
pushed a commit
to Radiancebobo/pulsar
that referenced
this pull request
…cription operations (apache#26767)
This was referenced
1 of 4 tasks
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…cription operations (apache#26767) (cherry picked from commit 8fdca04)
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
…cription operations (apache#26767) (cherry picked from commit 8fdca04)
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. |