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 v2 SendEmail or SendBulkEmail with inline TemplateContent was accepted
as soon as one of the subject, text or html was set, and an empty one
was answered with a message of Floci's own.
SES needs a subject and a text or html part, each with a non-whitespace
character, and answers every incomplete shape with "Template is missing
required fields." It reports that ahead of a missing or malformed
sender, the destinations, the template data and the configuration set
and tenant lookups, so the check now runs first on both operations.
A stored template is no longer checked again when a send renders it: it
was validated when it was stored.
A template that names a stored template beside TemplateContent now
answers with the message SES uses on each operation.
Seven Glue service tests each declared a private InMemoryStorageFactory,
and four Glue integration tests built the AWSGlue.<action> request by
hand. They now use io.floci.aws.testing.InMemoryStorageFactory and
GlueRequests.call, which #8568 shared.
The Service Reference now gives Route 53 a healthchecksource resource
type and lists it for ChangeTagsForResource, ListTagsForResource and
ListTagsForResources, so iam-request-resources-verify fails on every
change touching the table. make iam-request-resources-sync, with no
change to the generator, brings that in, with the type's ARN format and
its aws:ResourceTag/ key, and what else AWS changed since the table was
last written, each read by the existing rules: Route 53's health check
source actions, Cognito user pools' client metadata document policy and
URL actions, the userpool type for those and for the point-in-time
recovery actions, Pricing Calculator's GetUsageLinesEstimatedCost and
its bill-estimate tag key, EventBridge's RotateWebhookCredentials, S3
Tables' DisassociateTableReplication and RDS's subgrp type for
ModifyDBCluster, which nothing the action reads fills.
RestoreDBClusterFromSnapshot and RestoreDBClusterToPointInTime now read
DeletionProtection and set it on the new cluster before it is stored.
The AWS::RDS::DBCluster provisioner reads DeletionProtection, creates the
cluster with it, and applies a changed value on stack update. A stack
delete of a protected cluster is refused by DeleteDBCluster and reported
as the resource's DELETE_FAILED, as on AWS.
A restore, or a CloudFormation role attach, that fails after creating the
cluster goes through one cleanup that clears the flag and always attempts
the delete, adding any failure to the original error.
Closes#9056
An ENI could have IPv6 addresses assigned while its top-level
ipv6Address was missing from CreateNetworkInterface and
DescribeNetworkInterfaces. The shared serializer now reports the first
assigned address there, keeps the ipv6AddressesSet list, and omits the
field when the interface has none.
Ported from Emanuel Aseghehey's AndreKurait/floci#1239.
Share same-account client construction and successful summary lookup in
the existing metadata tests. Preserve each test assertion, region and
resource lifetime, including the unavailable-region negative control.
Closes#9043
CreateEmailTemplate validated the tags last, after the template name
and content. SES checks them first, as probed on us-west-2: the tag
count, character set, lengths, an empty key and duplicate keys are all
refused ahead of a blank name or a missing subject or part.
The reserved aws: key prefix is the exception. SES refuses it after
the name and the content, before it looks the name up, and words it
"Invalid tags" on this operation.
* feat(iot): support SetV2LoggingOptions and GetV2LoggingOptions
* fix(iot): keep omitted V2 logging options and require role and level on first set
* fix(iot): validate SetV2LoggingOptions log level and member types
* fix(iot): answer SetV2LoggingOptions with an empty body
* test(iot): cover V2 logging setup, updates, errors and account scoping in the SDK suite
* test(iot): sign V2 logging requests with the shared EnforcementFixtures.auth helper
* test(iot): cover V2 logging persistence and document eventConfigurations and verbose limits
* docs(iot): count the V2 logging routes in the service matrix
* fix(iot): reject a SetV2LoggingOptions body that is not a JSON object
* fix(iot): reject a blank roleArn in SetV2LoggingOptions
* fix(iot): serialize the SetV2LoggingOptions read-merge-write
* test(iot): share one IoT client builder in the SDK fixtures
* fix(iot): stop refusing a blank roleArn in SetV2LoggingOptions
* fix(iot): build the V2 log level refusal with SmithyValidationErrors
* refactor(iot): share IoT request body readers between logging and fleet indexing
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.
Template, configuration set, event destination, tenant and metric
dimension names each carried their own copy of the 64-character limit,
the [A-Za-z0-9_-]+ pattern and the sentence that quotes a refused name.
SesNames now holds the limit, the pattern and the two checks; each
caller passes its error code and wording and keeps its own blank check
and its own order of the two.
Contact list, topic and policy names, which have their own sentences,
ask SesNames's predicates in place of two more copies of the pattern.
No behaviour change.
Each MicroVM image version now keeps its own updatedAt instead of
reporting the parent image's. Building another version leaves older
versions' timestamps alone, and a status update advances only the
version it changes. A stored version without the field reports its own
createdAt, including after a restart, and reading it does not rewrite
storage.
Closes#8616
Derive INFERENCE_PROFILE support from existing system profile routes
while preserving regional ON_DEMAND support and request-filter
validation. Cover Get and List metadata through raw SDK strings,
including profile-only and unavailable regions.
Closes#8450
AWS documents $request.path and ${request.path} as an HTTP API mapping
source that yields the request path without the stage name. The AWS
service integration validator accepted only $request.path.<name>, so
CreateIntegration rejected it, and ContextValueResolver had no case for
it, so it resolved to nothing. The resolver now returns
RequestContext.path(), which already excludes the stage, and the
validator accepts the bare source.
Closes#8991
Extract the client construction and the mocked HttpClient.send call into
two private helpers, clientWithTransport and anySend, used by the six npm
transport tests. Each case now states its response or exception and its
expected send count without repeating the transport matchers.
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.
A created stack got its template only once its creation started on an operation thread, after CreateStack had answered, so a GetTemplate or GetTemplateSummary in between answered {} and an empty summary. The execution claim, which marks the stack CREATE_IN_PROGRESS under the stack's lock, now sets the template the stack is created with, as it already sets the stack policy, and a claim the operation queue refuses restores the previous template from StackMutationSnapshot with the rest of the stack.
CreateDBInstance and ModifyDBInstance accepted Iops and StorageThroughput but dropped them, and DescribeDBInstances returned neither, so a Terraform aws_db_instance that set iops or storage_throughput never converged. Both are now stored from Create and Modify. Describe reports Iops on io1, io2 and gp3 and StorageThroughput on gp3, with the RDS User Guide's gp3 baseline when an instance named neither (12,000 IOPS and 500 MiB/s from 400 GiB, 200 GiB for Oracle, never for SQL Server; 3,000 and 125 otherwise), and StorageThroughput 0 on every other type. Iops on a type without provisioned IOPS, Iops=0 aside, and StorageThroughput off gp3 are refused with InvalidParameterCombination, a create naming Iops and no type defaults to io1, and a type switch drops values the new type does not carry.
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.
* fix(cloudwatch): preserve weighted samples on public metric APIs
* fix(cloudwatch): index Query fields before weighted parsing
* fix(cloudwatch): include datum paths in weighted length errors
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
The Kubernetes Lambda executor built every pod without a nodeSelector or tolerations, so on a cluster whose node groups are all tainted the pods stayed Pending until the cold-start timeout. FLOCI_SERVICES_LAMBDA_KUBERNETES_NODE_SELECTOR takes key=value entries with label syntax for spec.nodeSelector, and an invalid entry fails the cold start rather than letting the pod land on nodes it was meant to avoid. FLOCI_SERVICES_LAMBDA_KUBERNETES_TOLERATIONS takes the tolerated taints in kubectl taint syntax (key=value:Effect, key:Effect, or a key alone for every effect), and an invalid entry is dropped with a warning, as an invalid label is. A repeated key now logs which value replaced which. The Helm chart, now 0.2.0, renders both from floci.lambda.kubernetes.nodeSelector and tolerations.
Closes#8992
EmrDockerRunnerDockerIntegrationTest pulls a 3.5 GB image and took about 640 s of a passing pull request shard, so after #8903 moved its cluster shrink scenario to the nightly checks, the rest of the class follows as EmrDockerRunnerNightlyIntegrationTest. partition.sh no longer weighs it: SLOW_CLASSES comes from PARTITION_SLOW_CLASSES, empty by default, and test_partition.py passes its own. The standard nightly group has no room for it (339 of its 359 minutes), so the cluster-shrink group becomes docker-runner, with both classes in 42 minutes of bounds in a 62-minute job. On a pull request, the nightly checks now run only the nightly classes it adds or changes, or all of them when it changes the workflow.