Repository navigation
rgw/lua: Add new Lua postAuth hook that is being run after authorization - #67548
Conversation
|
Can one of the admins verify this patch? |
14 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
@yuvalif Could you take a look at this, please? |
d72855f to
ba48a33
Compare
ba48a33 to
d72855f
Compare
…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
…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
…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
…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
…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
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
bb56acd to
4c02720
Compare
|
jenkins test make check arm64 |
|
I have rebased the branch and resolved the merge conflicts which were on the docs, sorry for the delay, I missed that it needed the rebase. @yuvalif could you please re-add the needs-qa label? |
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 <[email protected]>
4c02720 to
fba3006
Compare
|
jenkins test api |
|
Pr testing completed and approved by @ivancich, More details in : https://tracker.ceph.com/issues/76032. |
|
No further testing needed from my side. Thank you! I don't think I have the required permissions to merge this myself, so please go ahead when ready. |
|
jenkins test make check arm64 |
|
jenkins test api |
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
Backport-Id: 019eb1e8-4991-7231-abf9-77cb82dcb746 Backport-PR: #6 Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
Backport-Id: 01a0d3b1-e48a-7f08-ab0d-0a549f628691 Backport-PR: #17 Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
Backport-Id: 01a11b0e-da4d-7890-bfeb-43841f3aab2d Backport-PR: #24 Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
Backport-Id: 01a0d3b1-e48a-7f08-ab0d-0a549f628691 Backport-PR: #17 Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
Backport-Id: 01a14402-60b5-7b0e-9e40-46b110a790de Backport-PR: #32 Upstream-PRs: ceph#67219, ceph#67548, ceph#66065
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
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.