Bug #70570
openmultisite: /admin/user?key API doesn't forward to master
0%
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
CB Updated by Casey Bodley over 1 year ago
Casey Bodley wrote:
because
RGWOp_Key_Createsupports agenerate-keyparam, it will need to decode the json response from the master zone and reuse the keys it generated.RGWOp_User_Createalso supportsgenerate-keyso 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
Casey Bodley wrote in #note-1:
the
RGWOp_Key_Createresponse encodes all of the user's access keys, not just the one that was created. in the case ofgenerate-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
- Assignee set to Casey Bodley
JI Updated by J. Eric Ivancich over 1 year ago
- Backport changed from reef squid to reef squid tentacle
CB Updated by Casey Bodley over 1 year ago
- Has duplicate Bug #72124: rgw-multisite: allow creating and deleting user keys from secondary zone added
KS Updated by Konstantin Shalygin 8 months ago
- Backport changed from reef squid tentacle to squid tentacle