[#365] Include iam user tags in query
/ DCO (pull_request) Successful in 2m44s Details
/ Vulncheck (pull_request) Failing after 3m37s Details
/ Builds (1.20) (pull_request) Successful in 3m55s Details
/ Builds (1.21) (pull_request) Successful in 3m49s Details
/ Lint (pull_request) Successful in 4m52s Details
/ Tests (1.20) (pull_request) Successful in 3m59s Details
/ Tests (1.21) (pull_request) Successful in 3m34s Details

Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
Pavel Pogodaev 2024-04-12 11:59:05 +03:00
parent d8889fca56
commit 1b562df3fc
1 changed files with 6 additions and 1 deletions

View File

@ -381,7 +381,12 @@ func determineProperties(ctx context.Context, reqType ReqType, op, owner string,
s3.PropertyKeyOwner: owner,
common.PropertyKeyFrostFSIDGroupID: chain.FormCondSliceContainsValue(groups),
}
queries := GetReqInfo(ctx).URL.Query()
reqInfo := GetReqInfo(ctx)
queries := reqInfo.URL.Query()
for _, v := range reqInfo.GetTags() {
res[fmt.Sprintf(common.PropertyKeyFormatFrostFSIDUserClaim, "tag-"+v.Key)] = v.Val
}
if reqType == objectType {
if versionID := queries.Get(QueryVersionID); len(versionID) > 0 {