mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
`SimulatePrincipalPolicy`'s `PolicyExclusionList` was read by nothing, so a caller excluding a policy was given a simulation that still counted it, which is the decision it had asked not to be given. The member is read now: each `PolicyIdentifier` drops a policy from the set this one simulation evaluates and from nothing else, the attachment and every listing left as they were. The reference states both answers an entry gets, and those are the answers here: "Syntactically invalid identifiers, such as malformed ARNs or wildcards in disallowed positions, cause the request to fail with an InvalidInput error. Syntactically valid identifiers that don't match any attached policy are ignored." The constraints ahead of the operation already hold each member of an entry to the shape the model declares, so an unknown `PolicyType` is the `ValidationError` it always was; what the vendored data does not carry is the union marker, so the rule that an entry names exactly one of the three is held where the entry is read. A `PolicyArn` is held to the one position the member admits a wildcard in, the resource name, so a wildcard in the resource type an ARN carries ahead of it is refused rather than matched: a `poli?y/reader` reads like the `policy/reader` it would reach. It is held to carrying the fields every ARN carries too, its partition, its service and its resource, a blank one being a malformed ARN rather than an identifier that matches nothing. The region and the account are not among those, an AWS managed policy carrying no region. `PolicyType` reads as the part a policy plays rather than the kind of document it is, which is what keeps `permission-boundary` in a value set beside `user-managed`: a boundary is itself a customer managed policy, so a type meaning the kind would match it twice. `scp` matches nothing, this simulation carrying no SCP ceiling, and `rcp` is published as ignored. An ARN names the policy itself, so it reaches that policy in whatever part it plays, the boundary included. The account-level grant an account password policy carries is attached to nothing and reached by nothing. The wording of the two refusals no source gives, and the reading of a wildcard in `AttachmentName`, which the member documents and its own declared pattern admits no character for, are recorded under Policy Simulation in docs/services/iam.md.