Skip to content

RGW: Change prerequest hook to run after authorization process - #66567

Merged
ivancich merged 1 commit into
ceph:mainfrom
mertsunacoglu:wip-prerequest-auth
Feb 12, 2026
Merged

ivancich merged 1 commit into
ceph:mainfrom
mertsunacoglu:wip-prerequest-auth

Conversation

@mertsunacoglu

@mertsunacoglu mertsunacoglu commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/73979

The PR moves the 'prerequest' scripts to execute after authorization is completed, thus giving them to ability to reach critical fields such as User ID.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@mertsunacoglu
mertsunacoglu requested a review from a team as a code owner December 9, 2025 09:31
@github-actions github-actions Bot added the rgw label Dec 9, 2025
Comment thread src/rgw/rgw_process.cc Resolved
@mertsunacoglu
mertsunacoglu force-pushed the wip-prerequest-auth branch 2 times, most recently from d32d1ad to 3158415 Compare December 9, 2025 12:12
@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

@yuvalif any updates on this one?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ivancich ivancich added the wip-eric-testing-1 for ivancich testing label Feb 4, 2026
@yuvalif

yuvalif commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

@yuvalif any updates on this one?

waiting for teuthology results

@ivancich
ivancich merged commit d5decfb into ceph:main Feb 12, 2026
@ivancich

Copy link
Copy Markdown
Member

@mertsunacoglu No backports were listed in the tracker, so I marked it as resolved. If backports are needed please update the tracker apporpirately. cc: @yuvalif

@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log d5decfbd6fcd9669f971041410ad95baba8b4d23^..d5decfbd6fcd9669f971041410ad95baba8b4d23

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/21960081266

@yuvalif

yuvalif commented Feb 15, 2026

Copy link
Copy Markdown
Contributor

@mertsunacoglu No backports were listed in the tracker, so I marked it as resolved. If backports are needed please update the tracker apporpirately. cc: @yuvalif

it is a behavior change, so, unless someone wants that in tentacle, i dont see a reason to backport

@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

@yuvalif We have users running Squid who are requesting this feature. Is it possible to backport this in squid, should I update the tracker?

@yuvalif

yuvalif commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

@yuvalif We have users running Squid who are requesting this feature. Is it possible to backport this in squid, should I update the tracker?

@mertsunacoglu should be possible. i don't think there wer emany changes in the lua code base.
feel free to add tentacle, and squid to the backport list in the tracker - assuming you plan on doing the actual work :-)

@mertsunacoglu

Copy link
Copy Markdown
Contributor Author

Backport to squid should require a change in the function header only as far as I remember.

irq0 added a commit to irq0/ceph that referenced this pull request Feb 20, 2026
…ase/cobaltcore-storage-v19.2.3+fasttrack-1

PRs:

ceph#66065
ceph#67219
ceph#66567

* backports/19.2.3/emin-wip-postauth-lua-squid:
  backport: Add a variable to the execute function call in unittests
  Add latest changes to the Bucket Tags PR
  Limit bucket metadata access to decoded tags only. Fixes: https://tracker.ceph.com/issues/74756
  Adjust function signiture to the legacy code
  Change auth to execute before prerequest
  Update doc/radosgw/lua-scripting.rst
  Update doc/radosgw/lua-scripting.rst
  rgw: Update documentation for lua request blocking behavior Fixes: https://tracker.ceph.com/issues/73485
  Update doc/radosgw/lua-scripting.rst
  Update doc/radosgw/lua-scripting.rst
  rgw: Document lua request blocking behavior
  rgw:use lua_isinteger() for lua script return value
  rgw:Add Tests for Lua blocking requests in RGW
  rgw: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Feb 25, 2026
…ase/cobaltcore-storage-v19.2.3-fasttrack-2

PRs:

ceph#66065
ceph#67219
ceph#66567

* backports/19.2.3/emin-wip-postauth-lua-squid:
  backport: Add a variable to the execute function call in unittests
  Add latest changes to the Bucket Tags PR
  Limit bucket metadata access to decoded tags only. Fixes: https://tracker.ceph.com/issues/74756
  Adjust function signiture to the legacy code
  Change auth to execute before prerequest
  Update doc/radosgw/lua-scripting.rst
  Update doc/radosgw/lua-scripting.rst
  rgw: Update documentation for lua request blocking behavior Fixes: https://tracker.ceph.com/issues/73485
  Update doc/radosgw/lua-scripting.rst
  Update doc/radosgw/lua-scripting.rst
  rgw: Document lua request blocking behavior
  rgw:use lua_isinteger() for lua script return value
  rgw:Add Tests for Lua blocking requests in RGW
  rgw: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Mar 6, 2026
…tcore-storage-v19.2.3-fasttrack-4

PR ceph#66065, ceph#67219, ceph#66567, ceph#67548

* backports/19.2.3/emin-lua-writelock:
  rgw/lua: Add teuthology test for writelock
  backport: Add the missing driver attribute in the execute function
  rgw: Add new Lua postAuth hook that is being run after authorization
  rgw: Add Bucket tags attribute for Lua scripts
  rgw/lua: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Mar 6, 2026
…tcore-storage-v19.2.3-fasttrack-5

PR ceph#66065, ceph#67219, ceph#66567, ceph#67548

* backports/19.2.3/emin-lua-writelock:
  rgw/lua: Add teuthology test for writelock
  backport: Add the missing driver attribute in the execute function
  rgw: Add new Lua postAuth hook that is being run after authorization
  rgw: Add Bucket tags attribute for Lua scripts
  rgw/lua: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
…tcore-storage-v19.2.3-fasttrack-6

PR ceph#66065, ceph#67219, ceph#66567, ceph#67548

* backports/19.2.3/emin-lua-writelock:
  rgw/lua: Add teuthology test for writelock
  backport: Add the missing driver attribute in the execute function
  rgw: Add new Lua postAuth hook that is being run after authorization
  rgw: Add Bucket tags attribute for Lua scripts
  rgw/lua: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
…tcore-storage-v19.2.3-fasttrack-7

PR ceph#66065, ceph#67219, ceph#66567, ceph#67548

* backports/19.2.3/emin-lua-writelock:
  rgw/lua: Add teuthology test for writelock
  backport: Add the missing driver attribute in the execute function
  rgw: Add new Lua postAuth hook that is being run after authorization
  rgw: Add Bucket tags attribute for Lua scripts
  rgw/lua: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Mar 10, 2026
…tcore-storage-v19.2.3-fasttrack-8

PR ceph#66065, ceph#67219, ceph#66567, ceph#67548

* backports/19.2.3/emin-lua-writelock:
  rgw/lua: Add teuthology test for writelock
  backport: Add the missing driver attribute in the execute function
  rgw: Add new Lua postAuth hook that is being run after authorization
  rgw: Add Bucket tags attribute for Lua scripts
  rgw/lua: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Mar 11, 2026
…tcore-storage-v19.2.3-fasttrack-9

PR ceph#66065, ceph#67219, ceph#66567, ceph#67548

* backports/19.2.3/emin-lua-writelock:
  rgw/lua: Add teuthology test for writelock
  backport: Add the missing driver attribute in the execute function
  rgw: Add new Lua postAuth hook that is being run after authorization
  rgw: Add Bucket tags attribute for Lua scripts
  rgw/lua: Add Lua functionality for blocking requests
irq0 added a commit to irq0/ceph that referenced this pull request Jun 4, 2026
Retroactive <uuid>.md for the Lua write-lock backport (postAuth hook,
bucket tags, request blocking) already landed on this branch as merge
commit 14149f3.

Backport-Id: 019e92ed-d2cb-72c0-a34e-b5bf55eac620
Backport-Merge: 14149f3
Upstream-PRs: ceph#66065, ceph#67219, ceph#66567, ceph#67548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants