Commit Graph
4792 Commits
Author SHA1 Message Date
soreavis bb6f46c104 fix(docker): recommend label=disable, not :z, when SELinux blocks the Podman socket (#7434)
The Podman docs and the web console's start-failure message told SELinux users to relabel the socket mount with :z. On a rootless podman machine (SELinux enforcing) that recipe fails: the web console cannot start and a Lambda invoke returns "Docker is not reachable (Permission denied)". :z fixes access to the socket file, but SELinux also denies connectto from the Floci container (container_t) to the Podman service (container_runtime_t), which a relabel can't fix; --security-opt label=disable avoids it. With it, the same recipe starts the console and invokes a Python Lambda.
2026-11-03 14:17:49 -04:00
Allen Sanborn fbfe9048a1 fix(ec2): support NAT gateway secondary addresses (#7327)
* fix(ec2): support NAT gateway secondary addresses

* fix(ec2): update a NAT gateway's secondary addresses in place

A CloudFormation update that changed only a NAT gateway's Secondary*
properties replaced the gateway. The replacement was created while the old
gateway still held its Elastic IP or fixed private address, so it came back
failed with Resource.AlreadyAssociated (or InvalidIPAddress.InUse) and the
update failed. The schema does not mark the secondaries create-only, so AWS
changes them in place and the gateway keeps its id.

Ec2Service.updateNatGatewaySecondaryAddresses sets a gateway's secondaries
to the requested ones: kept ones stay, dropped Elastic IPs are handed back,
new ones are checked as CreateNatGateway checks them, and every check runs
before anything changes. The provisioner calls it instead of replacing, and
records the prior secondaries so a rolled-back update puts them back.

* fix(ec2): keep a NAT gateway's picked secondary when listed ones change

The counted slots of an in-place secondary update kept the first secondary
with no Elastic IP and an address the request does not list. With
SecondaryPrivateIpAddresses [A] and a count of 1 changed to [B] and 1, that
was the dropped listed A, while the address the subnet had picked was given
up. Counted addresses always follow the listed ones, so the counted slots now
keep the last such secondaries, in order.

Tests cover a count changed in place (an unrelated change keeps the same
addresses; 1 to 2 keeps the first; 2 to 1 keeps one of them), the picked
address surviving a listed change, and secondary Elastic IPs swapped between
listed addresses or moved to a new one, with DescribeAddresses showing each
held at its new address.

* test(ec2): pin which counted NAT gateway secondary an update keeps

The counted slots keep the last unlisted secondaries, so a count lowered
from 2 to 1 keeps the second address; the test now asserts that, and that
raising the count from 1 to 2 adds a new address in the subnet after the
kept one. The comment no longer claims counted addresses always follow the
listed ones: slot position is the only record of an address's origin, and
across updates a once-listed address can move behind a picked one.

* fix(ec2): read a NAT gateway under the allocation lock before updating its secondaries

The secondary-address update read the gateway before taking the lock that
DeleteNatGateway holds. A delete finishing in between left the update
holding a stale copy, which it then wrote back, re-associating the Elastic
IPs the delete had released and overwriting the association of a gateway
that had since taken the primary one. The gateway is now read again under
the lock, and one that is gone or deleted is refused with NatGatewayNotFound.

* test(cloudformation): read NAT gateway addresses through XmlParser

The secondary-address tests picked addresses out of DescribeNatGateways and
DescribeAddresses with a regular expression and substring checks that
depended on element order. They now select the non-primary items of
natGatewayAddressSet through XmlParser.

* test(ec2): cover a NAT gateway stored as deleted by a racing tag write

CreateTags writes a NAT gateway back under the gateway's tag lock, which
DeleteNatGateway does not take. A tag write that read the gateway before a
delete therefore stores the very record the delete marked deleted, so the
secondary-address update's deleted-state check is reachable. The test pauses
the tag write's put, deletes the gateway, lets the put finish, and asserts
the update refuses the record with NatGatewayNotFound and holds no Elastic
IP for it.

* refactor(ec2): fill a NAT gateway's address slots in one place

CreateNatGateway and the secondary-address update each walked the gateway's
slots the same way: take the listed Elastic IP and address at each
position, assign a free address where none is listed, build the address,
and give back what was assigned if a later slot fails. Both now call
fillNatGatewaySlots. Create passes its primary address as slot 0 and marks
it primary afterwards; the update passes the slots its kept secondaries
already fill. The order addresses are assigned in, the error codes and the
release on failure are unchanged.

* test(ec2): cover NAT gateway lease release and reuse the shared test helpers

No test covered the lease a NAT gateway gives back when its addresses run
out part way, so the shared slot-filling walk could lose its release with
every test green. Two tests now run a /28 subnet out of addresses, one
through CreateNatGateway and one through a secondary-address update, and
verify the lease taken on the VPC network is released and that the update
leaves the gateway as it was.

The concurrent-delete test now builds its service with mockModeService()
and waits for the blocked update with ThreadStates.awaitBlockedOrDone.

* test(ec2): build the small NAT subnet with privateSubnet
2026-11-03 14:15:02 -04:00
Aniket Shukla eb65ad88d2 feat(accessanalyzer): add basic ValidatePolicy checks (#7085)
* feat(accessanalyzer): add policy validation JSON endpoint

* feat(accessanalyzer): report policy grammar findings with source spans

* feat(accessanalyzer): secure policy validation pagination and IAM

* fix(accessanalyzer): report repeated policy keys

* fix(iam): authorize policy validation through modeled routes

* refactor(iam): resolve policy validation from vendored routes

* refactor(iam): share condition operator metadata
2026-11-03 13:51:07 -04:00
Vũ Thế Huy 814232c43f feat(firehose): load Redshift COPY with temporary credentials of the stream role (#7337) 2026-11-03 13:49:06 -04:00
luiseterc f22d0409ac fix(eks): let guest kubelet own worker node registration (#7420)
* fix(eks): let guest kubelet own worker node registration

Honor an explicit image catalog capability on initial join and replay. Preserve simulated registration by default and retain join bookkeeping and listeners.

Closes floci-io/floci#7419

* test(eks): clean up the kubelet registration worker independently

Retain the launched instance ID and terminate it in the original account and region. Attempt worker, tracking and cluster cleanup independently and verify the worker reaches terminated state.
2026-11-03 13:23:21 -04:00
Ovidiu (Ovi) 3308ea2f1c feat(logs): add vended log delivery sources, destinations and deliveries (#7411) 2026-11-03 13:20:11 -04:00
Xavier H. 8c252ef0de fix(sns): deliver to HTTP endpoints over HTTP/1.1 (#7414)
The SNS HttpClient used the JDK default version, HTTP_2, so every http:// delivery carried an h2c upgrade offer (Connection: Upgrade, Upgrade: h2c), which AWS SNS never sends. Servers that accept the upgrade read an empty request body. Pin the client to HTTP/1.1, as HttpProxyInvoker already does.

Closes #7426
2026-11-03 12:52:11 -04:00
Andre Kurait dddc0b85cb fix(ec2): honor CreateRoute DryRun before mutation (#7424)
* fix(ec2): honor CreateRoute DryRun before mutation

Check CreateRoute DryRun before resolving or writing routes. Cover valid and missing NAT targets, signed IAM allow and revocation, rejected signatures, unchanged routes and normal creation through the SDK.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test: share AWS client key-pair configuration

Reuse AwsTestClients for caller credentials in EC2 DryRun and SSM ARN permission fixtures. Preserve explicit endpoints, signature rejection and authorization assertions.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-03 12:24:50 -04:00
Andre Kurait e97c4cc204 fix(elbv2): normalize forwarded Host from the client authority (#7416) 2026-11-03 11:49:44 -04:00
Ovidiu (Ovi) 2e47b9c571 feat(bedrock-agentcore): add the harness control plane (#7387)
* feat(bedrock-agentcore): add the harness control plane

CreateHarness, GetHarness, UpdateHarness, DeleteHarness, ListHarnesses and ListHarnessVersions were
unknown, so aws_bedrockagentcore_harness could not be created. Harnesses are stored per Region with a
name-<10 alphanumerics> id and settle in READY at once. Each update appends an immutable version, and
members a create leaves out take the defaults AWS fills in, including an AgentCore Runtime
environment named harness_<name>. Tags work on harness ARNs through the shared /tags route.

InvokeHarness moves into the new /harnesses controller unchanged: a request is matched against one
root resource class, so the data-plane controller rooted at / would no longer see /harnesses/invoke.

* fix(bedrock-agentcore): match a harness role ARN with AwsArnUtils.PARTITION_REGEX

* fix(bedrock-agentcore): serve InvokeHarness from a data-plane class of its own

InvokeHarness sat in the control plane's /harnesses controller, so it inherited its JSON-only
@Produces (an Accept: application/vnd.amazon.eventstream request was refused with 406) and was gated
by no service flag, since the controller was missing from ResolvedServiceCatalog.

It now has its own class rooted at /harnesses/invoke, the more specific root, registered with the
data plane, and the harness controller is registered with the control plane.

* refactor(bedrock-agentcore): share one random id suffix helper

The harness registry, and the memory, tools and gateway services before it, each carried their own copy
of the alphanumeric alphabet and the random suffix builder. One random(alphabet, length) and
randomAlphanumeric(length) in BedrockAgentCoreControllerSupport now serve all four; the gateway keeps
its lowercase alphabet for gateway ids.
2026-11-03 11:31:06 -04:00
Andre Kurait 58cd1ec758 fix(docker): confirm concurrent container removal (#7412) 2026-11-03 11:18:49 -04:00
Mohith 6386e8fd07 fix(cognito): reject non-integer MaxResults in auth event and WebAuthn listings (#7418) 2026-11-03 11:14:40 -04:00
Francisco Javier Barón ac0662ae9d fix(controltower): serve tags for landing zones and enabled controls (#7403) 2026-11-03 10:43:20 -04:00
Murtuza Chhil 648d363102 feat(paymentcryptography): the key algorithms of the control plane (#7395) 2026-11-03 10:35:43 -04:00
Mohith 537e042482 feat(cognito): support AdminListUserAuthEvents (#7404)
Record SignIn events for USER_PASSWORD_AUTH, ADMIN_USER_PASSWORD_AUTH,
ADMIN_NO_SRP_AUTH and USER_SRP_AUTH on pools with the Plus feature plan
and threat protection in AUDIT or ENFORCED mode, and list them newest
first with MaxResults and NextToken paging. Other pools get
UserPoolAddOnNotEnabledException. A wrong password is Fail, a sign-in
interrupted by a challenge stays InProgress until it ends in tokens, and
no EventRisk is reported since Floci performs no risk evaluation.

Events are matched to their pool and user by the stored owner, not the
key prefix alone, and a sign-in that ends after its user is deleted
records nothing.

Closes #6137
2026-11-03 10:34:39 -04:00
Vũ Thế Huy e82fa60617 feat(redshift): read a Parquet column missing from a partition's files as NULL (#7406) 2026-11-03 10:29:39 -04:00
Andre Kurait 240193e624 fix(cloudformation): apply IAM role session duration (#7405) 2026-11-03 09:31:36 -04:00
Simon Claessens e02b91714d fix(rds): restore a postgres snapshot on an image that creates a template database at startup (#7394)
* fix(rds): restore a postgres snapshot on an image that creates a template database at startup

* test(rds): clean up the template restore test's instances and snapshot even when it fails

* test(rds): build the template restore test's requests with RdsRequests
2026-11-03 09:28:51 -04:00
Andre Kurait b9a22d55c8 fix(eventbridge): isolate replay request context (#7409)
Run archive replay in a fresh duplicated Vert.x context seeded from its own account and region, so the initiating request ending cannot invalidate delivery. Ordering, cancellation and ARN parsing are unchanged.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-03 09:12:57 -04:00
Ovidiu (Ovi) 93cc09cf7e fix(apigateway): keep a REST API's apiKeySource and honor AUTHORIZER (#7382) 2026-11-03 08:39:29 -04:00
syedali032-creator 25780c051e feat(stepfunctions): support workflow variables in JSONPath states (#7106) 2026-11-03 08:32:00 -04:00
Ovidiu (Ovi) d7797bf56d feat(redshift): add PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy (#7361)
* feat(redshift): add PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy

aws_redshift_resource_policy could not be created: the provisioned Redshift API had none of the three operations. They now take the ARN of a Redshift Serverless namespace or a provisioned cluster, the targets of a zero-ETL integration, matched exactly in the caller's account and Region. The policy is kept on its namespace or cluster, so it goes with the resource, and is stored and echoed, not evaluated.

* feat(redshift): return resource policies and their errors as AWS does

Checked against AWS with read-only GetResourcePolicy calls: a stored policy comes back with Version and
Statement first and each statement's Effect, Principal, Action, Resource and Condition first,
pretty-printed, so it is now stored in that form. A namespace that does not exist answers "The requested
namespace doesn't exist."; an ARN in another Region, a namespace id that is not a UUID and an ARN of any
other resource type are InvalidParameterValue with AWS's messages, not UnsupportedOperation.

Adds an SDK compatibility test for the three operations.

* fix(redshift): keep a namespace's resource policy across updates

The Namespace copy constructor, used by tagging, untagging and UpdateNamespace, did not copy the
resource policy, so any of them dropped it. findClusterByArn now reads the ARN through AwsArnUtils.

Without a Version, GetResourcePolicy reached Elastic Load Balancing, which defines the name but does
not serve it; it now goes to Redshift.

* fix(redshift): refuse an empty resource policy before looking the resource up
2026-11-03 08:27:03 -04:00
Daniël van Ziel 52055b774e fix(codedeploy): answer ApplicationNameRequiredException when applicationName is missing (#7392) 2026-11-03 08:25:53 -04:00
Ronald Li 🛠️ d0747f26d1 feat(cloudformation): provision Cognito user pool identity providers (#7350) 2026-11-03 08:21:09 -04:00
TATSUNO “Taz” Yasuhiro 121dc22563 fix(dynamodb): refuse an empty attribute name in a TransactWriteItems item, key or value (#7389) 2026-11-03 08:20:20 -04:00
noy-solvin 886f626b4d fix(elasticache): enforce IAM auth engine version, TLS, and user constraints (#6502)
Enforce ElastiCache IAM authentication's engine version floor (Redis OSS 7.0, Valkey 7.2), in-transit encryption and IAM user ID rules on create and modify, and refuse an AuthToken with TransitEncryptionEnabled=false. TransitEncryptionEnabled no longer implies IAM authentication.

Refs #4502
2026-11-03 08:15:21 -04:00
Niels Kootstra 70a185a3aa fix(cloudformation): delete a stack whose create is still running only once the create stops (#7358)
* fix(cloudformation): delete a stack whose create is still running only once the create stops

* fix(cloudformation): leave a deferred delete to the execution it waits on and report its failure

* fix(cloudformation): refuse a new execution once a delete has been deferred

* test(cloudformation): wait for stack statuses with the shared CfnStackWaits helper
2026-11-03 08:06:48 -04:00
Jimmy Liu Jia 525d48dede fix(route53): assign distinct nameservers to delegation sets (#7373) 2026-11-03 07:57:23 -04:00
Hector Ventura 4933126314 fix(dynamodb): name the partition key in a PartiQL INSERT's own condition (#7381) 2026-11-03 07:50:52 -04:00
Andre Kurait 16704ff32b fix(s3): resolve ResourceAccount conditions from the bucket owner (#7372)
* fix(s3): resolve ResourceAccount conditions from the bucket owner

* fix(s3): generate ResourceAccount action coverage

Read s3:ResourceAccount support from the Service Reference action table and carry each evaluated action into shared signed-request and service-call context. Preserve resolved bucket ownership, existing request tag coverage and SDK session-policy regressions. Reuse AwsTestClients for IAM and STS fixtures.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-02 23:52:33 -04:00
Andre Kurait 7bac1e356a fix(duck): forward stop signals through container init (#7371)
Reuse the existing container init option so the duck server receives SIGTERM instead of waiting for Docker to force-kill PID 1. Preserve the configured URL path and the existing stop timeout.

Signed-off-by: Andre Kurait <akurait@amazon.com>
2026-11-02 23:14:46 -04:00
Hector Ventura e872bdc308 refactor: rebuild the SSO Admin instance ARN through AwsArnUtils and share the ACM id cut (#7370) 2026-11-02 22:30:52 -04:00
Jackson Price c0906b88d0 fix(cloudformation): preserve concurrent KeyPair parameter writes (#7367)
* fix(cloudformation): preserve concurrent KeyPair parameter writes

* refactor(cloudformation): share tracked resource sets

Signed-off-by: Jackson Price <jxnprice@amazon.com>

---------

Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-11-02 22:27:40 -04:00
Jimmy Liu Jia 7b07cee8c6 fix(rds): roll back failed standalone instance creation (#7283)
* fix(rds): roll back failed standalone instance creation

* fix(rds): serialize failed standalone rollback with deletion

* refactor(rds): share rollback suppression and assert monitor wait

* test(rds): reuse blocked-thread wait helper
2026-11-02 22:25:10 -04:00
Andre Kurait 918c57a64e fix(dynamodb): authorize ListTables against its regional collection (#7336)
* fix(dynamodb): authorize ListTables against its regional collection

* test(dynamodb): reject ListTables authorization through ignored selectors

* fix: generate the DynamoDB ListTables request resource

Record the measured table collection as a generated correction and dispatch table-owned operations before hand-built fallbacks. Preserve batch, transaction and PartiQL resource extraction.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-02 22:24:56 -04:00
Andre Kurait e09ca1abe5 fix(autoscaling): match AWS capacity target validation errors (#7344)
* fix(autoscaling): match AWS capacity target validation errors

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* fix(autoscaling): align sparse target error expectation

Preserve sparse-index and rejected-update state assertions while matching the capacity-target validation message.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

* test: reuse shared clients for capacity target validation

Use AwsTestClients for both SDK clients while retaining the account, region, error matrix and rejected-update state assertions.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>

---------

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-02 22:14:15 -04:00
Vũ Thế Huy a93de121ae feat(redshift): read S3 as the access keys a COPY names (#7334) 2026-11-02 21:37:08 -04:00
TATSUNO “Taz” Yasuhiro b0721f9795 fix(dynamodb): report the token and the text near a condition syntax error (#7360)
* fix(dynamodb): report the token and the text near a condition syntax error

* fix(dynamodb): add braces to the digit token loop
2026-11-02 21:31:19 -04:00
Ovidiu (Ovi) d74a084a61 feat(opensearch): report VPC domains under Endpoints.vpc and emulate VPC endpoints (#7351) 2026-11-02 21:28:13 -04:00
TATSUNO “Taz” Yasuhiro 055036508e perf(core): drop per-request lookups and allocations on the shared request path (#7323)
* perf(core): drop per-request lookups on the shared request path

Every request resolved the EmulatorConfig and ResolvedServiceCatalog CDI
beans again in the claim, account and signature filters, fetched the
RequestContext through Instance.get() on each storage operation, built a
URI for the Host even when the header was present, formatted the Date
header from scratch, and let CloudTrail copy its key set to find no
trails.

The filters resolve config and catalog once. AccountAwareStorageBackend
and RegionResolver keep the RequestContext client proxy. RequestHost reads
the Host header before it touches the URI. The Date header is cached per
second as one immutable pair. StorageBackend gets isEmpty(), which every
in-memory map implements directly, and emitS3DataEvent returns at once
when no trail exists.

* perf(core): read the query map once and mint request ids without SecureRandom

AccountContextFilter asked UriInfo for the query parameters up to six
times per request, and each call builds a new map wrapper. It now reads
them once and hands the map to its helpers.

AwsRequestIdFilter drew its UUID from SecureRandom. A request id is not a
secret, so it is now a version 4 UUID built from ThreadLocalRandom, with
the same format and the same single id in all three headers.

* perf(core): scope AccountAwareStorageBackend.isEmpty to the current account

keys() and scan() only see the current account, so isEmpty() now
answers for that account too. A delegate with no entries at all still
answers without copying its key set.

* chore(cognito): give the sign-up scope test one request context that follows the calling thread

AccountAwareStorageBackend keeps the RequestContext it gets from the
Instance, as the request scoped client proxy forwards to the current
request. The test handed out a different context per get() call from a
ThreadLocal, so the kept one pinned both threads to the first account.
It now hands out one context whose account id follows the thread.
2026-11-02 21:14:52 -04:00
Ovidiu (Ovi) 6abdb4cc44 feat(redshift): take a DynamoDB table and a Serverless namespace in zero-ETL integrations (#7332)
* feat(redshift): take a DynamoDB table and a Serverless namespace in zero-ETL integrations

CreateIntegration took only a DynamoDB stream ARN as SourceArn and a provisioned cluster ARN as
TargetArn. AWS takes the table ARN and a Redshift Serverless namespace ARN (its model allows no
cluster: ARN), so a Terraform aws_redshift_integration written for AWS failed to create.

Both AWS forms are now accepted and the original ones are kept. A missing table is
IntegrationSourceNotFoundFault and a missing namespace IntegrationTargetNotFoundFault, as the API
reference lists. A namespace is written through its workgroup into the namespace's database. A
table source reads changes from the table's latest stream, following one turned on after the
integration was created.

Stream records never landed: the writer bound ApproximateCreationDateTime as an Instant, which the
PostgreSQL driver refuses, so only backfilled items reached the landing table. It now binds an
OffsetDateTime as TIMESTAMPTZ.

* fix(redshift): drain a table's replaced stream and match the source table ARN

A table source moved to the table's latest stream as soon as it changed, dropping records the old
stream still held, and moved to no stream when DynamoDB Local reported none for a table whose streams
were turned off. It now reads the followed stream until a read comes back empty, or until the stream
has expired, before moving, keeps it while the table reports no stream, and persists the move.

A source table ARN was resolved by its table name alone, so a table of another account, or an ARN
with more after the name, was taken for the caller's table of that name. The resolved table must now
have the supplied ARN. The docs no longer promise IntegrationSourceNotFoundFault for a missing stream.

* test(redshift): use the shared Docker probe and Query request helpers in the zero-ETL test
2026-11-02 21:13:21 -04:00
Jimmy Liu Jia 56efb188b1 fix(appsync): reject regex literals without misreading division (#7343) 2026-11-02 21:01:48 -04:00
Priamo Germosen b63e4a5bb9 test(emr): run steps and job runs through the Docker runner (#7349)
No EMR test ran a step or a job run through Floci's Docker runner: the
runner's wrappers and settings were unit tested and run by hand in the
images. EmrDockerRunnerDockerIntegrationTest, a Docker-gated
@QuarkusTest on ContainerDataPlaneProfile (which now sets both runner
modes to docker), runs them for real in the emr-7.5.0 image, reaching
Floci's S3 from the container:

- a hadoop-streaming word count step, its mapper and reducer from S3,
  writing its counts to S3;
- the same word count as a custom JAR at EMR's streaming jar path;
- s3-dist-cp from S3 into the cluster's HDFS and back;
- a cluster's spark-env export, read by a Spark step's driver;
- an EMR Serverless run on the user guide's virtual environment recipe,
  spark.archives with #environment and the driver's and executors'
  Python in it, from an archive that needs no package index.

EmrRequests.awaitStep and EmrServerlessRequests' createSparkApplication,
startJobRun and awaitJobRun are shared helpers, each wait checking that
its call answered 200 before reading the state, and
RetryingTarCopier.putEntry, pulled out of singleFileTar, writes the
archive's entries. The CI prefetch queues the 3.5 GB image for the
shard that runs the class, last, behind the Lambda runtimes, and the
prefetch results step no longer warns about an EMR Serverless image on
ECR Public, the only place AWS publishes them.
2026-11-02 17:31:59 -06:00
Priamo Germosen cfd7e83776 fix(glue): let the Glue catalog client read back tables and partitions (#7329)
The Glue Data Catalog client, which Spark's Glue catalog and Hive's
Glue metastore use on EMR, could not read back a table it had just
created on Floci: "NullPointerException: Cannot invoke
java.lang.Integer.intValue() because the return value of
Table.retention() is null". Floci's Table had no Retention, and its
StorageDescriptor no StoredAsSubDirectories, SortColumns, BucketColumns,
SkewedInfo or AdditionalLocations, so what the client wrote was
dropped, and the client unboxes Retention, Compressed, NumberOfBuckets,
StoredAsSubDirectories and an Order's SortOrder without a null check.
Past that, a partitioned table came back with each partition, and so
each row, five times: the client reads a table's partitions in five
GetPartitions segments by default, and Floci answered every segment
with all of them.

Now:

- Table keeps Retention and IsRegisteredWithLakeFormation, and
  StorageDescriptor keeps AdditionalLocations, BucketColumns,
  SortColumns, SkewedInfo and StoredAsSubDirectories, and the table and
  descriptor copies carry them.
- every table and partition a catalog action returns (GetTable,
  GetTables, SearchTables, GetTableVersion, GetTableVersions,
  GetPartition, GetPartitions, BatchGetPartition) reads Retention as 0,
  IsRegisteredWithLakeFormation as false, and a storage descriptor's
  Compressed, NumberOfBuckets, SortColumns and StoredAsSubDirectories
  as false, 0, an empty list and false when they were written without
  them, as the CLI reference's get-tables output shows Glue doing. The
  stored records keep their nulls: Spectrum reads a partition's missing
  Compressed as its table's.
- GetPartitions honours Segment, "a non-overlapping region of a
  table's partitions": a partition is in the one segment its values
  hash to, a SegmentNumber past the last holds none, and TotalSegments
  outside 1 to 10, a negative SegmentNumber or a missing member is a
  ValidationException, and a member that is not an integer a
  SerializationException.
- a SortColumns entry that is null, lacks Column or SortOrder, or has a
  SortOrder other than 0 or 1 fails the whole CreateTable, UpdateTable,
  CreatePartition, UpdatePartition, BatchCreatePartition or
  BatchUpdatePartition with a ValidationException before anything is
  stored, as the client unboxes SortOrder on read.

- the EMR runner gives the client the job's account as its
  hive.metastore.glue.catalogid, on a cluster and in an EMR Serverless
  run. Given none, the client in emr-7.10.0 asks STS GetCallerIdentity
  for it through an STS client no setting points at Floci, so a step
  reached real AWS STS and failed. The job's own account is what an
  unset one means, and a cluster's spark-hive-site or a run's
  spark-defaults one, for a Data Catalog in another account, still wins.

IsRegisteredWithLakeFormation is always false, as Floci does not tie a
table to a location registered with Lake Formation.
2026-11-02 17:31:48 -06:00
Priamo Germosen 0e9f3402f2 docs(iam): name the one omitted member the capture covers (#7331)
docs/services/iam.md and IamValidationErrors read as if the capture that
moved IAM's required-member message settled it for every member. It settled
one: an omitted Status, answered from a real account on 2026-10-31 as "Value
at 'status' failed to satisfy constraint: Member must not be null" against
the shape the four credential operations share.

Every other omitted member this service answers, the sites checked by hand
and each required member the model walk reads, carries that form on this
service's reading rather than on a recording: the word null was never a
value AWS sent, an absent member having none to carry. The doc separates the
two and keeps that reasoning, IamValidationErrors says the capture covers
Status alone where the form is decided, and the account-properties test,
which quoted the Status capture beside an assertion on an omitted properties
map, says the reading is what carries over there.

Prose and comments only, no behavior change. Follow-up to #7265.
2026-11-02 17:31:36 -06:00
Allen Sanborn 1f0b4cffca fix(backup): return the deleted plan's id, ARN, version and deletion date from DeleteBackupPlan (#7276) 2026-11-02 16:05:30 -04:00
Matheus Oliveira be696ff51d fix(servicequotas): filter ListServiceQuotas by QuotaAppliedAtLevel (#7238) 2026-11-02 15:08:13 -04:00
Niels Kootstra d44e96eab8 fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt (#7335)
* fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt

GetParameter, GetParameters, GetParametersByPath and GetParameterHistory
returned a SecureString's plaintext whether or not the request set
WithDecryption. AWS encrypts the value with KMS on PutParameter, under the
parameter's key with the PARAMETER_ARN encryption context, and returns
that ciphertext unless the read asks for decryption.

PutParameter now encrypts a SecureString with Floci's KMS and stores the
ciphertext with the version, so every read of a version returns the same
value and KMS Decrypt with the parameter's ARN as context returns the
plaintext. A key KMS cannot use, a value over KMS's 4096-byte limit, and
a version stored before this change are still returned unencrypted.

* fix(ssm): log a SecureString stored without a ciphertext and keep the at-rest note

* fix(ssm): say how AWS encrypts Advanced SecureStrings and reuse the shared test client
2026-11-02 15:07:34 -04:00
Allen Sanborn cb093f87cb fix(elb): assign the VPC default security group to a Classic load balancer created without one (#7100) 2026-11-02 14:50:12 -04:00
Charles Swanberg fccc81b61d fix(s3): place the encryption condition keys on a put, and on a part from its upload (#7050)
* fix(s3): place the encryption condition keys on a put, and on a part from its upload

A policy on s3:x-amz-server-side-encryption or
s3:x-amz-server-side-encryption-aws-kms-key-id read neither key, so a Deny under a
negated operator refused every put, encrypted or not.

A PutObject, CopyObject or CreateMultipartUpload now carries both from its headers, each
value as sent, in the enforcement filter and in S3's own bucket policy check. A part or a
completion sends neither header and carries what its upload recorded when it was created.
A part naming an upload not held answers NoSuchUpload, as S3 does under such a policy.

* fix(s3): check as an object write a PUT or POST naming an upload but not routed as a part

The enforcement filter let through a request naming an upload not held, and judged one
naming a held upload by that upload's encryption, on uploadId alone. A PUT with no
partNumber, or a POST asking for a new upload, creates an object or an upload whatever
that parameter says, so it skipped IAM or read the wrong encryption. Both now match the
routes S3Controller takes as a part or a completion. A part copy naming an upload not held
stays checked, since it names a source.

* test(s3): put the multipart encryption cases beside kmsOnlyBucket

The multipart cases copied S3BucketPolicyEnforcementIntegrationTest's two-statement KMS-only policy
and BUCKET_KEY. They now sit beside kmsOnlyBucket and reuse it, with the policy written once
(putKmsOnlyPolicy). The two cases whose upload is opened before the policy stands use a bucket with
no default encryption, as before: S3 records the bucket's default on an upload that asks for none,
where Floci records only what the request asks for.
2026-11-02 14:46:31 -04:00