generated from TrueCloudLab/basic
[#4] Add IAM policy unmarshaler #5
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
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#5
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/policy-engine:feature/iam_policy_unmarshaler"
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?
close #4
Currently numeric condition type are not supported
WIP: [#XX] Add IAM policy unmarshalerto WIP: [#XX] Add IAM policy unmarshaler0933aa7ce6
to31a308ea61
WIP: [#XX] Add IAM policy unmarshalerto WIP: [#4] Add IAM policy unmarshalerWIP: [#4] Add IAM policy unmarshalerto [#4] Add IAM policy unmarshaler@ -0,0 +45,4 @@
DenyEffect Effect = "Deny"
)
func (s *Statements) UnmarshalJSON(data []byte) error {
Not a bug: what about using https://github.com/mailru/easyjson ?
We cannot use solely easyjson because we have to parse both
and
So we need custom
UnmarshalJSON
anyway.Error in tests when using easyjson:
Clear, thx!
@ -0,0 +7,4 @@
type (
// Policy grammar https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_grammar.html
// Currently 'NotPrincipal', 'NotAction' and 'NotResource' are not supported (so cannot be unmarshalled).
Do we have a task for this?
#11
@ -0,0 +87,4 @@
continue
}
list, ok := val.([]interface{})
Let's use
any
?Fix later