EKS was built by hand: ResourceArnBuilder walked an EKS path, looked
each resource up through EksService, and checked a tagging route on the
caller's cluster named after the ARN's last segment; the request
resources table held no EKS operation, and nothing gave a policy
condition an EKS resource's tags. eks moves from HAND_BUILT to
NAMESPACES, so the table gives each operation the cluster its path
names, the node group, add-on or Fargate profile EksStoredResourceArns
finds by its cluster and name, the ARN a tagging route carries, and
parts of an ARN the request does not give open. CreateCluster, for which
the Service Reference lists no resource type, is checked on the cluster
its body names from a MEASURED entry quoting the EKS user guide's
example policy for creating a cluster. ResourceArnBuilder's EKS section
and its EksService dependency go. EksStoredResourceArns answers the
stored tags of a cluster, node group, Fargate profile, add-on, Pod
Identity association or access entry; EKS's tag changes take one lock
and give a cluster, node group or Fargate profile a new map, whose tags
field is now volatile, and a cluster is tagged only when its ARN is the
whole ARN the request names. Tag changes and tag reads find a cluster,
node group or Fargate profile through one lookup, and an ARN with a part
left open is not looked up. Read from its model, EKS tags only on
/tags/{resourceArn} with the ARN encoded, as the SDKs send it, so the
tagging tests that sent it unencoded now encode it. Only EKS's
operations change in the table.
STS was built by hand: ResourceArnBuilder checked AssumeRole on the role
its RoleArn named and every other operation on *, IamEnforcementFilter
sent STS requests there by action, and the request resources table held
no STS operation. sts moves from HAND_BUILT to NAMESPACES, so the table
gives each operation what the Service Reference and botocore give it:
AssumeRole the role its RoleArn names, as before, GetFederationToken the
federated user its Name names and AssumeRoot the root user, where the
hand builder checked both on *, and the operations that act on no
resource type * as before. StsStoredResourceArns answers that a role IAM
holds in the account its ARN names is assumed there, as the handler
finds it, so a cross-account AssumeRole is checked on that role alone
and not also on the caller's role of that name. ResourceArnBuilder's STS
section and the filter's STS case go. Only STS's operations change in
the table.
A role's trust policy now reaches IAM enforcement through a
ResourcePolicyProvider, the path every other resource-based policy
takes, instead of a branch on sts:AssumeRole in the enforcement filter.
RoleTrustPolicyProvider answers an STS action on a role ARN with the
role's stored trust policy, each statement that names no Resource given
the role's ARN, and with the account in the role's ARN as its owner.
IAM actions on the role, such as iam:GetRole and iam:PassRole, get
nothing from it.
evaluateResourcePolicyFor already returns ALLOW_DIRECT_IAM_USER for an
Allow naming the caller's user ARN, so a same-account grant to a user
is unchanged, and AssumeRolePolicyEvaluator.grantsToIamUser and its
request-key helper are removed. Within the role's account, an Allow
naming a role session's role, or "*", now grants the call too, as any
same-account resource-based policy does. Across accounts the filter
needs the trust policy's Allow beside the caller's identity policy, so
it refuses an IAM user or a role session the trust policy does not
allow before STS does, with its own AccessDenied message;
AssumeRoleTrustConditionsIntegrationTest checks that message for those
callers.
The STS guide's sentence that the caller's identity policy must allow
sts:AssumeRole now names the same-account exception.
With IAM enforcement on, the caller's identity-based policy, permissions boundary, session
policy and SCPs were evaluated for sts:AssumeRole without the request's sts:RoleSessionName
and sts:ExternalId, which the role's trust policy already sees, so a condition on either never
matched. The Service Authorization Reference lists both among the condition keys of
AssumeRole. STS now joins the generated request condition key table, which reads them from the
AssumeRole form; an AssumeRole without ExternalId names no sts:ExternalId. AssumeRoleWithSAML
carries no session name member, so it is listed as not reading it from the request.
sts:SourceIdentity, sts:TransitiveTagKeys and the session tag keys are not read: Floci does not
model source identity or session tags, as the STS page already says.
Closes#8921
Aurora DSQL was built by hand: ResourceArnBuilder read a cluster or
stream from its path, or a tagging route's ARN, IamEnforcementFilter
sent DSQL requests there without their operation, the request resources
table held no DSQL operation, and nothing gave a policy condition a
cluster's tags. dsql moves from HAND_BUILT to NAMESPACES, so the table
gives each operation the cluster or stream its path names, or the ARN
its modeled /tags/{resourceArn} carries, from botocore's REST model;
ListClusters, for which the Service Reference lists no resource type, is
checked on cluster/* from a MEASURED entry citing the AccessDenied
message AWS returned in #6328. ResourceArnBuilder's DSQL branch, with
the path and tagged-ARN helpers only it still used, and the filter's
DSQL case go, and the shared tags controller now serves DSQL's
tagging on its modeled route only, refusing the bare /tags. Only DSQL's
operations change in the table. DsqlStoredResourceArns answers a
cluster's stored tags; TagResource and UntagResource give the cluster a
new map under its lock, and its tags field is volatile.
Pipes was built by hand: ResourceArnBuilder read a pipe's name from its
path or a tagging route's ARN, IamEnforcementFilter sent Pipes requests
there without their operation, the request resources table held no Pipes
operation, and nothing gave a policy condition a pipe's tags. pipes
moves from HAND_BUILT to NAMESPACES, so the table gives each operation
the pipe its path's Name names, or the ARN a tagging route carries, from
botocore's REST model, and ResourceArnBuilder's Pipes branch and the
filter's Pipes case go. Only Pipes' operations change in the table.
PipesStoredResourceArns answers a pipe's stored tags; TagResource and
UntagResource give the pipe a new map one call at a time, and its tags
field is volatile.
Kinesis was built by hand: ResourceArnBuilder read a request's
StreamARN, StreamName or ResourceARN into one ARN and checked everything
else on stream/*, the request resources table held no Kinesis operation,
and nothing gave a policy condition a stream's tags. kinesis moves from
HAND_BUILT to NAMESPACES, so the table gives each operation the
resources botocore's members name as the Service Reference types them:
the stream by StreamARN or StreamName, a consumer by ConsumerARN, a
tagged resource by ResourceARN, and the KMS key StartStreamEncryption
and StopStreamEncryption name. Its ResourceArnBuilder branch goes. Only
Kinesis's operations change in the table. KinesisStoredResourceArns
answers a stream's or a consumer's stored tags; the tag calls give the
resource a new map under their lock, and the tags fields are volatile.
SNS was built by hand: ResourceArnBuilder read a request's TopicArn and
checked everything else on the account's open topic ARN, the request
resources table held no SNS operation, and nothing gave a policy
condition a topic's tags. sns moves from HAND_BUILT to NAMESPACES, so
the table gives each operation the topics botocore's members name
(TopicArn, ResourceArn, TargetArn, and CreateTopic's Name), and its
ResourceArnBuilder branch goes. Only SNS's operations change in the
table. SnsStoredResourceArns answers a topic's stored tags; TagResource
and UntagResource give the topic a new map one call at a time, and its
tags field is volatile.
SQS was built by hand: ResourceArnBuilder read a request's QueueUrl or
QueueName into a queue ARN, the request resources table held no SQS
operation, and nothing gave a policy condition a queue's tags. botocore
documents every QueueUrl as "The URL of the Amazon SQS queue ...", which
the generator's documentation rule did not read: it took only a name, an
id or an identifier as what a member names, and the service's own name
stood between "the" and the type's word. It now reads a URL as one more
such kind, and a member's lead drops its model's own service name as
botocore's metadata spells it before the word it qualifies, and a
hyphenated word before the type's word qualifies it ("The URL of a
dead-letter queue"), so QueueUrl names the queue; being neither the
queue's name nor its id, SQS finds it (find). Only SQS's operations
change in the table. sqs moves from HAND_BUILT to NAMESPACES and its
ResourceArnBuilder branch goes. SqsStoredResourceArns finds the queue a
URL reaches as the handlers do, in the account the URL names, and
answers a queue's stored tags; TagQueue and UntagQueue give the queue a
new map one call at a time, and its tags field is volatile.
The generated request resources give Elastic Load Balancing's load
balancer, target group, listener and rule types, and the Classic Load
Balancer's, the aws:ResourceTag/ and elasticloadbalancing:ResourceTag/
keys, but no service answered the elasticloadbalancing namespace's
stored tags, so a condition on their tags saw none.
ElbStoredResourceArns now answers it for both versions: a version 2 ARN
reads the tags version 2 keeps under it, in the request's account, in
place; a Classic Load Balancer's ARN, the one Floci gives it, reads the
load balancer of its name in its Region. Both versions' AddTags and
RemoveTags changed the tag map in place with no lock; they now give the
resource a new map one call at a time, and the Classic Load Balancer's
tags field is volatile.
The generated request resources give Cloud Map's namespace and service
types the aws:ResourceTag/ key, but no service answered the
servicediscovery namespace's stored tags, so a condition on their tags
saw none. CloudMapService now answers it: storedTags reads the namespace
or the service by the id its ARN ends in, in the request's account, in
place, the id the handlers find it by in every Region, so a request sent
to another Region is checked with the tags of the resource it acts on; a
tag without a value reads as an empty one. TagResource and UntagResource
changed the tag map in place with no lock; they now give the resource a
new map one call at a time, and the tags fields are volatile.
FLOCI_SERVICES_IAM_SEED_DEPLOYER_ACCESS_KEY_ID (floci.services.iam.seed-deployer-access-key-id) chooses the seeded deployer's access key ID. The default stays floci, so setups signing with floci / floci keep working; any other value must be 16 to 128 word characters, as IAM requires of an AccessKeyId, or startup fails naming the setting. With such an ID the deployer's key can be deactivated and deleted, and then the floci-deployer user. Under persistent storage, seeding deletes the deployer's key seeded under an earlier ID, the one signing with the public floci secret, and keeps keys made with CreateAccessKey. The EKS token webhook refuses the seeded credential by that public secret rather than by its access key ID.
Closes#8624
The one refusal of the twelve that is recorded: UpdateRole changing a
service-linked role's MaxSessionDuration answers '<roleName> is an AWS
service linked role, max session duration cannot be changed.', where the
clause names the change refused rather than the service the role is linked
to. This package answered its own sentence there.
The other eleven keep it, and the IAM page says why: AWS words the clause
after the change, that clause cannot be inferred for eleven other changes,
and AWS may not refuse all of them this way at all.
The generated request resources give GuardDuty's detector and
malwareprotectionplan types the aws:ResourceTag/ key, but no service
answered the guardduty namespace's stored tags, so a condition on a
detector's or a Malware Protection plan's tags saw none.
GuardDutyService now answers it: storedTags reads the detector or plan
stored under the Region the ARN names and its id, in the request's
account, where the tag handlers read, in place. A plan is matched on the
ARN it records; a detector, which records none, on the ARN its Region,
the account of its service role and its id give. Tag calls already run
one at a time and give the resource a new map; the tags fields are now
volatile.
An oversized session was minted outright and PackedPolicySize was
published as a flat zero on every session, where AWS holds a session
token to one limit of 4096 bytes, refuses a token that will not fit with
PackedPolicyTooLarge 400 naming the size and the limit, and publishes
that member as the percentage of the limit the token consumes, the same
value as SessionTokenUtilization.
Both are answered now on the four operations that carry state into the
token they mint, the refusal read before anything is minted. The measure
is this emulator's own: the token it will mint, which
MinimumSessionTokenSize can ask to be longer, plus the state the request
carries into it in UTF-8 bytes. AWS assembles and compresses the real
thing, whose size follows the input in neither direction, so the numbers
differ; the IAM page records the one size recorded here, 26092 bytes for
about 19000 of input, so a later recording can calibrate the reading.
The generated request resources give Control Tower's LandingZone and
EnabledControl types the aws:ResourceTag/ key, but no service answered
the controltower namespace's stored tags, so a condition on a landing
zone's or an enabled control's tags saw none. A new
ControlTowerStoredResourceArns answers it for the namespace, which two
services hold: a landing zone's tags are read in place under the Region
its ARN names, an enabled control's found by the ARN it records among
the Region's controls, as the tag handlers find it, both in the
request's account and matched on the whole ARN. Tag calls already give
the resource a new map; the tags fields are now volatile.
The generated request resources give Security Hub's hub and
configuration-policy types the aws:ResourceTag/ key, but no service
answered the securityhub namespace's stored tags, so a condition on a
hub's or a configuration policy's tags saw none. SecurityHubService now
answers it: storedTags reads the account's state for the Region the ARN
names, in the request's account, where the tag handlers read, in place,
and matches the ARN hubArn or policyArn gives; a hub reads its tags only
while Security Hub is enabled there. A policy's tags change in place
under the service's lock, so the lookup takes that lock too.
The generated request resources give Cost Explorer's anomalymonitor and
anomalysubscription types the aws:ResourceTag/ key, but no service
answered the ce namespace's stored tags, so a condition on a monitor's
or a subscription's tags saw none. CostAnomalyService now answers it:
storedTags reads the monitor or subscription stored under its whole ARN,
in the request's account, where the handlers read, in place. Every write
already puts a new record under the service's lock, so nothing to lock.
The generated request resources give EMR's session type the
aws:ResourceTag/ and elasticmapreduce:ResourceTag/ keys, but
EmrService.storedTags answered clusters, Studios and notebook executions
and nothing for a session's ARN, so a condition on a session's tags saw
none. It now reads the session stored under the id the ARN ends in, in
the account the ARN names, in place, matched on the whole ARN, giving
the tags it started with.
An instance profile holds one role and both halves of that were wrong.
Adding a second answered prose where AWS names the quota that fired,
'Cannot exceed quota for InstanceSessionsPerInstanceProfile: 1', which is
the form this package already writes for nine other quotas. Removing a
role the profile never held removed nothing and answered 200 where AWS
answers 404 NoSuchEntity naming the role and the profile.
The tolerance the remove path was written for is kept and pinned: a role
deleted while the profile still lists it stays removable, which the
profile's own list decides. Whether the pairing is there and the removal
of it are one decision, taken on the monitor the attach path already
held, so a concurrent attach cannot land between them.
Both CloudFormation callers remove roles they read from the profile's
list, and a caller outside the stack can detach one in between, so each
tolerates a pairing that is already gone rather than leaving a stack
delete or a reconcile part way through. A profile that has itself gone is
a different case and still propagates, so the delete ends where it always
did.
The generated request resources give EMR on EKS's virtualCluster,
jobRun, managedEndpoint, jobTemplate and securityConfiguration types the
aws:ResourceTag/ key, but no service answered the emr-containers
namespace's stored tags, so a condition on their tags saw none.
EmrContainersService now answers it: storedTags reads the resource
stored under its ARN in the store its kind names, in the request's
account, where the handlers read, in place, and matches the ARN it
records. Every write already stores a new copy, so no lock change.
The member's pattern admits anything word-shaped, so a value like
amazon-s3 satisfied everything the model declares and was answered 200
with an empty policy list, telling a caller the identity reaches nothing
rather than that the question was wrong.
Both operations that take a namespace hold it to the vendored catalog now,
through AwsServiceNamespaces.isPublished so nothing keeps a second list,
and each answers the sentence recorded for it: the list operation names
the rejected values inside AWS's own brackets, and the entity reader
carries AWS's own misspelling of namepace.
ServiceNamespaces is vendored for that to hold. The generator held the
whole member back because the operation answered an empty list with a
sentence of its own, and the cost was that no value in the list was read
at all: one breaking the published pattern reached the catalog check and
was answered InvalidInput where AWS answers ValidationError. The member
is read now, each value held to serviceNamespaceType and the list to its
bounds of 1 to 200, which also retires two answers that were this
package's own: an absent list is the required member the model declares,
and a list over 200 is the model's bound rather than a check beside it.
A namespace the job itself reports stays readable on
GetServiceLastAccessedDetailsWithEntities whether the catalog publishes it
or not, so the job is read first. The catalog is vendored, and a policy
may grant a service published after it: the report keeps the namespace
that policy names, so refusing it there would be this package disagreeing
with itself. Nothing else is exempt, and the list operation, which takes
namespaces rather than reporting them, holds every value to the catalog.
The generated request resources give EMR Serverless's application,
jobRun and session types the aws:ResourceTag/ key, but no service
answered the emr-serverless namespace's stored tags, so a condition on
their tags saw none. EmrServerlessStoredResourceArns now answers it for
the three services that hold them: storedTags reads the application, job
run or session by its id, in the request's account, where the tag
handlers read, in place, and matches it on its application and on the
whole ARN; a deleted application's resources name nothing. The tags
fields are now volatile.
Every MFA refusal here was this package's own sentence. IAM answers
EnableMFADevice and ResyncMFADevice with 'Authentication code for device
is not valid.' and a duplicate virtual device with 'MFA device already
exists.', both recorded and both wholly fixed text.
STS answers two sentences rather than one, by which half of the claim
failed: a serial no device of the caller's answers to, or a code that
device did not produce. Both are 403 AccessDenied, so the sentence is the
only thing that tells a caller which half to look at, and the whitespace
inside them is AWS's own. RequestMfaClaim carries the reason now, so the
seam both session operations share can word them apart.
The generated request resources give Global Accelerator's accelerator,
listener and endpointgroup types the aws:ResourceTag/ key, but no
service answered the globalaccelerator namespace's stored tags, so a
condition on their tags saw none. GlobalAcceleratorService now answers
it: it finds the resource under the ARN itself, in the request's
account, in place, as the tag handlers do, and reads the tags stored
under that ARN. TagResource and UntagResource now run one at a time, so
two tag calls never lose one's tags.
IAM answers two sentences for a managed policy ARN it cannot resolve and
they are not interchangeable: the ARN names nothing, or it names nothing
the call could attach. One sentence served every operation here, and the
three detach paths added a clause naming the user, group or role that AWS
never emits.
PolicyNotFound sites the two per operation, from the recordings: GetPolicy,
TagPolicy and the detach paths answer the plain sentence, while the attach
family, ListEntitiesForPolicy and the version operations carry the
attachability clause, with GetPolicyVersion naming the version inside it.
The operations no recording covers read with their own family, documented
on the IAM page.
The generated request resources give DataSync's agent, location and task
types the aws:ResourceTag/ key, but no service answered the datasync
namespace's stored tags, so a condition on their tags saw none.
DataSyncService now answers it: storedTags reads the resource stored
under the ARN itself, in the request's account, in place, as the tag
handlers find it. TagResource and UntagResource changed the tag map in
place with no lock; they now give the resource a new map one call at a
time, and the tags fields are volatile.
The generated request resources give CodePipeline's pipeline, webhook
and actiontype types the aws:ResourceTag/ key, but no service answered
the codepipeline namespace's stored tags, so a condition on their tags
saw none. CodePipelineService now answers it, in the request's account
and in place: a pipeline under its name and a webhook under its name,
each matched on the ARN it recorded, and a custom action type under the
key its ARN gives, as the tag handlers find it. A stage or an action ARN
reads nothing. Tag writes already replace the map under the resource's
lock; the tags fields are now volatile.
The generated request resources give AWS FIS's experiment-template,
experiment and action types the aws:ResourceTag/ key, but no service
answered the fis namespace's stored tags, so a condition on their tags
saw none. FisService now answers it: storedTags reads the template,
experiment or action tags stored under the Region the ARN names and its
id, in the request's account, where the tag handlers read, in place; a
template or an experiment is matched on the whole ARN it records, an
action on the ARN built for it. Tag calls already run one at a time and
store a new record.
The generated request resources give Budgets' budget and budgetAction
types the aws:ResourceTag/ key, but no service answered the budgets
namespace's stored tags, so a condition on a budget's or an action's
tags saw none. BudgetsService now answers it: a budget records no ARN,
so storedTags takes the ARN only when it is the one the budget's account
and name give in the request's partition, an action's adding its id,
then reads the record under the key the handlers read, in the request's
account, in place. Tag calls already run one at a time and give the
record a new tag list; the tag fields are now volatile.
The generated request resources give CloudTrail's trail type the
aws:ResourceTag/ key, but no service answered the cloudtrail namespace's
stored tags, so a condition on a trail's tags saw none.
CloudTrailService now answers it: storedTags reads the trail stored
under its home Region, which its ARN names, and its name, in the
request's account, where the tag handlers read, in place, and matched on
the whole ARN. A tag with no value, which AddTags allows, reads as the
empty string. A trail is stored whole and its tags never change in
place, so no lock change.
A PolicyArn that parses as no ARN cleared the declared length and reached
the lookup, so eight operations answered 404 NoSuchEntity where AWS answers
400 ValidationError. IamArnShapes reads the member after the generated
constraints and answers the two sentences the recordings carry: attaching
names the value, everything else reports nothing it could parse, the value
slot rendering empty. A PolicySourceArn of * is refused on the entity ahead
of the member's declared length, which is the order AWS answered it in.
The operations with no recording of their own follow the parse sentence,
documented on the IAM page beside the older recording it supersedes.
The generated request resources give Timestream for InfluxDB's
db-instance, db-cluster, db-parameter-group and db-backup types the
aws:ResourceTag/ key, but no service answered the timestream-influxdb
namespace's stored tags, so a condition on such a resource's tags saw
none. TimestreamInfluxDbService now answers it: storedTags reads the
resource the ARN's type and id name, under the Region the ARN names, in
the request's account, where the handlers read, in place, and matched
on the whole ARN. Tag calls already run one at a time and give the
resource a new map; the tags fields are now volatile.
The generated request resources give S3 Vectors' VectorBucket and Index
types the aws:ResourceTag/ key, but no service answered the s3vectors
namespace's stored tags, so a condition on a vector bucket's or an
index's tags saw none. S3VectorsService now answers it: storedTags reads
the bucket stored under the Region the ARN names and its name, in the
request's account, where the handlers read, in place, and matches the
bucket, or the index an index ARN names, on the whole ARN; an index ARN
reads the index's own tags. Tags are only ever replaced by a new map,
under the bucket's lock, and the tags fields are now volatile.
The generated request resources give Managed Service for Apache Flink's
application type the aws:ResourceTag/ key, but no service answered the
kinesisanalytics namespace's stored tags, so a condition on an
application's tags saw none. KinesisAnalyticsV2Service now answers it:
storedTags reads the application stored under the Region the ARN names
and its name, and in the default Region under the name alone, in the
request's account, where the handlers read, in place, and matched on the
whole ARN; a read that misses both keys while a legacy record moves
looks under the Regional key again. TagResource took no lock and
UntagResource changed the map in place; both now give the application a
new map one call at a time, and the tags field is volatile.
The generated request resources give Access Analyzer's Analyzer type the
aws:ResourceTag/ key, but no service answered the access-analyzer
namespace's stored tags, so a condition on an analyzer's tags saw none.
AccessAnalyzerService now answers it: storedTags reads the analyzer
stored under the Region the ARN names and its name, in the request's
account, where the handlers read, in place, and matched on the whole
ARN. An analyzer's tags are set when it is created and never change.
AWS limits the credentials GetSessionToken returns twice over, and Floci held
them to neither (STS API Reference, GetSessionToken, "Permissions"): "You cannot
call any IAM API operations unless MFA authentication information is included in
the request", and "You cannot call any AWS STS API except AssumeRole or
GetCallerIdentity". A session minted without a device reached every IAM
operation and the whole of STS with whatever its user's policies allowed.
Under enforcement such a session is now refused every IAM operation unless an
MFA device minted it, and every STS operation but AssumeRole and
GetCallerIdentity whether or not one did, carrying the sentence GetSessionToken
and GetFederationToken already answer a session caller with. The IAM half names
what the credentials do not hold. AWS publishes no sentence for either refusal,
so both are Floci's own wording, and the STS page records that along with the
difference between the reference's two bullets and the user guide's compressed
one, which this follows the reference on.
A federated session keeps the limits it already carried, an assumed-role session
carries none of these, and the sessions Floci mints for a presigned URL, for a
delegation and for its own signing all name a role or a presigned action, so none
of them is one of these.
Every request context now carries aws:CurrentTime and aws:EpochTime, the time of the request, including S3's own bucket-policy check and the context of a call a service makes. Every session Floci issues records when it was issued, the STS sessions and the EC2, ECS and Lambda role sessions among them, and a request signed with it carries that as aws:TokenIssueTime, which long-term access keys leave out, as the IAM User Guide describes. A role policy that denies sessions issued before a time, the guide's way of revoking them, now takes effect.
Closes#8130
The generated request resources give Signer's signing-profile type the
aws:ResourceTag/ key, but no service answered the signer namespace's
stored tags, so a condition on a signing profile's tags saw none.
SignerService now answers it: storedTags reads the profile stored under
the Region the ARN names and its name, in the request's account, where
the tag handlers read, in place, and matched on the whole ARN. Tag
writes already gave the profile a new map but took no lock, so two
could lose one's tags; every write of a profile's tags now runs one at
a time, and the tags field is volatile.
The generated request resources give Cognito identity pools'
identitypool type the aws:ResourceTag/ key, but no service answered the
cognito-identity namespace's stored tags, so a condition on an identity
pool's tags saw none. CognitoIdentityService now answers it: storedTags
reads the pool stored under the Region the ARN names and its id, in the
request's account, where the tag handlers read, in place, and matched on
the whole ARN. TagResource and UntagResource changed the pool's map in
place with no lock; they now give it a new map one call at a time, and
the tags field is volatile. UpdateIdentityPool, which sets the tags
too, replaces the pool under the same lock.
AWS's simulator fills in an organization context of its own beside the
principal keys, aws:PrincipalOrgID, aws:PrincipalOrgMasterAccountId and
aws:PrincipalOrgPaths, and says why that matters for exactly these policies:
"because these keys are populated for you, SCPs and other policies that use
principal or organization conditions are evaluated correctly". None of the
three reached a simulation here, so a service control policy handed to one and
keyed on the organization it guards matched nothing, where AWS matches it.
The keys are answered by the service that holds the organization, through a
narrow port Organizations implements beside the two it already does, and are
written onto the request context by the writer that already fills a principal's
keys on every path. An account in no organization carries none of them, which
is the availability both published keys declare, "included in the request
context only if the principal is a member of an organization", and an absent
key matching nothing is what refuses a statement written on one. A hierarchy
that cannot be walked up is no path rather than a failed call, the way an
organization that cannot be resolved already answers no SCP levels.
A real request carried none of the three either, so the same policy matched
nothing on the call a simulation stands for. A caller now comes back from the
credential lookup in the organization its own account belongs to, and the
account-root principal the filter stands in for is put in its account's
organization as well, so every context the filter fills carries the keys, the
one per resource a request names among them, and an identity policy, a resource
policy and a trust policy read them from the same place.
The path stops at the account's parent. An entity path is built "using the IDs
of the organization, root, and all OUs in the path down to and including the
OU" and ends with the account's own id, while the key's own published condition
compares o-a1b2c3d4e5/r-ab12/ou-ab12-11111111/ou-ab12-22222222/ with
StringEquals and "returns true for principals in accounts that are attached
directly to the ou-ab12-22222222 OU", which a value carrying the account id
could never equal. An account the organization holds at its root, the
management account among them, carries o-.../r-.../.
aws:PrincipalAccount was populated for a user source alone, so a role named as
a policy source carried neither its own account nor its organization. Both
describe the account the ARN names rather than the credential it stands for,
and both are answered for either source now. The session-shaped keys stay
user-only, there being no session behind a role named as a source.
Both simulators answered one result per action and resource, each naming the
resource it was given. The result's reference publishes the opposite: "the
simulator now returns a single EvaluationResult per action, regardless of how
many resource ARNs are provided", its top-level fields carrying "the aggregate
decision across all requested resources" with "the most restrictive decision
across all resources" at the top, and each resource answering for itself under
ResourceSpecificResults, which is where it sends a client that read them off
the top-level result before. A page is keyed by action now rather than by pair,
and a simulation whose resource is the wildcard, "either explicitly, or when
the ResourceArns parameter blank", carries no per-resource section at all.
EvalResourceName names no resource either: it carries "the ARN template for the
simulated resource type ... or * if no ARN format is defined for the action.
This is not a specific customer-provided resource ARN". The templates come from
the two generated tables built from AWS's Service Reference, which publishes
the resource types each action acts on and each type's ARN formats. An action
whose published types carry more than one format answers *, the value the field
gives an action with no format at all, and so does an action of a namespace no
table reads: which of several templates AWS names is published in no
machine-readable source, s3:GetObject acting on an object and on an access
point object with the field's own example naming the object's. The IAM page
records that difference.
Beyond its decision, a result carried nothing. For a same-account simulation,
the one kind this emulator models, AWS reports four more members, and a client
that reads any of them saw an empty element: the statements that decided the
scenario, the context keys the policies wanted and the call did not supply, and
what the organization levels and the permissions boundary said about it.
MatchedStatements is "a list of the statements in the input policies that
determine the result for this scenario", and each entry names the policy it came
from and the place it sits in that policy's text. The identifiers are the
published ones: a supplied document is PolicyInputList.N under the position it
arrived under, as AWS's own example reports it, a policy embedded in an entity
is its own name with that entity's type, and a managed policy is its own name
with whether AWS owns it. A grant the account applies without attaching anything
is named by neither, no policy naming it. An allow reports every statement that
allowed, an explicit deny reports the one that denied, "the deny statement is
the only entry included in the result", and an implicit deny reports none.
The positions follow AWS's own response to the character. Its example supplies a
document whose statement braces sit in column 15 of line 3 and column 3 of line
7, and reports line 3 column 16 through line 7 column 4, so each position is the
character just past a brace. That is where a streaming parse stands after
reading the opening brace and after reading past the statement, and a case pins
that document against those four numbers.
What AWS leaves out is left out. The member "doesn't include statements from
service control policies (SCPs)" and "only statements from identity-based and
resource-based policies appear here", so a deny that came from a level, from a
session policy or from the boundary reports no statement, and the boundary
reports its own effect under PermissionsBoundaryDecisionDetail instead, which is
what the same-account example shows for one that allowed the action.
MissingContextValues names the keys "required by the included input policies but
that were not provided by one of the input parameters". A key is wanted when a
statement the evaluation reaches for the action names it: the variables its
resources are written with, which a value has to resolve before a resource can
be compared at all, and, for a statement whose resources match, the keys its
conditions compare. A statement the action does not match is reached by nothing
and wants nothing, which is what gives each resource's list its own content. The
same exclusion holds, a key "referenced only by an SCP" not being returned; a
key supplied with no values at all counts as supplied, an empty set being a
value rather than an absence; and a variable under a document version that gives
${...} no meaning names no key.
OrganizationsDecisionDetail and PermissionsBoundaryDecisionDetail report whether
each of those two allowed the action, for a simulation that was handed levels or
carries a boundary. Each top-level flag is the most restrictive of the
resources' answers, as every other top-level field is, and the boundary's is
reported for each resource as well.
A key an operator answers for without a value is not one the policy requires,
and is not named among the missing: an ...IfExists operator publishes "if the
key is not present, evaluate the condition element as true", a Null asking for
absence is satisfied by the absence itself, and the two the evaluation already
reads that way follow, a ForAllValues quantifier holding over no values and a
negated operator holding against a key that matches nothing. A Null asking for
presence does require the key, and names it. The top-level list carries one key
however two statements spell it, a context key not being case sensitive, which
is how the evaluation that answered them read it too.
Whichever element a statement writes its resources in is read for variables,
Resource or NotResource: the comparison takes its patterns from either and
resolves them either way, so a value supplied for one of them can change the
answer, which is what the member is for. An excluding pattern whose variable
has no value excludes nothing and one carrying a value excludes what it names,
which the enforcement cases pin, so the key it carries is wanted.
A caller a site builds for itself carries the organization as one resolved from
a credential does, so a policy written on the three keys reads the same context
wherever it is evaluated: the trust caller a state machine's execution role is
checked as, the account-root principal three sites fall back to, the role a
Redshift copy acts as, and the principals a trust policy is asked about on an
account's behalf, which the trust evaluator reads through the same narrow port.
The lookup that answers them is on the authorization path, so it reads as
little as it can. An emulator holding no organization at all answers from the
store's own emptiness, an account that is in one is found once and carries its
own parent into the path rather than being looked up again, and the two
resolvers that answer an ARN alone no longer ask: nothing there fills a request
context, so no key is owed.
The template is read whatever case an action is written in, policy action names
being case-insensitive. Outside IAM's own actions the table is keyed by the
operation a request is dispatched as, so an action whose name is not its
operation's answers * as well: lambda:InvokeFunction is the action of the
Invoke operation, and what joins the two names is published in no
machine-readable source either. The IAM page records that beside the other.
The decision path is unchanged. The walk that answered a decision now answers a
report, the decision-only face reading the same walk without collecting what it
does not need, so the paths that only ask whether an action is allowed pay for
nothing more. A cross-account simulation is still not modelled: no resource
policy is evaluated, so ResourcePolicy, CallerArn and a populated
EvalDecisionDetails remain out, and the IAM page says so.
The IAM page also carried a difference this emulator no longer has. The
simulator's limitation on service control policies with global conditions is
gone from the guide, which says now that "the policy simulator evaluates SCPs,
including condition keys and resource scoping in deny statements" and evaluates
them "with service-aware logic, including global condition keys", which is what
the level walk already did. The page quotes the current sentences instead.
The generated request resources give OpenSearch's domain type the
aws:ResourceTag/ key, but no service answered the es namespace's stored
tags, so a condition on a domain's tags saw none. OpenSearchService now
answers it: storedTags reads the domain in the request's account, where
the tag handlers read, in place under the key the ARN gives or the name
a domain was stored under before its key named the Region, and matched
on the whole ARN. AddTags and RemoveTags changed the domain's map in
place with no lock; they now give it a new map one call at a time, and
the tags field is volatile.
The generated request resources give Cognito user pools'
userpool type the aws:ResourceTag/ key, but no service answered the
cognito-idp namespace's stored tags, so a condition on a user pool's
tags saw none. CognitoService now answers it: storedTags reads the pool
stored under its id in the request's account, where the handlers read,
in place, and matches the whole ARN, or the id for a pool stored before
pools recorded their ARN, as DescribeUserPool's lookup by ARN does. Tag
changes already store a new map under the pool's lock; the tags field is
now volatile.
The generated request resources give Firehose's deliverystream type the
aws:ResourceTag/ key, but no service answered the firehose namespace's
stored tags, so a condition on a delivery stream's tags saw none.
FirehoseService now answers it: storedTags reads the stream in the
request's account, where the handlers read, in place under its key in
the ARN's Region or the account's key from before the key named the
Region, and matched on the whole ARN. TagDeliveryStream and
UntagDeliveryStream read, changed and wrote the stream with no lock, so
one could drop another's tags or write back a stream a delete had just
removed; they now hold the per-stream lock a delete and a Redshift
update hold, and the tags field is volatile.
The generated request resources give ACM's certificate type the
aws:ResourceTag/ key, but no service answered the acm namespace's
stored tags, so a condition on a certificate's tags saw none. AcmService
now answers it: storedTags reads the certificate stored under the key of
the Region the ARN names, in the request's account, where the handlers
read, in place, and matched on the whole ARN. Tag changes already store
a new map under the service's lock; the tags field is now volatile.
The generated request resources give ECS's cluster, task-definition,
service, capacity-provider, task and container-instance types the
aws:ResourceTag/ and ecs:ResourceTag/ keys, but EcsService answered no
tags, so a condition on an ECS resource's tags saw none. Its storedTags
now reads the resource the ARN names in the request's account, where
every ECS handler reads: a stored one in place under the key its ARN
gives, a record saved before storage was account-aware or before a task
definition's key named its Region included, matched on the whole ARN,
and a task or a container instance from memory. TagResource and
UntagResource changed the resource's map in place without a lock; they
now give it a new map under the service's lock, and the tags fields are
volatile.
The generated request resources give Application Auto Scaling's
ScalableTarget type the aws:ResourceTag/ key, but its service answered
no tags, so a condition on a scalable target's tags saw none. Its
storedTags now reads the target whose ARN is the ARN, among the targets
of the account and Region it names, a pre-multi-account one of the
default account included, as the handlers find it. Tag changes already
store a copy of the target under its lock; the tags field is now
volatile.
The generated request resources give Resource Explorer's index and view
types the aws:ResourceTag/ key, but ResourceExplorer2Service answered no
tags, so a condition on an index's or a view's tags saw none. Its
storedTags now reads the index or view stored under the ARN in the
account it names, in place, matched on the whole ARN both are kept by;
each is an immutable record that tagging replaces. Tag changes now take
the service's lock, so two on one resource keep each other's tags.
The generated request resources give Payment Cryptography's key type
the aws:ResourceTag/ key, but PaymentCryptographyService answered no
tags, so a condition on a key's tags saw none. Its storedTags now reads
the key stored under the ARN in the account and Region it names, in
place, a record saved before the Region joined its storage name
included, matched on the key's whole ARN. TagResource and UntagResource
edited the held map in place, which only ListTagsForResource's lock
kept from a half-written read; they now put a new map in place of it,
and the field is volatile, so the lookup reads one whole map without
the lock.
The generated request resources give RAM's resource-share type the
aws:ResourceTag/ and ram:ResourceTag/ keys, but RamService answered no
tags, so a condition on a share's tags saw none. RamService.storedTags now reads the share stored
under the ARN in the owning account the ARN names, in place, matched on
the whole ARN shares are kept by, when the caller may see it as
GetResourceShares shows it: one it owns or one made visible to it, so a
decision never turns on a share RAM hides from the caller. A share is immutable and tagging
stores a new one under the service's lock, so the lookup always reads
one whole set of tags.