[#422] Support separate container for CORS #428
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#428
Loading…
Reference in a new issue
No description provided.
Delete branch "mbiryukova/frostfs-s3-gw:feature/cors_container"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Marina Biryukova m.biryukova@yadro.com
[#422] Support separate container for CORSto WIP: [#422] Support separate container for CORSc2f14927a0
tob410c3e111
WIP: [#422] Support separate container for CORSto [#422] Support separate container for CORS@ -48,6 +49,7 @@ type (
ID uint64
ParentID uint64
ObjID oid.ID
CnrID cid.ID
The
treeNode
struct is used to store any node from tree (system one, versions, multipart etc) and its aim to be general. AddingCnrID
as field doesn't fit to this intention.We can introduce new struct for Cors node (or just use function like
getLock
orgetObjectTagging
)@ -175,0 +180,4 @@
cnrInfo := &data.BucketInfo{
CID: addr.Container(),
}
if obj, err = n.objectGetWithAuth(ctx, cnrInfo, addr.Object(), PrmAuth{PrivateKey: &n.gateKey.PrivateKey}); err != nil {
Can we use only one
object get
invocation? It's easier to follow control flow I believe.I mean write something like this (in other places (with delete) the same approach can be applied):
Please, update
DeleteBucketHandler
to remove CORs object (if it was in other container)b410c3e111
to5bc4abfed2
5bc4abfed2
to34600ffeea