Commit Graph
860 Commits
Author SHA1 Message Date
Vũ Thế Huy 7a98f47742 feat(redshift-serverless): export the audit logs of a namespace to CloudWatch Logs (#8333) 2026-11-15 19:54:04 -04:00
Priamo Germosen 92a61c2b86 fix(s3tables): check S3 Tables requests under IAM enforcement (#8424)
Under IAM enforcement no S3 Tables request was checked: its model was
not among the vendored REST routes and its namespace's request
resources were not read, so no request mapped to an action and every
call went through, DeleteTableBucket and the policy calls included.

s3tables is now vendored by regen_rest_routes.py and read by the
request-resources, tag-on-create and passed-role generators. A table
bucket call is checked on the bucket its path names. A table's ARN ends
in an id the service mints, which no request carries: a request names
the table by its table bucket's ARN, its namespace and its name. A new
generic rule in the request-resources generator reads such a type,
found by its service by those path labels (or GetTable's query string
members, when tableArn is absent), instead of filling the bucket's name
from the table's name or reading the bucket's ARN as the table's.
S3TablesStoredResourceArns answers it from the stored table, read only.
2026-11-15 10:47:17 -04:00
Vũ Thế Huy 0de78cafb1 feat(redshift-serverless): rotate the managed admin password of a namespace (#8393) 2026-11-15 09:32:38 -04:00
Murtuza Chhil ff467b2e09 feat(paymentcryptography): the AS2805 key cryptogram (#8172)
ExportKey and ImportKey take an As2805KeyCryptogram: a TDES key leaves and
comes back under a TR31_K0 TDES key encryption key, bound to one of the
four AS2805 variants. The cryptogram carries a tag over the whole of it,
made under a key derived from the wrapping key and checked before anything
is decrypted, and the key's ANSI X9.24 check value, which the import
compares. A wrapping key that is not K0, not TDES or weaker than the key is
refused, as is a variant that does not match the key's purpose.

Bytes holds the concat, PKCS#7 padding and isHex the payment cryptography
classes kept copies of, and the SDK and CLI compatibility tests cover the
round trip and its refusals.
2026-11-15 08:44:38 -04:00
Rashen Anupama adfe173764 fix(s3): preserve bucket tags in TagResource (#8441) 2026-11-15 08:31:25 -04:00
Kenshin Okinaka 2cb54dad8f fix(ses): validate the SNS topic of an event destination (#8275) 2026-11-14 23:15:25 -04:00
Vũ Thế Huy 2d85e4ea3b feat(redshift): restore a single table from a snapshot (#8290)
Add RestoreTableFromClusterSnapshot and DescribeTableRestoreStatus for
provisioned clusters, and RestoreTableFromSnapshot, GetTableRestoreStatus
and ListTableRestoreStatus for Redshift Serverless. The table's CREATE TABLE
statement and rows are lifted out of the snapshot dump, renamed, and
replayed in one transaction. The restore runs inside the request, so a
described request is already SUCCEEDED or FAILED.

The name checks, script, pending copy, replay and status of a table restore
live once in RedshiftTableRestorer, and both services keep only their
lookups and storage. ListTableRestoreStatus answers a bad nextToken with
InvalidPaginationException. A Docker backed integration test writes rows,
snapshots, restores under a new name and reads them back, connecting through
RedshiftConnections, and the Redshift compatibility tests share one
TestFixtures.awaitRedshiftConnection.

Closes #7806
2026-11-14 20:43:18 -04:00
Kenshin Okinaka 4373e83af1 fix(ses): align export job lookup and cancel with SES (#8385)
Probed against SES on 2026-11-14:

- GetExportJob and CancelExportJob answer 404 NotFoundException
  "Job ID: <id> not found" for an unknown id shaped like a UUID, and keep
  400 "Invalid JobId" for any other id.
- CancelExportJob on an already cancelled job succeeds instead of being
  refused. A completed job is still refused.
- A cancelled job no longer gains a CompletedTimestamp.
- GetExportJob always returns the Statistics structure, empty until a
  record count exists.

The probe used one random UUID and one plain word, so the canonical UUID
form is Floci's reading of where SES separates the two errors.
2026-11-14 19:50:33 -04:00
Vũ Thế Huy d08c241d98 feat(redshift): scheduled actions that pause and resume provisioned clusters (#8260) 2026-11-14 13:28:06 -04:00
Yang Hao 5f03ff975d feat(account): implement GetContactInformation and PutContactInformation (#8262) 2026-11-14 01:04:49 -04:00
Murtuza Chhil 4cd8ab991e feat(paymentcryptography): the TR-34 key block (#8136)
* feat(paymentcryptography): the TR-34 key block
* fix(paymentcryptography): the rules a TR-34 key block has to follow
* docs(paymentcryptography): what a TR-34 key block is
* test(paymentcryptography): the TR-34 round trip shows the key that came back
* test(paymentcryptography): one exchange for the TR-34 tests
* fix(paymentcryptography): the nonce and the token a TR-34 import names
* docs(paymentcryptography): the nonce and the token a TR-34 import names
* fix(paymentcryptography): a TR-34 key block is read whatever follows it
* fix(paymentcryptography): a TR-34 header carries the optional blocks
* chore(paymentcryptography): the imports of the round-trip test in order
* fix(paymentcryptography): the TR-34 header is the reference's header
* fix(paymentcryptography): the TR-34 header, stale comments
* fix(paymentcryptography): the TR-34 comments match the code
2026-11-13 23:10:35 -04:00
Kal Cramer f1a6260a94 feat(cloudformation): add AWS::EFS::FileSystem, MountTarget and AccessPoint (#8074)
A template can now create the three EFS types. They are provisioned
through EfsService, so a stack and a direct API call see the same
file systems, mount targets and access points.

- Ref and Fn::GetAtt resolve for every type.
- Updates change ThroughputMode, ProvisionedThroughputInMibps,
  BackupPolicy, LifecyclePolicies, FileSystemPolicy,
  FileSystemProtection and tags in place; create-only properties
  replace the resource, and a failed update puts back what it changed.
- Backups are off on create unless BackupPolicy is ENABLED or the file
  system is One Zone, and ThroughputMode provisioned requires
  ProvisionedThroughputInMibps.
- Required properties are validated from the registry schema.

Ref #7972
2026-11-13 16:30:10 -04:00
Jackson Price 44eb096ed5 fix(appsync): require definition and format when creating types (#8157) 2026-11-13 15:42:57 -04:00
Priamo Germosen 9b24a38afe fix(iam): hold every policy document a write is handed to being a policy (#8175)
Seven writes take an IAM policy document and every one of them models
MalformedPolicyDocument, "the request was rejected because the policy document was
malformed". None of them answered it, so a document that was no policy at all was
stored and told apart only later, when something tried to decide with it. A role's
trust policy was the sharpest case: the trust evaluator reads a document it cannot
parse as matching nothing, so a role written that way could no longer be assumed.

The reading goes in IamService rather than at the Query front door, for two reasons.
Three CloudFormation provisioners write these documents straight through the service
and would otherwise be held to nothing. And the order AWS answers in differs per
operation, which only the service can express: CreateRole, CreatePolicy,
CreatePolicyVersion and UpdateAssumeRolePolicy read the document before the name
clash or the entity lookup, where PutUserPolicy, PutGroupPolicy and PutRolePolicy
answer NoSuchEntity for a holder that is not there whatever document the request
carried.

Which reading an operation asks for follows what the document is. A trust policy is
held to the grammar alone and under its own validator's wording, "This policy
contains invalid Json" for a text that does not parse as a JSON object and "Policy
has no statements" for an object carrying no Statement, the element the grammar
requires; its statements name a principal rather than resources, so an identity
statement's elements are not asked of it. An inline policy is held to that grammar
under the identity validator's one sentence for both, "Syntax errors in policy.",
and to the values the language defines: a Version outside 2012-10-17 and 2008-10-17,
an Effect that is not literally Allow or Deny, and a resource named neither by ARN
nor by the wildcard. A managed policy is held to those and to each statement's own
elements, "Policy statement must contain actions." and "Policy statement must
contain resources.".

None of those sentences is published and none is captured. They are the ones AWS's
own emulator answers, a first-party implementation rather than a recording, and the
split between the two validators' wordings is its reading too, which
docs/services/iam.md records.

The grammar is read in one place, not two. #8164 landed
IamPolicyEvaluator.readsAsPolicyDocument for a document a request supplies to the two
simulators or the two context-key readers, which asks exactly what the writes ask of
the top level: parses as a JSON object, and carries Statement. The writes need to know
which of the two failed in order to word their refusal, so the reading lives here and
that method is now its boolean face rather than a second copy of it.

Putting a document back is not a new write. A failed CloudFormation update restores
the trust policy, the inline policy or the policy version it captured before the
attempt, and a document an earlier release accepted must not be refused on the way
back: that would leave the role or the policy without what the rollback had just
removed, and the stack unable to roll back at all. So those three writes keep the
reading on their public entry point and the provisioners restore through
restoreAssumeRolePolicy, restoreRolePolicy and restorePolicyVersion, which apply the
same write without it. The inline-policy provisioner already restored by writing the
captured document straight back, so it needed nothing. This is the same rule as
reading a stored document exactly as it was, applied to the one path that writes one.

The whole text has to be the document. A member taking one takes "the complete, valid
JSON text of an IAM policy", and Jackson reads the first value and stops unless it is
told otherwise, so an object with anything after it parsed as a policy. The reader
enables FAIL_ON_TRAILING_TOKENS, which is what the reference implementation's parser
does by construction.

A null document is nothing to judge: a required member the request leaves out is
answered as absent by the constraints ahead of the operation. What is already stored
is read exactly as it was, so a document an earlier version accepted still decides
what it decided.

Holding every caller means holding the fixtures too, the compatibility suites
included: a Python and a Java SDK test each wrote an inline policy carrying only
Version, and two roles in the EKS access-entry test were created with a trust policy
of {}. All three are documents IAM refuses, the first two being the case recorded for
a document that is valid JSON carrying only Version.

Holding every caller means holding the fixtures too. Filler documents across the test
tree, "{}" as a trust policy chief among them, were documents real AWS refuses; they
now come from one place, io.floci.aws.testing.IamTestPolicies, which also answers a
distinct document per marker for a test that needs several. Two fixtures changed in
substance rather than in spelling: a Step Functions policy meant to name another
event bus named it by bare name, which an identity policy may not, and a managed
policy version's statements named no action.
2026-11-13 00:18:02 -04:00
Vũ Thế Huy 315367f21f feat(redshift): share a cluster snapshot with another account (#8077)
AuthorizeSnapshotAccess and RevokeSnapshotAccess record the accounts that may restore a
manual, available snapshot. The snapshot reports OwnerAccount and AccountsWithRestoreAccess,
DescribeClusterSnapshots takes an OwnerAccount filter that lists only what the owner shared
with the caller, and RestoreFromClusterSnapshot takes an OwnerAccount (or a SnapshotArn of
another account) and restores a shared snapshot from the owner's dump. A snapshot that is not
shared is refused with AccessToSnapshotDenied, and the grant does not outlive the snapshot.

IAM takes generated data only, so the RestoreFromClusterSnapshot correction is replaced by two
rules in regen_iam_request_resources.py. A top-level request member whose name ends in Account
gives the account of each type whose botocore structure has that same member: Snapshot has
OwnerAccount and Cluster does not, so the snapshot moves to the owner's account and the restored
cluster stays the caller's. Of several members that could fill a variable, one naming the type
before the variable wins over a bare one, so the snapshot's ClusterName comes from
SnapshotClusterIdentifier rather than ClusterIdentifier.

Across every operation the rules change only that entry, which also gains DefaultIamRoleArn and
RedshiftIdcApplicationArn as ARN rows that never match a cluster or snapshot, and CloudFront's
GetInvalidationForDistributionTenant, whose tenant is now filled from DistributionTenantId rather
than the invalidation's Id.

The handler's SnapshotArn check now resolves the partition through RegionResolver, as the
service's Region check does, so a Region outside the known partitions cannot make the two
disagree.
2026-11-12 23:34:54 -04:00
Murtuza Chhil 7c138ce3f1 fix(paymentcryptography): the list of keys answers with their summaries (#8135)
The model's KeySummary holds the identifier, the state, the attributes, the
check value and the two flags, and not the whole key. The list answered with
the whole key, so it carried the timestamps and the origin that a summary
does not hold.

The list answers with the summary now, and the whole key stays the answer of
the operation that names one key.

The control plane's answers are driven through a real SDK and through the AWS
CLI, so the wire format of the operations the summary fix touches is the one
the clients read.

The certificate of a key pair, a tag that is added and removed, a key pair
that keeps the usage its derived keys have, the RSA cryptogram the key
exchange serves, the key the two parties agreed, and the timestamps the
answers carry.

The page said the member was read and checked. Nothing reads it: the shape
check is what checks it, against the range the model states.

The page said each key in the list is the whole key rather than the summary the
model names, which the change that answers with the summary makes untrue. The
page says what a listed key carries now.

The round trip through the RSA cryptogram asserted the ARN of the key that
came in and the usage it was given, which a wrong key of the same usage would
also pass. It compares the check value with the exported key's, so the test
shows that the same key came back.

The key that came in was not added to the list the cleanup walks, so it was
left in the service when the class finished. It is added now.
2026-11-12 22:10:28 -04:00
Jackson Price c0ef5b2bfd fix(appsync): require a format for type updates (#8149) 2026-11-12 16:17:42 -04:00
jwoa95 5da8045bb2 fix(cognito): reject undeclared custom user attributes (#7994) (#8124) 2026-11-12 14:04:51 -04:00
jwoa95 df1d850d71 fix(rds): apply minor engine upgrades to backing databases (#8089)
Closes floci-io/floci#8007

Persist whether a standalone instance has never initialized its database. Protect engine versions before backend startup so runtime loss and proxy failures cannot expose existing storage to a metadata-only version change. Update SDK compatibility assertions to reject unsupported upgrades and verify resizing separately.

Apply supported minor upgrades using the version-specific image on the existing volume and endpoint. Keep major upgrades, downgrades, and pinned-image changes blocked before mutation. Preserve the never-started case, report failed restarts honestly, and restore successful minor-upgrade coverage in the Java SDK compatibility suite.
2026-11-12 09:37:43 -04:00
Jackson PriceandAndre Kurait 08d7ca5b4d fix(glue): preserve existing partitions on duplicate creation (#8100)
* fix(glue): preserve existing partitions on duplicate creation

Reject CreatePartition for values already stored in the table before
mutating partition metadata. Keep the existing BatchCreatePartition
error and allow explicit updates through UpdatePartition.

Port the independent duplicate check and regression from
AndreKurait/floci commit f6905c8ced6c21fd9aeca013beb4ac511e5c1469.
Add SDK coverage for single and batch creation, preserved metadata,
per-item batch errors, and subsequent explicit updates.

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* fix(glue): serialize concurrent partition creation

Synchronize single and batch creates so duplicate detection and writes share
one service critical section. Cover all four concurrent single/batch combinations,
preserving the first metadata and per-item batch errors.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(glue): isolate catalog fixtures from Athena readers

Share the existing floci-duck resource lock with Athena and Firehose tests.
Their catalog setup must not read temporary Glue metadata whose S3 locations
are placeholders while the catalog test is running.

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <akurait@amazon.com>
2026-11-12 09:19:57 -04:00
Murtuza Chhil 77d73ee4b7 feat(paymentcryptography): the key exchange, with TR-31, RSA-OAEP and ECDH (#7862) 2026-11-12 08:59:48 -04:00
galsuchetzky-act f2a0bfce4e fix(bedrock-agentcore): use runtime IDs and endpoint names in ARNs (#8088)
* fix(bedrock-agentcore): use runtime IDs and endpoint names in ARNs

Keep runtime ARNs stable across versions and use the parent runtime ID and endpoint name for endpoint ARNs. Update API responses, ARN lookups, tagging dispatch and CloudFormation references together.

* fix(bedrock-agentcore): preserve legacy and harness runtime lookups
2026-11-12 08:17:29 -04:00
Jimmy Liu Jia d0d0e0eef8 fix(codedeploy): preserve deployment group creation tags (#8025) 2026-11-11 11:08:16 -04:00
dgl-aiandDavid Guardiola b144879127 feat(xray): serve traces, summaries, the service graph and sampling (#7733)
X-Ray is the one AWS service local stacks ask for and Floci does not have: SQS
and SNS already carry AWSTraceHeader, and nothing on the other end accepts the
segments that header points at. This serves the ingest loop, the summaries that
read it back, the service graph a console draws from it, and the sampling the
X-Ray daemon polls on its own timers.

The API is REST JSON on literal paths (/TraceSegments, /Traces, /TraceSummaries,
/ServiceGraph, /TraceGraph, /GetSamplingRules, ...), which S3's path-style routes
would swallow as a bucket name, so a request signed for the xray credential scope
is rewritten onto an internal prefix and every other request keeps its path. Only
the paths Floci serves are claimed.

What Floci stores is the segment document as sent: BatchGetTraces has to answer
exactly what PutTraceSegments accepted, so re-serialising through a model would
change what the caller reads. The summaries and the graph parse those documents
on read, which keeps the stored bytes the caller's and costs nothing while a local
stack is idle.

A filter expression is parsed, not pattern-matched: service("name"), hasError,
hasFault, hasThrottle, duration, responsetime, http.status, annotation.key,
comparisons, AND, OR, NOT and parentheses. Anything outside that set is refused
with InvalidRequestException naming what it could not read, because accepting a
filter and ignoring half of it hands a caller a superset and looks like a pass. A
lone '!' is refused the same way rather than left as a delimiter no branch
consumes, and responsetime is compared in seconds, the unit AWS uses.

The graph collapses segments into services by name, derives edges from parent ids,
and reports AWS's SummaryStatistics and cumulative DurationHistogram per node and
per edge. A node is a service, not a document shape: the same service seen once
with an http block and once without is one node.

Sampling answers the Default rule AWS serves in every Region, so a daemon has
something to sample at before any rule exists, and five rules per Region on top of
it. It is answered, not adapted: the reservoir is reported as the quota and
renewed every 10 seconds rather than decremented per report, and the service page
says so.

A local emulator runs for days, so the store is bounded to 10000 traces per Region
with AWS's 30 day window, oldest evicted first. A bad document is reported under
UnprocessedTraceSegments with its reason instead of failing the whole call, and
100 documents per call is the AWS limit, enforced.

Co-authored-by: David Guardiola <davidguardiola@gmail.com>
2026-11-11 08:50:26 -04:00
Priamo Germosen 3270066923 test(compat): avoid coarse Redshift stack waiter polling (#7933) 2026-11-10 22:48:11 -06:00
James McMahon fe24f7736a feat: support one-off ECS scheduled scaling (#7895)
* feat: support one-off ECS scheduled scaling

* chore: cover application auto scaling scheduled actions with SDK

* fix: preserve scheduled action ordering and report failures

* test: cover scheduled suspension through the AWS SDK

* fix: validate scheduled action inputs and preserve explicit UTC

* test: tick explicitly when checking scheduled action rescheduling

* fix: reuse schedule parser and tighten scheduled scaling tests

* test: poll ECS cluster cleanup for late arriving tasks
2026-11-10 18:28:30 -04:00
Mario Toffia f37afdad81 fix(logs): support or in Logs Insights filters (#7924)
* fix(logs): support or in Logs Insights filters

A filter or where stage now keeps rows matching any or-joined comparison, case-insensitive, with parenthesized and nested groups. Syntax the engine does not model (and, not, ||, escapes, backtick fields, expressions in place of a field, empty stages) fails the query instead of returning a silently wrong result set.

Closes #7907

* fix(logs): limit Insights bare filter values to numbers and enforce the queryString length

An unquoted filter value is now a number compared by value, as on AWS (n = 2 matches 2 and 2.0).
Other unquoted values, such as a word or 1+1, fail the query instead of being read as text.
StartQuery rejects a queryString over 10,000 characters with InvalidParameterException, which
also bounds the nesting the or parser walks.

* fix(logs): keep Insights field parsing stack-safe and count queryString in code points

A long dotted field such as a.a.a... overflowed the stack in the field regex, which repeated a
group recursively; the repetition is now possessive and runs in a loop. The queryString limit
uses the shared Smithy length check, which counts code points as AWS does, so a query of
emoji under 10,000 code points is no longer rejected.

* refactor(logs): share one quote-skipping scanner across the Insights parser
2026-11-10 16:18:56 -04:00
Andre Kurait 4512de1402 fix(rds): omit empty terminal pagination markers (#7900) 2026-11-10 09:16:40 -04:00
Tyler Webb aff365d1e5 fix(apigateway): register the $foreach loop scope for native VTL (#7859)
In the native image every $foreach property of a VTL mapping template
resolved to null: #if($foreach.hasNext) was always false, so the usual
comma-between-items pattern rendered invalid JSON, and $foreach.index,
$foreach.count and $foreach.hasNext printed as literal text. Velocity
binds $foreach to a ForeachScope and reads its getters through
reflection, but only the Foreach directive was registered, not the scope
it creates. Velocity then fell back to reading the scope as a map, which
holds none of those keys.

ForeachScope and its parent Scope are now registered alongside the
directive. Reflection registration covers the whole image, so AppSync
resolver templates, which loop through the same directive, get the
scope too.
2026-11-10 08:06:42 -04:00
James McMahon faf9c4e64d fix(cognito): honour case-insensitive sign-in configuration (#7831) 2026-11-09 21:13:31 -04:00
David 9f77c736e9 feat(securityhub): add member account operations and DisableOrganizationAdminAccount (#7791)
Add CreateMembers, ListMembers, GetMembers, DisassociateMembers, DeleteMembers and
DisableOrganizationAdminAccount, the operations Landing Zone Accelerator and Terraform's
aws_securityhub_member use to manage Security Hub members.

Organization accounts added by the delegated administrator become Enabled members and have
Security Hub and its default standards enabled for them; other accounts are Created. Organization
members can be disassociated but not deleted. Disabling the delegated administrator marks its
organization members Removed.

Macie already served POST /members and GET /members, so Security Hub calls on those paths were
answered by Macie. Both routes now dispatch on the SigV4 credential scope in
SecurityAdminController, as GET /admin already does; unsigned requests still reach Macie.

Closes #2197
2026-11-09 11:37:23 -04:00
Murtuza Chhil ab312d68e6 feat(paymentcryptography): the card values and the authorization cryptograms (#7400)
* feat(paymentcryptography): the single DES decryption

The retail MAC closes its tag with a decryption under the right half of the
key, so the cipher package needs the Single DES decryption as well as the
encryption. It is the same cipher the encryption is, the other way round, and
it is BouncyCastle's like every other cipher here.

* feat(paymentcryptography): the card values and the authorization cryptograms

The card validation value is the three digit value of the X9 algorithm: the
account number, the expiry and the service code, enciphered under the card
verification key, and decimalized. The dynamic variants compute the value
from the transaction rather than from the card's own fields, and they take a
key of their own usage that may derive.

The authorization cryptogram is the ARQC of the transaction: the ISO 9797-1
algorithm 3 retail MAC over the transaction data, cut to eight bytes, under a
session key the request's derivation produces. The EMV common session key, the
EMV 2000 one, the Mastercard one and the Visa one are served. The American
Express derivation is refused rather than approximated: the AEIPS session key
derivation is proprietary and there is nothing to verify it against, and a
plausible wrong cryptogram is worse than an error.

The operations are written on the data plane as it is now: the hexadecimal is
java.util.HexFormat, the digests are the shared Digests, and the ciphers are
the BouncyCastle ones the package already uses. The routes of the card
operations are in the vendored rest-routes.json already, so they are
authorized by the generated rules and need no hand-written ones.

* test(paymentcryptography): the card operations over the SDK and the CLI

The unit tests call the operations directly, so they do not reach the routes
the requests travel, the JSON the body carries, or the rules that decide which
action a request is. The suite does, through a client that signs the request
the way a client of the data plane signs it.

The Java suite drives the card verification value and the authorization
cryptogram with the AWS SDK for Java v2, and the CLI suite drives them with
the AWS CLI. Both refuse the American Express derivation, the key of another
usage, and the value or the cryptogram that does not verify.

* fix(paymentcryptography): the card requests are checked against the model

The card operations' constraints were not vendored, so their requests were
checked by hand and only partly: the account number was read as the digits it
carried, the expiry and the service code were not checked at all for the
first card verification value, and the key an operation acted on was not
checked to be a key.

The constraints are in the model, so they are vendored now, the four
operations are checked against them before they look at the request, and the
checks that repeat them are gone.

The model states that the PAN sequence number is two digits and that the
application transaction counter is two bytes. The derivation reads the last
eight bytes of the packed PAN || PSN and the first two bytes of the counter,
so the longer values the hand-rolled checks allowed were read as something
other than the counter they stood for. The vectors are the ones the EMV
derivation gives for the model's inputs.

* docs(paymentcryptography): the card requests are checked against the model

The account number is digits, the expiry is four of them, the service code is
three and the PAN sequence number is two, the EMV ones as the model states
them. A formatted account number and a longer sequence number are refused
rather than read as the digits they carry.

* docs(paymentcryptography): the data plane's operation count

The Service Matrix counts the operations a service documents, and the data
plane documents four more now: the card verification value and the
authorization cryptogram.

* fix(paymentcryptography): the card operations raise the errors the model names

Three findings from the review, all in the card operations.

A key that may not be used for the operation was refused with
InvalidKeyUsageException, which the data plane's model does not name, so a
client cannot catch it as its own type. The data plane names three errors,
and a refusal that is not one of them is a ValidationException.

The ARPC method 2 read an ArpcInputFormat member that no model, and no SDK,
carries, so the branch it guarded could never be taken. The member is gone
and the response value is always made the way the reference makes it.

And a hexadecimal member of an odd length is a request the model allows and
the cipher cannot read, so it was answered with an internal failure the
caller cannot catch. It is refused with the error the model names, and the
refusal names the member.

* test(paymentcryptography): the card operations' members are covered

Seven members the card operations read were read by no test, so nothing
proved they work: the response attributes and the response code, the card
status update and the proprietary data, the track data, the unpredictable
number and the validation data length. Each is sent now, and the shape the
service receives with them is exercised.

The response value is made by both ARPC methods, and a request that asks for
none is answered without one.

* test(paymentcryptography): the padding type is refused

The padding type belongs to RSA, and the symmetric cipher does not pad, so a
request that names one is refused rather than answered with a cipher that
ignored it. Nothing sent one, so the refusal was never exercised.

* fix(paymentcryptography): the wrapped key is refused on every operation that carries one

The encrypt, decrypt and re-encrypt requests hold a wrapped key for the key
exchange, and the unwrapping is part of that exchange rather than part of the
cipher. A request that carries one is refused, as the PIN operations already
refused it, rather than answered as if the key were a fixed one.

The rule now lives in one place, so the two paths cannot disagree on it.

* fix(paymentcryptography): the master key is derived over the rightmost sixteen digits

The block the ICC master key is derived over is the rightmost sixteen digits of
the account number and the PAN sequence number, padded on the left with zeros
when they are shorter. That is the rule EMV 4.4 Book 2 Annex A1.4.1 gives for
Option A, and the Visa Integrated Circuit Card Specification states it the same
way.

An account number of twelve digits is therefore read and derived from, where
the derivation used to refuse it, and the refusal in the request layer goes
with it.

A derivation the request cannot be read for is refused with the error the
model names, rather than answered with a failure the caller cannot catch.

* test(paymentcryptography): the derivations are the ones the specifications give

The vectors are the ones the specifications publish: the ICC master key from
the EMV Option A derivation, the MasterCard proprietary session key and the
application cryptogram it produces over the same data from the M/Chip worked
example, and the common session key from the same document.

The common session key is compared with the parity bits masked, because the
document does not force the parity of the derived key and the derivation does
not affect the computation.

* fix(paymentcryptography): the dynamic value is the one Visa describes

The Visa Contactless Payment Specification gives the dynamic card
verification value in full: the leftmost four digits of the account number are
replaced by the transaction counter, and the result, the expiry and the service
code are enciphered under the card's unique derived key, which the issuer
derives from the master key with the account number and the PAN sequence
number. The three leftmost decimal digits of the result are the value.

The derivation used a session key and covered the account number as it stands,
so it was the emulator's own construction and not the value Visa describes.
The key it needs is the one the unique derived key derivation already makes,
and the request carries the PAN sequence number that derivation takes.

The counter is a binary coded decimal counter, so a counter that is not one
is refused rather than read.

* docs(paymentcryptography): the dynamic code is the emulator's one

* fix(paymentcryptography): the card value carries the length asked for

The model states the length of a card validation value as three to five, and
the service refused every length but three. The value now carries the number
of digits the request asks for, and the verification compares as many.

The dynamic value's counter is a binary coded decimal counter, so the digits
that replace the leftmost ones of the account number are zero padded on the
left to the four the field holds.

* fix(paymentcryptography): the card values and cryptograms as specified

The review of the branch found that the card values and the authorization
cryptograms did not follow the rules they are made by.

The Option B master key derivation turned the hexadecimal digits of the
hash into digits as it scanned them. The specification takes the decimal
digits of the hash first and only then the nibbles that are not decimal
digits, each reduced modulo ten, so the derivation now follows it.

The transaction data reaches the service already padded, because the
caller pads it the way the card padded it before the card enciphered it.
The service was padding it a second time, which enciphered a block the
card never enciphered. The data is enciphered as it was sent now, and a
length that is not a whole number of eight-byte blocks is refused,
because the ISO 9797-1 MAC runs over whole blocks.

The key table names the application cryptogram usage, the TDES_2KEY
algorithm and the DeriveKey mode of use for the ARQC key, so a key of
another usage, another algorithm or without the mode of use is refused.
The rules are asked in one place now, so the card operations and the
cryptogram operations cannot drift apart on what they accept.

The response value of the second issuer authentication method is made of
the card status update and the proprietary data, as the specification has
it. The response code belongs to the first method.

The EMV 4.1 tree derivation and the dynamic card verification code are
refused rather than approximated: the first is proprietary, and the
second was the emulator's own construction.

A verification that fails carries the reason the model names, and a key
that is not there is answered with a 404.

* refactor(paymentcryptography): the model settles the card value's length

The card operations refused a validation data length that was not three to
five digits, and a validation data that was not, while the model states
both. The model is checked before the operation runs, so the two checks
never reached the point where they could answer, and the model answers
the same request with the same error. The checks are gone, and the
model's own constraints have a test each, so the refusal is proved.

The class comment of EmvCrypto said the ARQC is made over the CDOL, and
it is made over the transaction data as the caller sent it, so the
comment says that now.

* refactor(paymentcryptography): the card side reads the shared helpers

The review found the card side holding copies of what the service already
holds, and the comments around them out of date.

The card operations read the request members through
PaymentCryptographyAttributes now, the same as the cryptogram operations,
instead of carrying their own text and soleVariant.

They read the key's material through PaymentCryptographyKeyRules.materialHex
as well. A key read back after a restart holds no material, and the shared
rule says so, where the raw accessor gave a null that the derivation failed
on.

The refused dynamic card verification code left its branch in the
computation and the track data and unpredictable number fields behind, and
the two-argument retailMac had no callers. They are gone.

The comments are in step with the code now: the class comment of the
cryptogram operations no longer calls the EMV 2000 derivation the common
one, the comment on the second issuer authentication method no longer
carries the response code in its input, and the class comment of EmvCrypto
no longer names OpenSSL or the original engine.
2026-11-09 11:18:07 -04:00
Mario Toffia c4b22b25bd fix(ecs): return RunTask before the task's images are pulled (#7753)
RunTask and StartTask pulled the images and started the containers inside the
request, so an unreachable registry held the call for minutes. They now answer
PROVISIONING (awsvpc) or PENDING with PENDING containers, as AWS does, and the
launch runs on a virtual-thread executor. A failed pull shows on DescribeTasks
as STOPPED / TaskFailedToStart, and a StopTask during the pull is no longer
overwritten when the containers start.

A RunTask response's PENDING containers carried the ExecuteCommandAgent as
RUNNING with a lastStartedAt; AWS reports it PENDING with neither. A start
failure after a StopTask overwrote the user's reason and UserInitiated code
with TaskFailedToStart.

AWS reports a container's memoryReservation from the moment RunTask answers.
Docker-mode responses had it from the started container; the pending
placeholders now carry it too.

ECS reports a task as pending from RunTask until it runs, through
PROVISIONING as well as PENDING. The cluster's pendingTasksCount was a
stored field nothing ever set, and the pending statistics counted only
PENDING, so both read 0 while a background launch pulled its image.

RunTask now answers before the task's images are pulled, so the test
waits for the launch to land the task instead of expecting RUNNING
straight away.

Closes #7670
2026-11-09 09:31:39 -04:00
dgl-aiandDavid Guardiola 13640785a9 feat(signer): serve the Signer control plane for profiles, permissions and job records (#7680)
Signer was the last control plane Floci's CloudFormation provisioner stubbed:
SignerCfnProvisioner recorded only the identifiers a template handed it, with
a comment saying Floci has no Signer API. This serves the API, so an SDK, the
CLI or a stack sees the profile it actually created.

Cancellation keeps the profile, as AWS does: it stays readable through
GetSigningProfile with the same ARN and version and the status Canceled, it
stops accepting jobs, and ListSigningProfiles hides it unless includeCanceled
is set or statuses names Canceled. A PutSigningProfile on the same name brings
it back as a new active version.

A signing job fails by default, and says why. Nothing on this machine signs the
artifact, so a succeeded job would advertise a signedObject key that does not
exist and every download of it would fail; the job instead completes as Failed
with a statusReason naming the object that was not written, and RevokeSignature
refuses it because there is no signature to revoke. Metadata-only callers can
set floci.services.signer.mock-signing-jobs=true, which records jobs as
succeeded and is documented as a mock rather than as AWS behaviour.

Signer routes collide with S3's path-style ones, so a request signed for the
signer scope is rewritten onto an internal prefix before matching. That rewrite
used to happen before IAM resolved the action from the path, which left every
Signer call unchecked; IamActionRegistry now strips the internal prefix the
signing service owns, and SignerIamEnforcementIntegrationTest proves a key with
no policy is refused while one with signer:* is allowed.

Co-authored-by: David Guardiola <davidguardiola@gmail.com>
2026-11-09 09:08:00 -04:00
Daniël van Ziel 4e5c60cd58 fix(scheduler): honor MaxResults and NextToken in ListScheduleGroups and ListSchedules (#7187)
Both list operations now page through the shared Pagination helper, return NextToken only while items remain, and answer an out-of-range MaxResults or a foreign or malformed NextToken with ValidationException. NamePrefix, State and ScheduleGroup filtering apply before paging.

Fixes #6720

Let the namespaced Pagination overload take the reject-empty-token flag that
paginateUnencoded already uses, and drop SchedulerService.requireNonEmptyToken.
Explain why the compatibility test's best-effort cleanup ignores failures.
2026-11-09 01:53:04 -04:00
Alexy Grabov 6e3bdaf9ef fix(opensearch): return endpoint without scheme (#7766)
Closes #7707
2026-11-08 18:37:00 -04:00
Allen Sanborn 3701d4d041 feat(ec2-instance-connect): SendSSHPublicKey, verified by the unmodified AWS agent (#7473) 2026-11-08 18:24:23 -04:00
Murtuza Chhil 6130fe9568 feat(paymentcryptography): the PIN operations (#7397) 2026-11-08 18:15:17 -04:00
Jimmy Liu Jia 6e75e4096e feat(securityhub): import and query ASFF findings (#7692)
fix(securityhub): validate provider fields and preserve default product metadata

fix(securityhub): preserve custom names and reconcile provider updates

fix(securityhub): prefer provider fields on first import

docs(securityhub): update findings operation count

fix(securityhub): validate initial verification state
2026-11-07 09:18:47 -04:00
Murtuza Chhil 4617e4a4f8 feat(paymentcryptography): the data plane as a service of its own (#7396)
* feat(paymentcryptography): the data plane as a service of its own

docs(paymentcryptography): the data plane has a page of its own

fix(paymentcryptography): a MAC under a three-key Triple DES key is computed

test(paymentcryptography): a key of another purpose does not encrypt data

feat(paymentcryptography): the data plane's IAM is generated

fix(paymentcryptography): a DUKPT MAC needs a base derivation key

fix(paymentcryptography): a key whose material is not held is refused

docs(paymentcryptography): the data plane's example runs

test(paymentcryptography): the data plane through the AWS SDK

test(paymentcryptography): the data plane through the AWS CLI

fix(paymentcryptography): the CLI test removes the keys it makes

docs(compat): the AWS CLI suite names the data plane

test(paymentcryptography): the route is read as the registry reads it

test(paymentcryptography): the request names its method and its URI

fix(paymentcryptography): the cipher pads no data

fix(paymentcryptography): the data plane takes the service scope

fix(paymentcryptography): a MAC length that is not a number is refused

docs(paymentcryptography): the data plane says the cipher pads no data

fix(paymentcryptography): the data plane ciphers with Triple DES as well

fix(paymentcryptography): the scope alias names the model's scope

fix(paymentcryptography): the Triple DES cipher is BouncyCastle's

fix(paymentcryptography): the usage and the blob keep their comments

fix(paymentcryptography): a key's family is read from its algorithm

fix(paymentcryptography): the cipher reads the vector through one helper

test(paymentcryptography): the keys are built by one builder

fix(paymentcryptography): the data plane checks the model's rules

fix(paymentcryptography): the Triple DES check value is BouncyCastle's

fix(paymentcryptography): the SDK names it TDES_2_KEY

docs(contributing): the ciphers come from BouncyCastle

refactor(paymentcryptography): the model owns the request shapes

refactor(paymentcryptography): the ciphers are BouncyCastle's

test(compat): one helper makes a key of either algorithm

docs(contributing): the cipher rule comes out

fix(paymentcryptography): the refusals are the model's

refactor(paymentcryptography): the ciphers are one helper each

refactor(paymentcryptography): the generators share the helper

docs(paymentcryptography): the javadocs name both ciphers

test(aws): the moved constants read from the shared helper

fix(paymentcryptography): the deprecated cipher constructors go

chore(paymentcryptography): the duplicate import goes

test(paymentcryptography): the DUKPT vectors the standard publishes

fix(paymentcryptography): the DUKPT refusal is the derivation's

docs(paymentcryptography): the retail MAC is over a double-length key

fix(paymentcryptography): the ISO 9797-1 MAC pads only a partial block

refactor(paymentcryptography): the refusals the model already makes

chore(aws): the routes are generated from the models again

* chore(aws): the IAM resources are generated again
2026-11-06 20:05:00 -04:00
Hector Ventura 7cf443fcee chore: rename the package to io.floci.aws (#7689)
Move the Java sources from io.github.hectorvent.floci to io.floci.aws, matching io.floci.gcp, io.floci.az and io.floci.oci. Generated by tools/rename/rename_package.py apply on the base commit, with no other edits.

Logger categories and the arn.fail-on-blank-region property move to the io.floci.aws prefix. The pom groupId becomes io.floci; the artifactId stays floci.

Refs #6589

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
2026-11-06 11:07:21 -04:00
jwoa95 f8670f64fb feat(quicksight): add metadata APIs and limited registered-user embedding (#7529)
Closes #7522

Origin comparisons preserved host casing and default ports, CSP named only the immediate parent, and expired sessions remained in storage indefinitely. Normalize both sides of origin checks, allow all configured ancestors, and reap expired sessions across accounts with the shared sweep worker.
2026-11-06 09:11:30 -04:00
Jackson Price 56eedbece5 fix(elbv2): reconcile security settings on listener protocol changes (#7598)
* fix(elbv2): reconcile security settings on listener protocol changes

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(elbv2): assign unique protocol transition test order

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

* test(elbv2): align protocol transition CI fixtures

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>

---------

Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
2026-11-05 08:13:33 -06:00
syedali032-creatorandSyed Ali Hasan Shah b235792722 test(stepfunctions): use the shared execution waiter in four compatibility tests (#7580)
StepFunctionsActivityTest, StepFunctionsDescribeMapRunTest,
StepFunctionsExecutionHistoryTest and StepFunctionsNestedSmTest each had their
own pollUntilDone loop. They now call TestFixtures.awaitExecutionTerminal with
the same time budgets as before (60 s, 15 s, 60 s and 30 s). Every caller
asserts the status right after, so an execution still RUNNING at the deadline
fails the test as before.

Co-authored-by: Syed Ali Hasan Shah <257496457+syedali032-creator@users.noreply.github.com>
2026-11-05 04:46:26 -04:00
Jackson PriceandAndre Kurait 31227106b1 fix(elbv2): omit absent certificates and terminal markers (#7561)
Match observed HTTP listener DescribeListenerCertificates responses by omitting the absent Certificates list. Preserve configured HTTPS certificates and cover both Java SDK and XML response shape.

Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <59149601+jprice8@users.noreply.github.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-04 22:34:06 -04:00
Jackson Price ee038af772 fix(autoscaling): validate tag propagation per action (#7537) 2026-11-04 18:05:44 -04:00
syedali032-creator 68271ef6b8 fix(stepfunctions): return the HTTP task result on the native image (#7543) 2026-11-04 17:17:54 -04:00
Matheus Oliveira e95af9cbf6 feat(servicequotas): implement ListServices action (#7254) 2026-11-04 13:52:00 -04:00
Daniël van Ziel f8408ae3d4 fix(elbv2): fail DescribeRules with RuleNotFound for an unknown rule ARN (#7492) 2026-11-04 06:34:34 -04:00
Hector Ventura 06fa276bec test(compat): build partition-aware values in four nightly tests (#7484) 2026-11-04 05:18:12 -04:00