Set group id to APE requests for tree, container and object services #1117
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
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-node#1117
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-node:feat/ape_fill_group_id"
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?
FormFrostfsIDRequestProperties
method.FormFrostfsIDRequestProperties
gets user claim tags and group id and sets them as ape request properties.2a8b048934
toa9a23a5741
a9a23a5741
to4da4327aea
Set group id to APE requests for tree, container and object servicesto WIP: Set group id to APE requests for tree, container and object servicesRework is required: frostfsid cache should be introduced
WIP: Set group id to APE requests for tree, container and object servicesto Set group id to APE requests for tree, container and object services@ -0,0 +28,4 @@
}
func (m *morphFrostfsIDCache) GetSubject(addr util.Uint160) (*client.Subject, error) {
result, found := m.subjCache.Get(addr)
Should we also check
m.subjExtCache
here? Or updatem.subjCache
inGetSubjectExtended
as wellI think you're right
For now
subjCache
is also refreshed@ -0,0 +22,4 @@
return reqProps, nil
}
for k, v := range subj.KV {
properyKey := fmt.Sprintf(commonschema.PropertyKeyFormatFrostFSIDUserClaim, k)
typo in
propertyKey
Fixed!
@ -119,0 +214,4 @@
return res, nil
}
func parseGroup(structArr []stackitem.Item) (*frostfsidclient.Group, error) {
@dkirillov do we have similar code in s3-gw?
No. We use client from frostfs-contract repo that parses it for us
func (c Client) GetSubjectExtended(addr util.Uint160) (*SubjectExtended, error) {
ea225d4346
toc11c936112
rpcclient/
packages #93