Add container's OwnerID in HEAD <bucket> response #79

Closed
opened 2023-04-05 08:09:04 +00:00 by realloc · 0 comments
Owner

Problem

When the one need to know who owns a bucket he now needs to do two requests with different protocols:

  1. HEAD the bucket to get CID (S3-gw)
  2. HEAD container to get OwnerID (frostfs-node via grpc)

It would be nice to get it all with one HTTP request.

Feature request

Add X-Owner-ID field in HEAD response to make it look like:

$ curl --head http://s3.local/helloworld
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 0
Server: FrostFS-S3-GW/v0.0.1
X-Amz-Bucket-Region: default
X-Amz-Request-Id: ed8115f2-472e-4d0f-a292-1f8ad63dd382
X-Container-Id: 3tK4K6hbQHrBAc2YmEU5W9prfjAx3EMcg1tfxb1pf4JF
X-Container-Name: helloworld
X-Owner-Id: NUc734PMJXiqa2J9jRtvskU3kCdyyuSN8Q
## Problem When the one need to know who owns a bucket he now needs to do two requests with different protocols: 1. HEAD the bucket to get CID (S3-gw) 2. HEAD container to get OwnerID (frostfs-node via grpc) It would be nice to get it all with one HTTP request. ## Feature request Add X-Owner-ID field in HEAD response to make it look like: ``` $ curl --head http://s3.local/helloworld HTTP/1.1 200 OK Accept-Ranges: bytes Content-Length: 0 Server: FrostFS-S3-GW/v0.0.1 X-Amz-Bucket-Region: default X-Amz-Request-Id: ed8115f2-472e-4d0f-a292-1f8ad63dd382 X-Container-Id: 3tK4K6hbQHrBAc2YmEU5W9prfjAx3EMcg1tfxb1pf4JF X-Container-Name: helloworld X-Owner-Id: NUc734PMJXiqa2J9jRtvskU3kCdyyuSN8Q ```
realloc added the
good first issue
label 2023-04-05 08:09:04 +00:00
alexvanin added this to the v0.27.0 milestone 2023-04-05 08:09:31 +00:00
ironbee was assigned by alexvanin 2023-04-07 13:54:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#79
No description provided.