ape: fill request properties with user claim tags #1096
No reviewers
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1096
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-node:feat/ape_user_claim_tag"
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?
tree
: MakeverifyClient
fill ape request with user claim tagsobject
: Make ape middleware fill request with user claim tagscontainer
: Make ape middleware fill request with user claim tagsgo.mod
: Update policy-engine package versionfcc4ba057f
toa4604e1141
@ -600,0 +626,4 @@
}
return reqProps, nil
}
const tagSuffix = "tag-"
Let's make this function more general. I mean don't use just tags (but all claims). We should write something like
Alright
I've fixed. Thanks for the commment
It seems there will be a conflict with #1095 -- could you review it, so I can merge and you can rebase this PR?
a4604e1141
to8a35c4de3d
@ -600,0 +621,4 @@
}
subj, err := ac.frostFSIDClient.GetSubject(pk.GetScriptHash())
if err != nil {
if !strings.Contains(err.Error(), errSubjectNotFound.Error()) {
You define
errSubjectNotFound
as an error, but only use it insidestrings.Contains
Why not declare a string so that we can avoid the conversion?
Fixed:
subjectNotFoundErrorMessage
has been introducedPR has been rebased, the conflicts - resolved
8a35c4de3d
tobb0dbfb3a4
bb0dbfb3a4
to1387dd1f72
Sure. I'll rebase and resolve conflicts as soon as you merge your PR
1387dd1f72
to10ee865e98