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][fn] Check produce permission on the input topic when triggering functions by lhotari · Pull Request #26777 · apache/pulsar Conversation
Member
MotivationThe function trigger REST endpoint checks that the caller has function permissions in the function's namespace. It then publishes the supplied value to the function's input topic using the worker's own client, without checking whether the caller may produce to that input topic. As a result, whether a trigger request can publish depends on the worker's permissions rather than the caller's, which is inconsistent with how topic access is authorized elsewhere. 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
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions… functions The function trigger endpoint checks the caller's function permissions in the function's namespace and then publishes the supplied value to the input topic with the worker's own client, without checking whether the caller may produce to that topic. When authorization is enabled, triggering a function now also requires the PRODUCE topic operation on the selected input topic (for proxied requests, for both the proxy role and the original principal) before anything is published. A denied request fails with 401 and a failed permission check returns 500. Super users and workers with authorization disabled behave as before. 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
… functions (apache#26777) (cherry picked from commit 1aa07de)
ascentstream-bot
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
… functions (apache#26777) (cherry picked from commit 1aa07de)
Radiancebobo
pushed a commit
to Radiancebobo/pulsar
that referenced
this pull request
4 of 5 tasks
nodece
pushed a commit
to ascentstream/pulsar
that referenced
this pull request
… functions (apache#26777) (cherry picked from commit 1aa07de)
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. |