Project

General

Profile

Actions

Bug #70570

open
CB CB

multisite: /admin/user?key API doesn't forward to master

Bug #70570: multisite: /admin/user?key API doesn't forward to master

Added by Casey Bodley over 1 year ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
multisite adminapi
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

the PUT and DELETE key operations don't get forwarded to the metadata master zone, so can lead to metadata inconsistencies between zones

RGWOp_Key_Create and RGWOp_Key_Remove need to call rgw_forward_request_to_master() before applying the operation

because RGWOp_Key_Create supports a generate-key param, it will need to decode the json response from the master zone and reuse the keys it generated. RGWOp_User_Create also supports generate-key so already has logic for this


Related issues 1 (0 open — 1 closed)

Has duplicate rgw - Bug #72124: rgw-multisite: allow creating and deleting user keys from secondary zoneDuplicateShilpa MJ

Actions

CB Updated by Casey Bodley over 1 year ago Actions #1

Casey Bodley wrote:

because RGWOp_Key_Create supports a generate-key param, it will need to decode the json response from the master zone and reuse the keys it generated. RGWOp_User_Create also supports generate-key so already has logic for this

i think this is trickier for RGWOp_Key_Create than it was for RGWOp_User_Create. the RGWOp_Key_Create response encodes all of the user's access keys, not just the one that was created. in the case of generate-key, i don't think we'd know which key was new

CB Updated by Casey Bodley over 1 year ago Actions #2

Casey Bodley wrote in #note-1:

the RGWOp_Key_Create response encodes all of the user's access keys, not just the one that was created. in the case of generate-key, i don't think we'd know which key was new

we might need to change the response to only include the newly-created key to resolve this ambiguity. we could either introduce that as a breaking change, or only change how we respond to requests forwarded as the multisite system user

JI Updated by J. Eric Ivancich over 1 year ago Actions #3

  • Assignee set to Casey Bodley

JI Updated by J. Eric Ivancich over 1 year ago Actions #4

  • Backport changed from reef squid to reef squid tentacle

CB Updated by Casey Bodley over 1 year ago Actions #5

  • Has duplicate Bug #72124: rgw-multisite: allow creating and deleting user keys from secondary zone added

KS Updated by Konstantin Shalygin 8 months ago Actions #6

  • Backport changed from reef squid tentacle to squid tentacle
Actions

Also available in: PDF Atom