generated from TrueCloudLab/basic
[#80] iam: Skip unsupported conditions in native chains #80
No reviewers
Labels
No labels
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/policy-engine#80
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/policy-engine:bugfix/skip_aws_condition_in_native_converters"
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?
Skip conditions with
keys
Signed-off-by: Denis Kirillov d.kirillov@yadro.com
WIP: [#XX] iam: Skip unsupported conditions in native chainsto WIP: [#80] iam: Skip unsupported conditions in native chainsa5f3d51dcc
to64e06f5b7c
WIP: [#80] iam: Skip unsupported conditions in native chainsto [#80] iam: Skip unsupported conditions in native chainsLooks brilliant, see small question and comment suggestion.
@ -238,0 +243,4 @@
res.Conditions = append(res.Conditions, gr.Conditions[i])
case strings.HasPrefix(gr.Conditions[i].Key, condKeyAWSRequestTagPrefix) ||
strings.HasPrefix(gr.Conditions[i].Key, condKeyAWSResourceTagPrefix):
continue
Small comment about the reason we skip these conditions will be nice, e.g.
@ -181,1 +181,4 @@
case gr.Conditions[i].Key == condKeyAWSMFAPresent:
gr.Conditions[i].Key = s3.PropertyKeyAccessBoxAttrMFA
case strings.HasPrefix(gr.Conditions[i].Key, condKeyAWSResourceTagPrefix):
We don't check
condKeyAWSRequestTagPrefix
unlike native converter because by default it goes to request condition?Yes
bf60335380
toac965e8d17