Commit Graph
5257 Commits
Author SHA1 Message Date
TATSUNO “Taz” Yasuhiro 6a7428aabc feat(eventbridgev2): receive webhook events (#9424)
The webhook event sources #9321 added had a URL that answered nothing. A POST to it is now checked in the order AWS checks it: the method, the URL's host-bound token, the body size, the source's credential (a static token, Basic or an HMAC signature, read from its Secrets Manager secret and compared in constant time) and then the body, which must be one JSON value. A request that passes is published as an event on the source's bus with its listed headers as Metadata, and CONTENT_BASED deduplication drops a repeat within five minutes.
2026-11-25 07:09:43 -04:00
Jimmy Liu Jia bc98bbbb23 fix(s3): block SSE-C writes for new and configured buckets (#9414) 2026-11-25 07:09:21 -04:00
mrfelek 017b687567 feat(eks): give an EKS Auto Mode cluster its node pools, default node class and Auto Mode node label (#9425) 2026-11-25 06:56:14 -04:00
Niels Kootstra 47e554680b feat(sts): verify web identity tokens from OIDC providers registered in IAM (#9217)
AssumeRoleWithWebIdentity verified only tokens from issuers Floci knows, such as its own EKS clusters, so a token from an OIDC provider registered with CreateOpenIDConnectProvider could not be verified. For a registered https issuer, the provider is read in the role's account, the token's key comes from the issuer's jwks_uri, and aud must name one of the provider's client IDs. An issuer whose keys cannot be fetched answers InvalidIdentityToken with AWS's message, and a token naming no key ID is refused with InvalidIdentityToken too.

Closes #7942
2026-11-25 06:55:39 -04:00
Jimmy Liu Jia b57af59bf8 fix(ec2): honor block device delete-on-termination updates (#9422)
ModifyInstanceAttribute accepted BlockDeviceMapping entries without changing the attached volume's DeleteOnTermination flag, and DescribeInstanceAttribute returned no mappings. Each requested mapping is now resolved to an attached volume by device name or volume ID and checked before any flag changes, an omitted DeleteOnTermination defaults to true as the API reference says, and DescribeInstanceAttribute returns the instance's block device mappings.

Closes #9384
2026-11-25 06:52:10 -04:00
Andre Kurait 87ff8135a9 feat(ec2): retain IPv6 launch metadata and allocation properties (#9418) 2026-11-25 06:50:02 -04:00
Kenshin Okinaka 354e5b9ea9 fix(ses): make v1 UpdateCustomVerificationEmailTemplate a partial update (#9419) 2026-11-25 06:46:17 -04:00
Kenshin Okinaka 1d74e9adc8 fix(ses): answer a paused account with the AWS message and order (#9417)
A send while account sending is paused now answers AWS's message, "Sending is paused for this account.", on v1 and v2, in place of "Account sending is disabled." The codes are unchanged. v2 SendEmail with Raw content, v2 SendBulkEmail and v1 SendBulkTemplatedEmail check the sender before refusing a paused account, as AWS does, so an unverified sender gets MessageRejected first. Every other send still refuses a paused account ahead of every check.
2026-11-25 06:45:59 -04:00
Priamo Germosen 732001a90f fix(kinesisanalytics): start Flink clusters again when Floci restarts (#9390)
Floci's shutdown removes every application's Flink cluster, and nothing
started them again, so after a restart with persistent storage an
application still reported RUNNING with no cluster and no job behind
it.

At startup, each application that was RUNNING or still STARTING goes
back to STARTING, and its cluster starts in the background. A cluster
that outlived Floci is kept when its JobManager, TaskManager and job
still run. Otherwise what survives of it is removed, under the current
or the old floci- names, and the application gets a new cluster, as
StartApplication starts one, in the application's own account, and the
readiness poller runs its job afresh and reports it RUNNING. An
application whose cluster cannot be started goes back to READY, from
which StartApplication starts it again. An application stopped while
its restore is starting the cluster is STOPPING, as AWS reports a stop
in progress, until the restore has removed that cluster by its
containers' IDs, and READY then. StartApplication and DeleteApplication
refuse it meanwhile, so no second start runs under the cluster's names.
One still STOPPING at the next start has what survives of its cluster
removed before it turns READY. Each removal is confirmed with Docker:
while Docker keeps the cluster, the application stays STOPPING and the
cluster stays named and tracked, for shutdown and the next start.
Records stored under the keys of older builds move onto their current
keys first, so no application is restored twice. A start that shutdown
overtakes removes its containers.

Part of #5664.
2026-11-25 06:40:37 -04:00
Joaquín Gamboa a0123f8f69 feat(cloudfront): distribution tenants for multi-tenant distributions (#9398) 2026-11-24 23:40:15 -04:00
Andre Kurait b3c8db3022 fix(iam): read EC2 resource tags in the ARN scope (#9412)
EC2 resource-tag conditions read the tags of the resource an ARN names in the caller's account and Region, and a foreign ARN kept the caller's earlier tags. Ec2StoredResourceArns now answers storedTags for the resource in the ARN's account and Region, with the caller's account for an account-less image or snapshot ARN, so the shared resource-tag reader fills the table's keys for every EC2 type, other services' requests naming an EC2 ARN included. withEc2ResourceContext keeps only the generated record keys.

Ported from Emanuel Aseghehey's original change.
2026-11-24 23:19:17 -04:00
Andre Kurait ba6a81a0d5 fix(elbv2): honor disabled Lambda target health checks (#9407) 2026-11-24 22:19:19 -04:00
mrfelek 01a42399b0 fix(kinesis): honour DryRun on PutRecord, PutRecords, GetShardIterator, GetRecords and SubscribeToShard (#9409)
Kinesis's PutRecord, PutRecords, GetShardIterator, GetRecords and SubscribeToShard take DryRun, and Floci ignored it, so a dry-run PutRecord wrote the record. Each now makes the checks AWS makes for a dry run (the model constraints, the stream or consumer and the iterator, but not the shard) and answers DryRunOperationException, writing nothing. DryRun is read as Kinesis's deserializer reads it, a string such as "yes" included, through JsonBooleanCoercion.fromJson, which KMS now shares.

Part of #8220
2026-11-24 22:05:59 -04:00
mrfelek b85b0a8966 fix(eks): authenticate EKS Auto Mode nodes through their EC2 access entry (#9399)
Worker authentication accepts the node role's EC2 entry and names the node by
its session name, the instance ID. The entry is also made after an
authentication-mode change while compute is on, and never for a cluster being
deleted. CreateCluster makes it together with the cluster record, and
DeleteCluster removes it before the record, both under the same lock, so a
failed or concurrent create or delete leaves none behind. A client-token retry
makes the entry only for a request that changes Auto Mode or the
authentication mode, and a failed create keeps its own error when the entry
cleanup fails too.
2026-11-24 22:04:04 -04:00
Andre Kurait 8216c2b382 fix(redshift): preserve frontend state after an error Sync (#9401)
A query pipelined after Sync but before the previous ReadyForQuery could lose its prepared statement and portal during error recovery. The next frontend cycle now starts once Sync is registered or already queued, while its pending response stays the backend ownership barrier. A failed backend cycle is tracked apart from frontend discard mode, so a failed owned COPY transaction still rolls back at Sync, and the SQL needed for user-change audit events is kept.
2026-11-24 22:02:22 -04:00
Jimmy Liu Jia b504a2e9c2 fix(rds): omit Aurora instance storage modifications (#9400)
DescribeValidDBInstanceModifications offered four instance storage types for an Aurora record with no cluster identifier, while ModifyDBInstance discards a requested storage type for any Aurora engine. The valid-modifications path now applies the same Aurora check and returns no storage options for it.

Closes #9294
2026-11-24 21:00:04 -04:00
040e46ec96 feat(elbv2): support path-pattern regex conditions (#9387)
Listener rules now accept PathPatternConfig.RegexValues. CreateRule, ModifyRule, DescribeRules and CloudFormation keep the expressions, and both admission paths validate them before a mutation: glob and regex values can't be mixed, an expression must compile under RE2/J and avoid the syntax the ALB guide leaves out, and the condition and per-rule evaluation limits apply. The three refusals for mixed values, invalid syntax and too many values use AWS's recorded ValidationError messages. The data plane compiles a rule chain's expressions once and matches the request path without its query string, leaving glob matching as it was.

Co-authored-by: Tyler Parmelee <7409652+tparmelee@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-24 20:36:03 -04:00
TATSUNO “Taz” Yasuhiro c1fdd98a6d feat(eventbridgev2): manage webhook event sources (#9321)
Adds CreateEventSource, DescribeEventSource, ListEventSources,
UpdateEventSource and DeleteEventSource for EventBridge V2 webhook event
sources. Each source gets a webhook URL and a Secrets Manager secret owned by
events-webhook; DeleteEventSource schedules it for deletion, and
DeleteEventBus refuses a bus that still has event sources. UpdateEventSource
replaces the whole webhook configuration and stores a new source.

Requests are checked against the generated eventbridgev2 request shapes, with
the violation wording and order AWS answers in us-east-1. A ListEventSources
token belongs to its Region, EventBusArn and NamePrefix, and the stored
configuration keeps only the members the model declares. The webhook URL does
not accept requests yet.
2026-11-24 20:35:04 -04:00
Neil du Toit af0c646abb fix(cognito): pass ClientMetadata to the pre token trigger on GetTokensFromRefreshToken (#9381)
GetTokensFromRefreshToken dropped the request's ClientMetadata, so the PreTokenGeneration trigger (TokenGeneration_RefreshTokens) always received an empty clientMetadata. The request's map now reaches the trigger, as the API reference documents for the action's ClientMetadata. The OAuth token endpoint's refresh_token grant still passes none, since it has no ClientMetadata.

Closes #9278
2026-11-24 20:00:58 -04:00
Jimmy Liu Jia a8d1208bc8 fix(stepfunctions): decode escaped double-quoted literals (#9397)
The intrinsic argument splitter keeps an escaped double quote inside a double-quoted argument, but resolving the argument returned the backslash with it, so States.Array("a\"b,c", 'x') gave a first element of a\"b,c. A double-quoted argument now decodes \" and \\, and leaves any other backslash sequence as written, as a single-quoted one does with AWS's reserved escapes.
2026-11-24 19:06:33 -04:00
Priamo Germosen 8dd85097f0 feat(emr): run Trino on a docker cluster whose Applications name it (#9382)
A cluster whose Applications named Trino ran none, as no AWS image
carries it. With floci.services.emr.trino.enabled on, off by default, a
docker cluster that installs Trino now runs its coordinator, and its
steps run EMR's trino-cli against it.

- The coordinator, which runs the queries too, runs on the cluster's
  primary node, in a container of its own that shares the node's
  network: from the Trino project's image of the version the release's
  page in the Release Guide gives (trino.image, trinodb/trino:%s, 446
  for emr-7.5.0), with trino.memory-mb of memory (2048), on port 8889,
  EMR's.
- EMR installs hive-client and hcatalog-server with Trino, so the
  cluster's image has Hive and its primary node runs Hive's metastore
  service. Trino's hive catalog is that metastore, or Floci's Glue Data
  Catalog when trino-connector-hive sets hive.metastore to glue, the
  classification's other properties after Floci's. Trino reaches S3 and
  Glue with a session for the cluster's instance profile's role, as the
  metastore does.
- The cluster's image gets Trino's CLI from Trino's image, and a
  trino-cli that runs it on the image's Java 17 against the coordinator,
  whose address the steps get, unless a step names a server of its own.
- The cluster's first step starts Trino with the HDFS and waits for it.
  It goes before the primary node when the cluster ends, on a reset and
  on a shutdown, and one an earlier Floci left goes when the service
  starts.
- A nightly check runs trino-cli steps on a cluster with the metastore
  and on one with Glue. It joins the docker-runner group, whose budget
  grows by its 24 minutes, and the prefetch pulls its Trino image.
2026-11-24 17:17:07 -04:00
Jackson PriceandAndre Kurait 33d873b705 feat(apigateway): generate REST and WebSocket model templates (#9089)
GetModelTemplate now answers for REST and WebSocket models with sample VTL:
the $inputRoot line, two-space indented typed placeholders ("foo", 3.1415),
and an editable ##TODO / #foreach skeleton for arrays, generated from the
latest stored schema. A top-level scalar model is refused with 400
"Unsupported data type for mapping template", a missing WebSocket model with
404 "Invalid model identifier specified: <id>", and HTTP APIs refuse models
at CreateModel.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-24 16:42:19 -04:00
Niels Kootstra bc6a2279d4 fix(cloudformation): apply SSESpecification to a DynamoDB table on create (#9379) 2026-11-24 16:41:13 -04:00
Priamo Germosen 4a9ae4a569 fix(amazonmq): start broker containers again when Floci restarts (#9377)
Floci's shutdown removes every broker container, and nothing started
them again, so after a restart with persistent storage a broker still
reported RUNNING while nothing answered on its endpoints. A new
container would not have helped either: RabbitMQ keeps its data under
the node name, which defaults to the hostname Docker sets to the
container id, so a new container on the same volume started an empty
node without the broker's users.

Broker containers now run as the fixed node name rabbit@localhost. At
startup, each broker that was RUNNING or still starting goes back to
CREATION_IN_PROGRESS, and its container starts in the background. A
container that outlived Floci is kept when it still answers. Otherwise
the broker gets a new container on its volume, without seeding the
admin user, whose password is never stored, and on the host ports it
had when they are free. The readiness poller reports it RUNNING once
the console it probed answers.

A broker from before fixed node names with no surviving container is
reported CREATION_FAILED. One whose restore fails is reported
CREATION_FAILED and tried again at the next start, one CreateBroker
failed for is left as it is, and one a crash left DELETION_IN_PROGRESS
is deleted.

Part of #5664.
2026-11-24 16:17:21 -04:00
David 6018a41837 fix(docker): stop closing a Docker stream from reading the rest of its body (#9339)
Closing a stream from a Docker GET read the rest of its body, since httpclient5 drains a response on close to keep its connection, so a caller that stopped after the first bytes of a large body still waited for all of it.

On close the stream now reads at most 64 KiB of what is left: a body that ends there keeps its pooled connection, and a longer one is aborted. Closing it twice does nothing more.

Refs #9244
2026-11-24 16:15:00 -04:00
Jimmy Liu Jia 7af9847813 fix(stepfunctions): decode intrinsic literal escapes (#9378) 2026-11-24 16:10:23 -04:00
mrfelek 941a700f60 feat(eks): give an EKS Auto Mode cluster's node role its EC2 access entry (#9371)
CreateAccessEntry accepts the EC2 type (roles only, system:node:{{SessionName}} in system:nodes, AWS's refusals for groups, a username and an IAM user, access policies allowed), and turning Auto Mode compute on makes the node role's EC2 entry with AmazonEKSAutoNodePolicy, as measured on AWS.
2026-11-24 15:49:22 -04:00
Jimmy Liu Jia 54961f0519 fix(eventbridge): match exists only on leaf values (#9372) 2026-11-24 15:06:11 -04:00
Vũ Thế Huy a3a6cef531 feat(redshift): evaluate scalar Lambda UDFs over PostgreSQL wire and Data API (#9336)
Scalar Lambda UDFs created with CREATE EXTERNAL FUNCTION now evaluate in SQL over the PostgreSQL wire protocol, Simple and Extended Query, and through the Data API. LambdaUdfEvaluator collects each statement's calls in rolled-back passes through generated stubs, invokes the functions in batches through LambdaUdfInvoker, and serves the results from a per-statement cache. In autocommit the collect passes and the statement share one transaction, so now() and the other transaction-time arguments stay the same, and volatile arguments such as random() or statement_timestamp() are refused.

PostgresWire.dataRowValues is now the one DataRow decoder for the Spectrum backend session and the S3 COPY simulator.

Closes #7815
2026-11-24 14:59:14 -04:00
Matheus Oliveira d42f29579c perf(lambda): read the working directory's mode without streaming the archive (#9361)
The image function working directory check now reads each parent's mode and symlink target from HEAD /containers/{id}/archive, whose X-Docker-Container-Path-Stat header answers in a few bytes, instead of reading the first tar entry of a GET archive that Docker compressed and streamed in full when it was closed. An image function's first invoke no longer scans all of /var. The probe runs on a small control-plane transport pool of its own, behind the Docker circuit breaker.

Closes #9244
2026-11-24 14:48:02 -04:00
Jackson Price a99d83dcd9 docs(config): link listener parity to the container healthcheck (#9376)
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-24 14:44:43 -04:00
Mario Toffia 398d34239e fix(dns): answer an own-suffix name with the emulator's address when its stored record has no resolvable target (#9360)
Since #8926 a stored public zone under an emulator suffix answers A and AAAA,
and a public alias to a target Floci does not serve, such as a Cognito custom
domain aliased to CloudFront, got REFUSED, so a container asked public DNS and
got its own loopback address. An A or AAAA standard query for a name under an
emulator suffix that the stored zone refuses is now answered as the emulator's
own name, after the VPC forwarding-rule check. A query with more than one
question, a class other than IN, or a non-standard opcode or flag stays
REFUSED. Closes #9359.
2026-11-24 14:42:38 -04:00
mrfelek 5b2fa9a30d feat(eks): give EKS Auto Mode LoadBalancer Services of no class a Network Load Balancer (#9357) 2026-11-24 14:42:08 -04:00
Jimmy Liu Jia 0b12f31467 fix(ecs): preserve omitted deployment settings on update (#9369) 2026-11-24 14:28:32 -04:00
Priamo Germosen 2bcde72f1e fix(sagemaker): start endpoint containers again when Floci restarts (#9367)
Floci's shutdown stops every endpoint container, and nothing started
them again, so after a restart with persistent storage an endpoint
still reported InService while InvokeEndpoint failed with ModelError.

At startup, each endpoint that was InService or still Creating goes back
to Creating and is started again from its endpoint config and model, as
CreateEndpoint starts one, in the account it is stored under. It reports
InService once its container answers /ping, or Failed with the reason.
A Failed endpoint is left as it is, and one a crash left Deleting is
deleted.

Part of #5664.
2026-11-24 13:37:02 -04:00
Priamo Germosen 464aaaf734 feat(iam): read Route 53 Resolver from the generated tables (#9368)
Move `route53resolver` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Route 53 Resolver requests are checked on
the resources they name instead of `*`: a resolver rule, an endpoint or a
firewall domain list by its id, as <type>/<id>, the ARN the service mints,
and a tag call on its ResourceArn. The reference's DNSSEC configuration
format takes a ResourceId, which the request gives as the VPC's id, so the
DNSSEC calls are checked under the VPC's id.

A member whose botocore pattern is another service's ARN now holds nothing
of the namespace, read where every rule first reads the request's members:
CreateOutpostResolver's OutpostArn, an outposts ARN whose name begins the
outpost resolver's, had taken the place of the resolver it makes, which is
now checked as outpost-resolver/*. Over the whole table that rule changes
this one operation. No other namespace's rows change.

A managed firewall domain list, which AWS owns, was checked under the
caller's account, though the service gives it an ARN of its own, so a grant
on the ARN ListFirewallDomainLists returns was refused. Route 53 Resolver's
request-resource lookup now answers a managed list's ARN for its id, which
the reader already asks a service for for a resource filled from one
member; a custom list stays in the caller's account.
2026-11-24 12:36:27 -04:00
Priamo Germosen e15b64d07b refactor(core): gzip in-memory content through one Gzip.compress helper (#9364)
Four services gzipped a byte array held in memory with their own copy of the same lines: CloudTrail's
log file, a CloudWatch Logs subscription payload, a VPC flow log file and each line of a Redshift
audit log. core.common.Gzip.compress now does it once, and the four call it.

Writing to memory cannot fail, so the helper rethrows the compressor's IOException unchecked rather
than handing it to every caller; each caller already caught it as a runtime failure or had no way to
reach it. Its buffer starts small and grows with the compressed output, as the flow log
and Redshift writers' did, rather than being sized from the input. Writers that compress as they go, into a file or a stream they hand on (DynamoDB's export,
Firehose's per-format encoder, the EMR and Redshift UNLOAD writers), keep their own GZIPOutputStream.
2026-11-24 12:07:41 -04:00
Priamo Germosen bb579d5fe4 fix(identitystore): check an identity store in the account that holds it (#9363)
Under IAM enforcement an Identity Store request was checked on
arn:aws:identitystore::<caller>:identitystore/<id>, whatever account's IAM
Identity Center instance holds the store, so another account of its
organization reading it was checked on a store of its own account, and a
grant there reached it.

Every ARN names the account owning its resource. Identity Store's lookup
now answers the store's ARN in the account whose instance holds it
(SsoAdminService.identityStoreOwner), which the reader already asks a
service for for a resource filled from one member, so the request is checked
on the store where it is. A store no instance holds keeps the caller's
account, as before. No generator or table change.

The lookup a store's owner takes remembers a store no instance holds, so
a request naming one again does not look through every account's
instances again; the record empties whenever an instance is written and on
reset, as only those make a store held that was not, and starts over past
10,000 stores.
2026-11-24 11:58:15 -04:00
Jimmy Liu Jia 93460ae2d9 fix(eks): honor CreateCluster client request tokens (#9111) 2026-11-24 11:46:42 -04:00
James McMahon 65dbaac26a fix: protect host consoles from systemd EC2 guests (#9355)
A privileged systemd EC2 guest could hang up the Docker host's virtual-console sessions. Systemd guests now start /sbin/init with systemd.mask= arguments for the getty units, which systemd reads from PID 1's command line once container=docker marks the guest as a container, and get /dev/null mounted read-only over /dev/console and /dev/tty0 through /dev/tty63. Pseudo-terminals stay available for SSH. Docker applies the mounts when it creates the container, so existing systemd instances need recreating.

Closes #9342
2026-11-24 11:40:25 -04:00
Matheus Oliveira 19d0955c7c feat(lambda): give Unschedulable pods a kubernetes grace period (#9109)
With floci.services.lambda.kubernetes.unschedulable-grace-seconds (FLOCI_SERVICES_LAMBDA_KUBERNETES_UNSCHEDULABLE_GRACE_SECONDS, default 0), a Lambda pod the Kubernetes scheduler reports Unschedulable gets that long before its cold start fails, so a node autoscaler such as Karpenter can add a node. The grace is measured from when Floci first observes the reason, since the PodScheduled condition's lastTransitionTime keeps an older timestamp across a SchedulingGated to Unschedulable flip, and the pod startup timeout still bounds the wait. The default keeps the immediate failure.

Closes #8995
2026-11-24 11:36:23 -04:00
Vũ Thế Huy 6c451bbcc5 refactor(stepfunctions): inject RoleResourceAccessAuthorizer bean into LambdaTaskAuthorizer (#9334) 2026-11-24 11:30:28 -04:00
mrfelek 1adee379fb refactor(eks): take the Auto Mode load balancers as a constructor argument (#9352)
EksService took EksAutoModeLoadBalancers as an injected field. It is now an
Instance<EksAutoModeLoadBalancers> constructor argument, looked up only when a
cluster is deleted; the previous constructor keeps its callers. No behaviour changes.
2026-11-24 11:25:24 -04:00
Tal Efraim c40b11fe9a fix(cloudwatch): bound the datapoints Floci publishes itself (#9348)
The CloudWatch metric store has no size bound, and since SQS publishes AWS/SQS
metrics for every active queue each minute it grows with no PutMetricData call,
until a persisted cwmetrics.json no longer fits the heap on load.

floci.services.cloudwatchmetrics.max-stored-datapoints (default 100000) now caps
the datapoints kept per account in each namespace a MinuteMetricsPublisher
writes (AWS/SQS, AWS/Redshift). After each tick the publisher drops the oldest
over the ceiling, down to nine tenths of it, through the metric key index;
other namespaces are never cut, and 0 or less turns the ceiling off.
2026-11-24 11:20:34 -04:00
Matheus Oliveira cb573492ca fix(s3): refuse a KMS key id without x-amz-server-side-encryption: aws:kms (#9269) 2026-11-24 11:18:52 -04:00
Jimmy Liu Jia 97acf496d9 fix(apigatewayv2): retain integration TLS config (#9354)
API Gateway V2 integrations now store TlsConfig and return it from create,
update, get and list over the REST and JSON paths. An update that omits it
keeps it, and a malformed value is refused before the integration changes.
Closes #9337.
2026-11-24 11:14:13 -04:00
TATSUNO “Taz” Yasuhiro 2f4b2c492a fix(dynamodb): refuse BETWEEN bounds of different types (#9351)
A BETWEEN whose bounds have different types is now refused with DynamoDB's ValidationException in a FilterExpression, KeyConditionExpression, ConditionExpression and PartiQL statement, and PartiQL also refuses reversed bounds. Each check runs with the operand type checks, so the first failing condition in written order wins.

The one-violation envelope moves to SmithyValidationErrors.inEnvelope. PutItem, UpdateItem and DeleteItem condition errors carry it, through the Step Functions tasks too, and TransactWriteItems ones no longer do, as on DynamoDB.
2026-11-24 11:09:30 -04:00
Priamo Germosen 49a59da5e6 fix(identitystore): refuse an identity store to accounts outside its organization (#9346)
Identity Store checked only that an IdentityStoreId was well formed, so any
account could read and change the users, groups and memberships of any
store, the default account's IAM Identity Center store among them.

The IAM Identity Center User Guide says who may use an organization
instance's store: "Member accounts have access to Read actions on both the
sso-directory and identitystore namespaces", while adding, editing or
deleting users or groups is the management account's and a delegated
administrator's. SsoAdminService now answers how an account may use a store
from the instance that holds it: its own account, and a delegated
administrator for IAM Identity Center in an organization instance's
organization, in full; another account of that organization to read; any
other account not at all. Identity Store's handler refuses a store an
account cannot see as ResourceNotFoundException (ResourceType
IDENTITY_STORE) and a change from an account that may only read as
AccessDeniedException. A store no instance holds is used as before.
2026-11-24 10:40:42 -04:00
Priamo Germosen df8ccd0c52 fix(elbv2): default health checks by target group protocol (#9347)
CreateTargetGroup gave every target group an HTTP health check, so a
Network or Gateway Load Balancer target that does not answer HTTP with
the matcher's code stayed unhealthy. HealthCheckProtocol now defaults
to TCP, except for HTTP and HTTPS target groups and target type alb,
which keep HTTP, as the API reference states.

A health check uses HTTP, HTTPS or TCP. CreateTargetGroup and
ModifyTargetGroup refuse GENEVE, TLS, UDP, TCP_UDP, QUIC and TCP_QUIC,
and TCP for HTTP and HTTPS target groups and alb targets, naming the
protocols the target group takes as AWS does. A TCP check carries no
path or matcher, and moving one to HTTP or HTTPS takes both. A
CloudFormation rollback no longer sends a TCP check's stale path and
matcher back.

Closes #5824.
2026-11-24 08:40:07 -04:00
Priamo Germosen 3fbb0ced10 feat(iam): read Identity Store from the generated tables (#9315)
Move `identitystore` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Identity Store requests are checked on
the resources they name instead of `*`: the identity store its
IdentityStoreId names, and the group, user or membership its id names, whose
ARNs have no Region and no account; the list calls also on every group,
user or membership, as the Service Reference gives them.

A type an action requires that its request does not name is now read too.
Which types an action requires is what the Service Authorization Reference
marks with an asterisk, which neither botocore nor the Service Reference
says, so fetch_required_resource_types.py vendors that page's actions table
as it stands into tools/aws/sources/required-resource-types.json, granted
for Identity Store alone. Two generic readings use it: a required type the
record of the resource the request names holds is read through that
resource's id (DescribeGroupMembership and DeleteGroupMembership, the
membership's group and user), and a required type whose id a lookup returns
is found by the members its request gives, each way it may give them apart
(GetGroupMembershipId, GetGroupId, GetUserId). The reader lets a find name a
field of a structure at any depth and gives the service the members' paths
with their values, and Identity Store answers both as its handlers find
them. No other namespace's rows change.
2026-11-24 08:25:52 -04:00