mirror of
https://github.com/floci-io/floci.git
synced 2026-12-05 11:07:59 -05:00
No write here read any of them. An identity policy carrying a Principal was stored, where AWS answers 'Policy document should not specify a principal.'; a trust policy naming no principal was stored, leaving a role assumable by nobody with no signal, where AWS answers 'Missing required field Principal'; and a trust policy granting another service's actions was stored, where AWS answers 'AssumeRole policy may only specify STS AssumeRole actions.' All three are 400 MalformedPolicyDocument and all three are read before the document is stored. Neither rule about principals reads NotPrincipal as one, the IAM reference saying neither policy may carry that element at all, and the trust rule asks that a principal is named rather than that the element is present: a null or an empty Principal names nobody, which is what the evaluator makes of it too. The action rule stays narrower than AWS's may be, so that it cannot refuse a document AWS accepts: it is read on the namespace, case insensitively as AWS reads any action, and on Action alone, so every sts: spelling passes and a statement excluding actions grants the assume actions among the rest. Three existing fixtures used a trust policy naming no principal and now use the shared one that does.