]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Add new Lua postAuth hook that is being run after authorization 67548/head
authorEmin Mert Sunacoglu <emin.sunacoglu@clyso.com>
Tue, 24 Feb 2026 18:13:39 +0000 (19:13 +0100)
committermertsunacoglu <emin.sunacoglu@clyso.com>
Thu, 9 Apr 2026 20:10:15 +0000 (22:10 +0200)
commitfba30067e93cbb538a30cb5c2dfde470c253f567
treedc09cd51271c81d72dd493d25de87579c55ab4e6
parentf30b831400c7da6bc018114d596889b49af9f3d0
rgw: Add new Lua postAuth hook that is being run after authorization

Currently, the prerequest Lua context runs after authentication is done, but before the authorization. Because of this, bucket specific data like bucket tags and tenant info are not loaded yet into the environment when the prerequest script runs.

PR implements a new Lua hook after user is authorized and bucket context is ready, but before we handle the actual request.

Fixes: https://tracker.ceph.com/issues/75195
Signed-off-by: Emin Sunacoglu <emin.sunacoglu@clyso.com>
doc/radosgw/lua-scripting.rst
src/rgw/radosgw-admin/radosgw-admin.cc
src/rgw/rgw_lua.cc
src/rgw/rgw_lua.h
src/rgw/rgw_process.cc
src/test/cli/radosgw-admin/help.t
src/test/rgw/lua/test_lua.py