Commit Graph
5104 Commits
Author SHA1 Message Date
Andre Kurait 07f6dea386 fix(codeartifact): retain unhealthy sidecars during active requests (#8692)
* fix(codeartifact): retain unhealthy sidecars during active requests
* fix(codeartifact): drain retired sidecar cleanup after failures
* fix(codeartifact): keep replacement sidecar names distinct
* fix(codeartifact): keep repository admission independent of startup
* fix(codeartifact): reclaim untracked repository sidecars
* fix(codeartifact): share run-labelled container cleanup
2026-11-17 05:53:34 -04:00
mrfelek b2f550e6be fix(s3vectors): address vector buckets and indexes by ARN (#8669)
S3 Vectors calls that name a vector bucket now take its vectorBucketName or its vectorBucketArn, and calls that name an index take vectorBucketName with indexName, or indexArn. GetVectorBucket, DeleteVectorBucket, ListIndexes, CreateIndex, GetIndex, DeleteIndex, PutVectors, GetVectors, DeleteVectors and QueryVectors used to answer NotFoundException for a request by ARN. A request that gives neither form, or both, or mixes indexArn with the names, gets AWS's ValidationException message. A bucket or index ARN of another partition or Region than the request's is refused with a ValidationException, and one of another account with AccessDeniedException (403), in these calls, ListVectors and the bucket policy calls alike. CreateVectorBucket and CreateIndex refuse a blank name or one with a slash, which no call could reach.
2026-11-17 05:52:13 -04:00
jwoa95 c2401d7e06 fix(lambda): return invocation log tails for LogType=Tail (#8618) (#8661) 2026-11-17 05:50:15 -04:00
Priamo Germosen 7ed62b2597 fix(resourceexplorer2): give resource-tag conditions the tags of the resource a request names (#8719)
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.
2026-11-17 05:48:21 -04:00
Saim Zaib 6c18ec745e refactor(apigateway): import Duration in proxyOptions (#8712)
* refactor(apigateway): import Duration in proxyOptions
2026-11-17 05:32:34 -04:00
Oleksandr Nikolaichuk a98145795d fix(cloudformation): replace an SNS subscription when the engine says its create-only properties changed (#8677)
An AWS::SNS::Subscription update now replaces the subscription when the engine's change says Endpoint, Protocol or TopicArn changed, the three properties CloudFormation documents as "Update requires: Replacement". It used to subscribe anew and keep the old subscription, so the topic delivered every message twice. The displaced subscription is removed once the update commits, and a rollback removes the new one, never a subscription the update only adopted because it already existed. Deleting a subscription that is already gone is no longer an error.

Part of #6606
2026-11-17 05:28:17 -04:00
Jackson PriceandAndre Kurait 038e1383de fix(lambda): keep deployment buckets out of customer S3 listings (#8689)
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-17 05:27:13 -04:00
Jimmy Liu Jia 3c54534a3d fix(cloudfront): preserve distribution WebACLId (#8707)
CloudFront now reads WebACLId, the member name the CloudFront API uses, on CreateDistribution and UpdateDistribution, and writes it under that name in GetDistributionConfig, GetDistribution and ListDistributions, where the summary now carries the stored value instead of an empty one. An empty WebACLId clears the association, and the earlier WebAclId spelling is still accepted on input when WebACLId is absent.

Part of #8645
2026-11-17 05:21:56 -04:00
Priamo Germosen 8b2d21498b fix(elasticache,memorydb): check AUTH sent after sign-in and close IAM connections after 12 hours (#8704)
Once a client had signed in, the auth proxy relayed its bytes blind, so a later AUTH or HELLO reached
the backend with the client's own credentials, which the backend refuses. A client refreshing its IAM
token or switching user got WRONGPASS where AWS signs it in. Where the proxy checks credentials, it now
keeps reading the client's commands and checks a later AUTH or HELLO as at sign-in. Accepted
credentials are relayed as their user's private backend credentials and refused ones as credentials
the backend refuses, so the backend still answers every command and the replies keep their order. The
client's password or token never reaches the backend, and every other command passes byte for byte.

A connection signed in with an IAM token is now closed 12 hours after it signed in, and a new token
gives it another 12 hours, as AWS documents for ElastiCache and MemoryDB. An IAM user's AUTH or HELLO
inside MULTI is refused, since AWS does not support IAM re-authentication inside a transaction.
2026-11-17 05:06:39 -04:00
Priamo Germosen da8cc6fb1b fix(paymentcryptography): give resource-tag conditions the tags of the key a request names (#8716)
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.
2026-11-17 04:18:33 -04:00
Priamo Germosen e078bb7b00 feat(emr): answer GetClusterSessionCredentials for runtime role clusters (#8714)
GetClusterSessionCredentials, "temporary, HTTP basic credentials that
are associated with a given runtime IAM role and used by a cluster with
fine-grained access control activated", was not served.

Floci now answers it with a random username and password that expire in
an hour, for a RUNNING or WAITING cluster on emr-6.11.0 or later whose
security configuration turns on runtime roles
(EnableApplicationScopedIAMRole); any other cluster is refused. Floci
runs no endpoint that checks them, and keeps none. A request without an
ExecutionRoleArn is refused, as the credentials are "associated with a
given runtime IAM role". Whether a cluster is a runtime role enabled one
is now recorded as it is created, so a security configuration deleted
or reused later changes nothing; CreatePersistentAppUI's
RuntimeRoleEnabledCluster reads the same.
2026-11-17 03:37:08 -04:00
Priamo Germosen da39feee4e fix(ram): give resource-tag conditions the tags of the resource share a request names (#8713)
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.
2026-11-17 03:15:14 -04:00
Priamo Germosen 751c97dde6 feat(emr): keep persistent application UIs and answer their presigned URLs (#8711)
EMR's application UI operations, CreatePersistentAppUI,
DescribePersistentAppUI, GetPersistentAppUIPresignedURL and
GetOnClusterAppUIPresignedURL, were not served.

Floci now keeps a cluster's persistent application UIs, with the types
its release and applications give it (the Spark History Server from
5.25.0, the Tez UI and YARN timeline server from 5.30.1), refusing a
cluster with more than one primary node and an account past 200, and
reports whether the cluster's security configuration turns on runtime
roles. It serves none of those UIs: a presigned URL, persistent or
on-cluster, opens a signed one-hour page of Floci's about the cluster
and the interface asked for.

The link signing of EMR Serverless's dashboards and these pages is one
helper, core.common.LinkSigner, and their HTML page and table rows come
from core.common.Html.
2026-11-17 02:32:58 -04:00
Priamo Germosen 7199c8580e fix(oam): give resource-tag conditions the tags of the sink or link a request names (#8710)
The generated request resources give OAM's sink and link types the
aws:ResourceTag/ key, but OamService answered no tags, so a condition
on a sink's or a link's tags saw none. OamService.storedTags now reads
the sink or link stored under the ARN in the account it names, in
place, matched on the whole ARN they are kept by. Tagging and untagging
now take the service's lock, so two tag calls on one resource keep each
other's tags, and the tag fields are volatile; setTags already puts a
new map in place of the held one.
2026-11-17 02:09:51 -04:00
Priamo Germosen e0ef191767 feat(emr): keep notebook executions on a cluster (#8705)
EMR's notebook execution operations, StartNotebookExecution,
DescribeNotebookExecution, StopNotebookExecution and
ListNotebookExecutions, were not served.

Floci now keeps notebook executions and their lifecycle, without running
a notebook. An execution needs a RUNNING or WAITING cluster that meets
the EMR Notebooks cluster requirements (release 5.18.0 or later, with
Hadoop, Spark and Livy, and Jupyter Enterprise Gateway from 5.32.0 or
6.2.0), and an account runs at most 100 at once in a Region. It is
RUNNING from its start and FINISHED once the cluster's step duration has
passed, with AWS's "Execution is finished for cluster ..."; it stops at
once as STOPPED, and FAILS when its cluster shuts down first or after 30
days. ListNotebookExecutions gives the newest first, within its From and
To window (by default the last 30 days), 50 to a page. Executions are
stored apart from their clusters, and IAM's resource-tag conditions read
their tags.

EMR's release comparison, its enum check, the time a cluster began to
shut down, and reading an ARN's id and a resource's tags for IAM are
now shared helpers, which CancelSteps, sessions, Studios and clusters
use too.
2026-11-17 01:29:07 -04:00
Priamo Germosen a00b091da2 fix(sso): give resource-tag conditions the tags of the resource a request names (#8703)
The generated request resources give IAM Identity Center's instance,
permission set, application and trusted token issuer types the
aws:ResourceTag/ key, but SsoAdminService answered no tags, so a
condition on such a resource's tags saw none. SsoAdminService.storedTags
now reads them as ListTagsForResource does, in place: the resource the
ARN names, found as the handlers find it by its whole ARN, then the tags
a tagging call left on it or else its own. Its tag writes already put a
new map in place of the held one.
2026-11-17 01:00:44 -04:00
Fernando Farias 81f484fc18 fix(kms): accept application/x-amz-json-1.0 requests (#8658)
* fix(kms): accept application/x-amz-json-1.0 requests
* test(kms): declare JsonPath explicitly instead of var
* test(kms): reuse awsAction with an explicit content type
2026-11-17 00:23:48 -04:00
Andrew Barnes 8d9ab570cd fix(s3): store Windows-incompatible keys without filename collisions (#7925) 2026-11-17 00:21:46 -04:00
Priamo Germosen bd6c5810c3 feat(emr): keep EMR Studios and their session mappings (#8701)
EMR's Studio operations, CreateStudio, DescribeStudio, ListStudios,
UpdateStudio and DeleteStudio, and its Studio session mappings, Create,
Get, List, Update and DeleteStudioSessionMapping, were not served.

Floci now keeps Studios, checked against its own EC2 and IAM Identity
Center: a Studio's VPC, at most 5 subnets and its two security groups
must exist, the subnets and groups in the VPC; an SSO Studio needs a
UserRole and an IAM one may not have one, and the IdP members are for
IAM Studios only; an SSO Studio needs the account's IAM Identity Center
instance, or the one it names. UpdateStudio keeps every earlier subnet.
A session mapping is for an SSO Studio, names its user or group by id
or by name but not both, and that identity must be in the instance's
identity store, and is found again by the id or name it was made with.
Studios and mappings list in the order they were made, by a sequence no
deletion frees. AddTags and RemoveTags take a Studio's id, and IAM's
resource-tag conditions read a Studio's tags.
Floci serves no Studio: its URL is on Floci's own address.

Identity Store gains typed lookups of a user by name and a group by id
or display name, and EMR's random id helper is shared.
2026-11-17 00:21:18 -04:00
Andre Kurait 98c6a699e6 fix(iam): canonicalize AWS managed policy identities (#8659)
* fix(iam): canonicalize AWS managed policy identities
* fix(iam): preserve registered boundary identity during canonicalization
* test(iam): reuse CloudFormation stack lifecycle waits
2026-11-17 00:17:24 -04:00
Daniël van Ziel bf77705ace fix(cloudformation): apply DisplayName on AWS::SNS::Topic (#8693)
AWS::SNS::Topic now forwards DisplayName to the topic, so GetTopicAttributes reports it once the stack is created. An update that drops a DisplayName the previous template declared resets it to empty; one the stack never declared is left alone, in case it is set outside the stack. A value over the documented 100-character limit is rejected with a ValidationError before anything is created, and the "accepted and ignored" row for DisplayName leaves writable-property-gaps.tsv.

Closes #8666
2026-11-16 23:57:22 -04:00
Priamo Germosen 15519216c3 fix(cloudfront): give resource-tag conditions the tags of the resource a request names (#8700)
The generated request resources give ten CloudFront types the
aws:ResourceTag/ key, but CloudFrontKeyValueStoreService, the
namespace's StoredResourceArns, answered no tags, so a condition on a
CloudFront resource's tags saw none. It now reads the tags CloudFront
holds under the ARN, in place, from the tag store CloudFrontService
writes, where the tag handlers keep them: in the request's account, by
the whole ARN, since CloudFront ARNs name the default account whichever
account owns the resource. DeleteFunction now removes the tags kept
under the function's ARN, its name, and CreateFunction drops any left
there, so a function created again under a deleted one's name starts
with none. CloudFront's tag writes already put a new map in place of
the held one.
2026-11-16 23:54:23 -04:00
Jimmy Liu Jia bcf5e58886 fix(elbv2): return forward config for short-form actions (#8650) 2026-11-16 23:53:04 -04:00
TATSUNO “Taz” Yasuhiro 0e5785f6ec fix(dynamodb): hold a PartiQL Limit to the int range (#8694) 2026-11-16 23:50:30 -04:00
Jimmy Liu Jia f96cd91c8b refactor(cloudformation): share API shape conversion across provisioners (#8670)
* refactor(cloudformation): share API shape conversion across provisioners
2026-11-16 23:50:07 -04:00
TATSUNO “Taz” Yasuhiro 39a8c341e4 fix(dynamodb): read each PartiQL sort-key branch on its own (#8672) 2026-11-16 23:46:53 -04:00
Priamo Germosen 7466c5c063 feat(elasticache,memorydb): enforce user access strings on cluster-mode nodes and MemoryDB clusters (#8686)
A cluster-mode replication group with a user group refused every connection, because turning a
node's default user off would have left replication without credentials. Before the first node turns
it off, every node now gets a private replication user with masteruser and masterauth pointing at it,
once per running cluster, so each node's proxy installs the signed-in user's access string on its
own node, as a standalone group does. A cluster nobody signs in to with a user never holds that
password, which its unrestricted default sessions could read. Sessions on a cluster node also lose
the CLUSTER subcommands ElastiCache restricts, and ModifyUser reaches the open sessions of every
node.

MemoryDB relayed every connection as the backend's unrestricted default user. A cluster bound to an
ACL of its own now runs each connection under its user's access string through the same backend
ACL, with the open-access ACL relayed as before.
2026-11-16 23:27:43 -04:00
Priamo Germosen bb57e63b8e feat(emr): keep Spark Connect sessions on a cluster (#8699)
EMR's session operations, StartSession, GetSession, ListSessions,
TerminateSession and GetSessionEndpoint, were not served, and RunJobFlow
dropped SessionEnabled.

Floci now keeps a cluster's sessions and their lifecycle, without
starting a Spark Connect server for them. RunJobFlow keeps
SessionEnabled and DescribeCluster reports it. StartSession needs a
cluster with sessions enabled, on emr-spark-8.0.0 or later, with Spark,
RUNNING or WAITING, with one primary node and fewer than 1000 sessions
that have not ended, as the Management Guide's "Interactive sessions"
gives them; a request needs a Name and an idle timeout within 24
hours. It answers SUBMITTED, and the session is IDLE from then on until
its idle timeout (60 minutes by default), TerminateSession, or its
cluster shutting down ends it. A retry with the same client request
token that asks for the same session answers as the first call did.
Sessions are kept apart from their clusters, so ended ones weigh on no
cluster read or write. GetSessionEndpoint gives an
endpoint on Floci's address and a token valid for an hour. ListSessions
gives the newest first, by state, a page at a time. A request member
of the wrong JSON type is refused with SerializationException.

The cluster's installed applications are read by one helper, which the
Hive and Pig checks now share with the Spark one. GetSessionEndpoint's
endpoint and token come from core.common.SparkConnectEndpoint, which
EMR Serverless's GetSessionEndpoint now uses too.
2026-11-16 23:15:08 -04:00
Priamo Germosen 3313a5a9f0 fix(emr): give resource-tag conditions the tags of the cluster a request names (#8698)
The generated request resources give EMR's cluster type the
aws:ResourceTag/ and elasticmapreduce:ResourceTag/ keys, but EmrService
answered no tags, so a condition on a cluster's tags saw none.
EmrService.storedTags now reads the cluster stored under the ARN's id
in the account it names, in place, in the ARN's Region or recorded with
none, as the tag handlers find it, the ARN matched whole. AddTags and
RemoveTags now put a new map in place of the held one under the
service's lock instead of editing it in place, and the field is
volatile.
2026-11-16 22:42:22 -04:00
Priamo Germosen 1d581eb131 feat(emr-serverless): keep Spark Connect sessions and answer GetResourceDashboard (#8695)
EMR Serverless's session operations, StartSession, GetSession,
ListSessions, TerminateSession and GetSessionEndpoint, and
GetResourceDashboard, which "Currently, only Session is supported" for,
were not served, and a session's ARN was refused for tagging.

Floci now keeps sessions and their lifecycle, without running a Spark
driver for them. StartSession needs a Spark application on emr-7.13.0 or
later (or the AWS runtime for Apache Spark) with sessionEnabled on, is
admitted like a job run, auto-start included, and is idempotent on its
client token. An application holds at most 25 sessions that have not
ended, as the user guide's default, beyond which the 26th is
ServiceQuotaExceededException. A session is IDLE once started and ends
TERMINATED at its idle timeout (60 minutes by default), at its 24 hour
limit, when terminated, or when its application stops. GetSessionEndpoint
gives an endpoint on Floci's address and a token valid for an hour.
GetResourceDashboard gives a signed link, like GetDashboardForJobRun's, to
a page about the session. Tags work on session ARNs.

ListApplications, ListJobRuns and ListSessions share their validation,
and the latter two their state-grouped paging; StartJobRun and
StartSession share the caller, client-token and retry helpers.
2026-11-16 22:08:01 -04:00
Priamo Germosen 66eb95661e fix(ssm): give resource-tag conditions the tags of the resource a request names (#8691)
The generated request resources give SSM's parameter, document and
association types the aws:ResourceTag/ key (and ssm:resourceTag/ for
the first two), but SsmService answered no tags, so a condition on an
SSM resource's tags saw none. SsmService.storedTags now reads the
parameter, document or association stored under the ARN in the account
and Region it names, in place, matched on the whole ARN; a parameter
ARN names /<name> before <name>, as tagging reads it. Tag writes now
put a new map in place of the held one, a parameter's filled one entry
at a time so the listed order holds, and the parameter tag writes the
CloudFormation provisioner calls take the service's lock as the others
do; the tag fields are volatile.
2026-11-16 21:38:18 -04:00
Priamo Germosen 8b1de6cdbe fix(iam): read the delegation request owner a policy condition names (#8688)
The Service Reference publishes iam:DelegationRequestOwner on the
delegation-request resource type rather than on the actions that act on one,
and only ListDelegationRequests carries the owner in a parameter. On the seven
others the value is the stored request's, so the key reached no request
context: an allow conditioned on it matched nothing and a deny conditioned on
it applied to nothing, where AWS evaluates both.

The table gains a fromResource section for a key published on a resource type,
each entry carrying the type, the member of its record the value is read from
and the type's ARN format. The filter then asks the service holding the
resource an ARN names for what its record keeps there, which is the
per-resource read that already gives a resource its tags, and the delegation
store answers through the port that already keeps IAM from depending on it.

Which member carries the owner is the one thing neither botocore nor the
Service Reference says, so the generator states it where it states anything by
hand, with AWS's own word quoted and linked: the key "Filters access based on
the AWS identity or principal that owns the delegation request", whose owner is
"the AWS identity or principal in the customer account that initiated or
received the delegation request". The generator refuses an entry whose evidence
does not link to itself, or whose member botocore's record of the type does not
hold as a string.

The owner is answered from the same scan the owner listing reads, by request id
rather than by owner, so an authorization costs a lookup rather than a pass over
the store under the lock every claim and expiry takes: this runs on every
request for the actions the key is published on, which the listing does not.

A call naming no request carries no value, so CreateDelegationRequest, whose
request does not exist while it is authorized, and a request nobody has claimed
are both left without the key rather than given a wrong one. The owner is
answered to the account that owns the request and to no other, the line the
service draws when it reads one request by id.

One difference stays and is on the IAM page: the same guide lists
UpdateDelegationRequest among the operations the key supports and the Service
Reference publishes it on neither that action nor a type it acts on, so the
generated reading is what this follows.
2026-11-16 21:15:46 -04:00
Priamo Germosen 081fd97c05 feat(emr-serverless): answer GetDashboardForJobRun with a link to a page of Floci's about the run (#8687)
GetDashboardForJobRun gives "a URL that you can use to access the
application UIs for a job run", which "is valid for one hour after you
generate it". Floci did not serve it, so a client asking for a run's
application UI link, as Airflow's EMR Serverless operator can, failed.

It now checks the run and its attempt as GetJobRun does and answers
with a link to a page Floci serves at /_aws/emr-serverless/dashboard on
its own address: the attempt's state, its times, and where its
driver's logs go in S3 and CloudWatch Logs, which each attempt now
keeps as it was admitted, so a later change to its application's
monitoring configuration moves neither the logs nor what the page says
of them. EMR Serverless opens the
run's live Spark or Tez UI there, or its Spark History Server once it
has ended, neither of which Floci keeps. The link names the run and is
signed with a key Floci makes as it starts, so a changed link, one past
its hour, or one given before a restart, opens a refusal.

The three private HTML escapes (SES's unsubscribe page, Lambda web's
redirect, CodeArtifact's pypi index) become one, core.common.Html,
which the page uses too.
2026-11-16 21:04:27 -04:00
Priamo Germosen ef07bfd4b3 feat(athena): check the Glue permissions a DDL statement needs as the caller (#8657)
Athena runs a DDL statement against the Glue Data Catalog with the
caller's identity, so on AWS a caller without the Glue permissions a
statement needs starts the query, and the query fails with
"Insufficient permissions to execute the query." and the Glue denial.
Floci never checked them: under IAM enforcement a caller holding only
athena:* created and dropped Glue databases and tables through Athena.

Neither botocore nor the Service Reference says which Glue actions a
statement needs. Athena's user guide does, in its table "Examples of
database and table-level permissions":

- tools/aws/fetch_athena_glue_ddl_permissions.py vendors that table as
  it stands into tools/aws/sources/athena-glue-ddl-permissions.json:
  each statement's sentence and example policy, and the sentence that
  names the example database and table. --verify compares the file
  with the live page, and athena-glue-ddl-permissions.prompt.md says
  how to rebuild it when the page's layout changes.
- regen_iam_request_resources.py reads it as a source of the IAM
  request table (STATEMENT_SOURCES, for this table alone). Each action
  of a policy statement acts on each of its resources whose type the
  Service Reference gives the action, the type whose format the example
  ARN matches, its variables filled with what the page says the example
  names stand for. The table gains statementActions, the reference's
  types for each action, and statements. --check derives both offline,
  and --verify checks the types and the page. The sync also carries
  the Service Reference's changes since the last one.
- IamEnforcementFilter.statementRefusal checks those requests as the
  caller, the way a forwarded request is checked (aws:ViaAWSService,
  the caller's keys, the resource's policy), and returns AWS's denial.
  authorizeAdditionalResource's caller and decision steps move into
  helpers the two share.
- AthenaService checks CREATE DATABASE, CREATE [EXTERNAL] TABLE, DROP
  TABLE and MSCK REPAIR TABLE in the default catalog before running
  them, naming the database and table lowercase as Glue stores them
  (GlueService.normalizeName), and a denial fails the query with
  AWS's reason. As the guide says, DROP TABLE of a table without
  partitions needs no partition action; a table Glue cannot read for
  another reason fails the query.

AthenaGluePermissionsIntegrationTest runs the guide's policies under
IAM enforcement, and a deny on a lowercase name against a query that
spells it in capitals. RequestResourcesTest and the generator's and
fetch script's tests cover the rest, and athena.md says so.
2026-11-16 21:03:21 -04:00
Priamo Germosen d606843c49 fix(redshift): give resource-tag conditions the tags of the resource a request names (#8685)
The generated request resources give fifteen Redshift types the
aws:ResourceTag/ key, but RedshiftStoredResourceArns answered only a
snapshot's key, so a condition on a Redshift resource's tags saw none.
It now answers from RedshiftService.storedTags, which reads the
cluster, snapshot, parameter group, subnet group, snapshot copy grant,
snapshot schedule, event subscription or integration stored under the
ARN in the account and Region it names, in place, matched on the whole
ARN; a snapshot is found as tagging finds it, the copy kept in the
Region before the snapshot itself. CreateTags and DeleteTags already
put a new map in place of the held one under the service's lock; the
tag fields are now volatile, so the lookup reads one whole map.
2026-11-16 20:33:00 -04:00
Jackson Price bab6428f78 chore(cloudformation): reuse the launch configuration replacement decision (#8664)
Use the shared replacement decision for launch configurations, removing the duplicate ADDED guard now that #8471 makes an added create-only value require replacement for every resource type. The unit fixture derives that decision instead of forcing the obsolete false result.

Also make the negative card-validation fixture deterministic: it generates the valid value and changes its first digit, instead of a fixed 999 that could match the CVV for the randomly generated key.
2026-11-16 19:48:37 -04:00
Tyler Webb 47466ca6a8 fix(apigateway): report the caller's address as sourceIp in HTTP API Lambda events (#8674) 2026-11-16 19:45:37 -04:00
Tyler Webb 39e9cd9d1e fix(apigateway): build shared $context values in one helper and match HTTP API extendedRequestId to requestId (#8191) 2026-11-16 19:37:45 -04:00
Priamo Germosen b07c49082e fix(ecr): give resource-tag conditions the tags of the repository a request names (#8676)
The generated request resources give ECR's repository type the
aws:ResourceTag/ and ecr:ResourceTag/ keys, but ECR had no
StoredResourceArns, so a condition on a repository's tags saw none.
EcrStoredResourceArns now answers from EcrService.storedTags, which
reads the repository stored under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place, matched
on the whole ARN. Tag writes now replace the map whole under one lock,
filled one entry at a time so the listed order holds, and the field is
volatile.
2026-11-16 19:25:37 -04:00
Priamo Germosen 895981ac8d feat(ecs): opt-in localhost between an awsvpc task's containers (#8654)
On Fargate the containers of an awsvpc task share one network namespace
and reach each other on localhost. Floci gave each container a namespace
of its own unless security-group enforcement was on, and enforcement
needs rootful Docker, so a sidecar task definition (nginx in front of
php-fpm on 127.0.0.1:9000) could not run unchanged on rootless Docker or
Podman.

floci.services.ecs.shared-task-network (FLOCI_SERVICES_ECS_SHARED_TASK_NETWORK),
off by default, gives such a task one namespace while enforcement is off.
A helper container holds it, as the ECS agent's pause container does. The
firewall manager starts it from the same code as a protected helper, with
no nftables table and no rootful requirement, and every container in the
task joins it. The helper holds what the task has once rather than per
container: its published ports, the link-local address its containers
reach the task-role credential endpoint from, and its ENI address on the
VPC's Docker network. FireLens's FLUENT_HOST is 127.0.0.1, the value the
ECS agent sets for awsvpc. The helper is removed once the task's
containers are, before its link-local address is handed on, and a helper
a previous run left behind is swept at startup with the task's other
containers. A helper Docker keeps is marked pending on the task's handle,
which the service keeps to retry the removal; its address stays reserved
until then, and it is taken off the VPC network so the ENI address is free
when the ENI is released. Launch cleanup removes a helper by name even when
its start failed part way, and now also covers the VPC attachment, so a
failed attachment no longer leaves the task's containers running. With
enforcement on, nothing changes.

The helper image now builds from docker.io/library/alpine: Podman refuses
a short name it cannot prompt about, and the task-role credentials proxy
builds from the same Dockerfile.

Closes #4331
2026-11-16 19:23:57 -04:00
Joaquín Gamboa 3007534104 feat(dsql): translate role names and record each cluster's roles (#8631) 2026-11-16 19:22:41 -04:00
Priamo Germosen 6e30baf46c feat(emr): run a MapReduce JobHistory server on a cluster's primary node (#8662)
EMR's primary node runs one (a release's mapred-site classification
"Restarts Hadoop MapReduce-HistoryServer"); Floci's did not, so a
client asking about a MapReduce job whose application master had ended,
for its counters or task reports, waited about 30 seconds a call on
0.0.0.0:10020 and got nothing. Pig asks after each of its MapReduce
jobs, so #8636 turned its task reports off and gave its client one try.

A cluster that runs YARN now starts `mapred historyserver` beside the
ResourceManager, on Hadoop's own ports and where HDFS listens, from the
jobs' history in the cluster's HDFS, and its primary node is ready once
the server answers. A step's MapReduce settings name it, and so do a
Hive step's, for a query run on MapReduce; an emr-spark-* node runs it
from the Hadoop it keeps apart. The node scripts' readiness waits share
one helper. Pig's
workaround goes: its MapReduce jobs' counters come from the server, as
on EMR.
2026-11-16 18:09:21 -04:00
Oleksandr Nikolaichuk 5ea7186549 fix(ecr): count untagged images when deciding whether a repository is empty (#8651) 2026-11-16 17:28:03 -04:00
Allen Sanborn bda82cc98d fix(rds): accept SessionPinningFilters on non-MySQL DB proxies (#8606) 2026-11-16 17:10:52 -04:00
Jimmy Liu Jia 5f77b841a2 feat(cloudformation): provision SES event destinations (#8620)
* feat(cloudformation): provision SES event destinations
* fix(cloudformation): validate SES event destination replacements
* fix(cloudformation): apply SES event destination review feedback
* test(cloudformation): use shared stack waits for SES event destinations
2026-11-16 17:08:48 -04:00
Niels Kootstra aef8416c4b fix(ssm): associate a document another account shared with the caller (#8646)
CreateAssociation now resolves a document ARN in another account to that account's document when its owner shared it with the caller through ModifyDocumentPermission, and answers InvalidDocument for one that is not shared, is of another partition or does not exist. UpdateAssociation checks a new DocumentVersion through the same lookup. With IAM enforcement on, reachedInItsAccount has the request checked on the owner's document ARN alone, so the caller's identity policy must allow that ARN.

Closes #8364
2026-11-16 17:01:17 -04:00
mrfelek e44f9137be fix: keep EMR security configurations, ElastiCache parameter groups and Glue Schema Registry resources in their Region (#8611)
EMR security configurations, ElastiCache cache parameter groups and Glue Schema Registry registries and schemas are now stored under their Region, so each is listed and reached only in the Region it was created in, and its name is free in other Regions. Another Region's resource answers the error each service already gives for one that does not exist, and each Region gets its own default Glue registry.

Records stored before move at startup, in every account: to the Region their ARN names, or to the default Region, with a copy in each other Region whose clusters or replication groups name one, through the new AccountAwareStorageBackend.migrateLegacyEntriesToRegions. A Glue schema stored in another Region than its registry gets a copy of that registry there.

Part of #8218.
2026-11-16 16:50:29 -04:00
Murtaza Shajapurwala b7a95fc920 feat(elasticache): add an explicit shell-less backend path for Redis-compatible images (#8642)
* feat(elasticache): add an explicit shell-less backend path for Redis-compatible images
2026-11-16 16:43:40 -04:00
Jackson PriceandAndre Kurait e281defa12 feat(eventbridge): list rule names by target (#8632)
* feat(eventbridge): list rule names by target
* fix(eventbridge): reuse scoped rule lookup and policy fixtures
* fix(eventbridge): avoid redundant target lookup reads

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-16 16:39:03 -04:00
rajp33 7872ef9c51 fix(rds): start PostgreSQL with wal_level=logical when rds.logical_replication=1 (#8619) 2026-11-16 16:37:04 -04:00