Add canonicalizer #121
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 project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#121
Loading…
Reference in a new issue
No description provided.
Delete branch "alexvanin/frostfs-http-gw:fix/canonicalizing"
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?
Some headers might be passed in non-canonical way by proxy servers, such as 'Authorization' header.
Server does not normalize headers, so we can get custom object attributes. Therefore, app has to normalize
all non object attribute headers by itself.
65e66f80c4
to014ce5f393
014ce5f393
tod9cbd302b1
WIP: Add canonicalizerto Add canonicalizer@ -562,0 +568,4 @@
toAddKeys := make([][]byte, 0, 10)
toAddValues := make([][]byte, 0, 10)
prefix := []byte(utils.UserAttributeHeaderPrefix)
I suppose we also must exclude
system
attributessystemAttributePrefix = "__SYSTEM__"
// deprecated: use systemAttributePrefix
systemAttributePrefixNeoFS = "__NEOFS__"
Those attributes are object attributes. They are used during
X-Attribute-*
header processing such asX-Attribute-System-Expiration-Epoch
. It's all done here: https://git.frostfs.info/TrueCloudLab/frostfs-http-gw/src/branch/master/internal/handler/filter.go#L25-L32Therefore HTTP headers with system object attributes are also excluded.