// Warn about unsupported fields that will be ignored
// These fields invert the logic and are critical for policy semantics
// Check for unsupported fields that would fundamentally change policy semantics
// These fields invert the logic and ignoring them could create security holes
iflen(src.NotAction)>0{
glog.Warningf("statement %q: NotAction is not supported and will be ignored (this may make the policy more permissive than intended)",src.Sid)
returnpolicy_engine.PolicyStatement{},fmt.Errorf("statement %q: NotAction is not supported (would invert action logic, creating potential security risk)",src.Sid)
}
iflen(src.NotResource)>0{
glog.Warningf("statement %q: NotResource is not supported and will be ignored (this may make the policy more permissive than intended)",src.Sid)
returnpolicy_engine.PolicyStatement{},fmt.Errorf("statement %q: NotResource is not supported (would invert resource logic, creating potential security risk)",src.Sid)
}
ifsrc.NotPrincipal!=nil{
glog.Warningf("statement %q: NotPrincipal is not supported and will be ignored (this may make the policy more permissive than intended)",src.Sid)
returnpolicy_engine.PolicyStatement{},fmt.Errorf("statement %q: NotPrincipal is not supported (would invert principal logic, creating potential security risk)",src.Sid)