Commit Graph
3083 Commits
Author SHA1 Message Date
XuJian 83f600dc3f feat(route53resolver): answer GetFirewallConfig for a VPC (#10073) 2026-12-04 00:12:00 -04:00
Priamo Germosen a0a382b59a fix(iam): check Amazon Connect by its generated routes, resources and tags (#10125)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon Connect was among them: any caller
could create, describe, update or delete an instance, its attributes or its storage configs. Connect's model routes are
vendored (regen_rest_routes.MODELS, signed connect), so each request is checked as its operation's action, and connect
joins the generated tables of request resources and tags on create: an instance by the id its path gives, each of
Connect's other resources by the members its request names, and the tags a create carries.

ConnectStoredResourceArns answers the tags Connect holds on an instance, read in place in the ARN's account and Region,
which an aws:ResourceTag condition reads. The table asks for a traffic distribution group or a data table to be found,
which Floci does not serve, so there is nothing to find. The table's integer variables now include Connect's
customer-managed-view-version ViewVersion, which test_regen_iam_request_resources pins.

A namespace the table reads is served on its tag routes only at the ARN its path encodes, so ConnectIntegrationTest's
tag calls send the ARN encoded, as the SDKs do, rather than with its '/' raw.

IamRestRouteEnforcementIntegrationTest checks that with no grant an instance's read is refused, that a grant on one
instance reads it and refuses another, and that an aws:ResourceTag condition reads its tags.

ConnectService named an instance by any ARN, reading the text after its first slash, so an ARN of another shape
(arn:aws:connect:us-east-1::other/<id>) reached an instance IAM had not checked the request on, past a deny on it. It
now takes an instance's own ARN alone, the one IAM checks, refuses an ARN of any other shape, and looks one of another
account or Region up as given, which finds nothing; storedTags answers an instance's own ARN alone, so another
partition's gets no tags. ConnectStoredResourceArnsTest covers both, IamRestRouteEnforcementIntegrationTest checks that
an instance deny holds for each form the path gives it and that a tagged CreateInstance needs connect:TagResource, and
docs/services/connect.md says which ARNs are taken.
2026-12-04 00:02:50 -04:00
Hector Ventura ae9b7962ef refactor(docker): make the Docker client connect timeout configurable (#10132) 2026-12-04 00:01:53 -04:00
Priamo Germosen 00230a3612 feat(cloudwatch): start, read, update and stop OTel enrichment (#10130)
Add StartOTelEnrichment, GetOTelEnrichment, UpdateOTelEnrichment and
StopOTelEnrichment over Query, JSON 1.0 and CBOR, with one configuration
per account and Region as the user guide scopes it. Floci stores the
configuration; enriching vended metrics comes next.

Resource tag enrichment, the default, needs ObservabilityAdmin's resource
tags for telemetry running in the Region: a start without it is the
modeled ValidationError with the API reference's sentence, as AWS quotes
no message. EnableTagEnrichment false needs nothing. A start while
running changes nothing, an update replaces both filter lists as a pair
and keeps the stored tag setting it omits, and an update while stopped is
AWS's ResourceNotFoundException "OTel enrichment is not enabled for this
account". A stopped enrichment reads as its status alone.

Filters are validated as the model gives them, every violation listed in
AWS's form, then against the 100 selectors allowed across both lists. A
selector naming metrics without a namespace is refused as a null namespace
over Query too, for metric streams as well, rather than read as no selector.
Over JSON, a filter list sent as something else is refused with the
deserializer's SerializationException, and EnableTagEnrichment sent as a
string is read as the boolean it names or refused, so a malformed update
changes nothing.
Over Query, a filter name XML cannot carry is written as U+FFFD, for
metric streams too.

Part of #7030.
2026-12-03 22:58:23 -04:00
Daniël van Ziel 9d93fee08d fix(appsync): return the raw SDL from GetIntrospectionSchema (#10124) 2026-12-03 21:48:05 -04:00
Priamo Germosen ae99b5a874 feat(observabilityadmin): serve resource tags for telemetry with its Resource Explorer managed view (#10075)
CloudWatch's OTel enrichment reads resource tags through ObservabilityAdmin's
resource tags for telemetry feature, which has to be running before
StartOTelEnrichment enables tag enrichment. Add the ObservabilityAdmin service
with StartTelemetryEnrichment, StopTelemetryEnrichment and
GetTelemetryEnrichmentStatus, one feature per account and Region.

Starting the feature has Resource Explorer create a LOCAL index when the
Region has none and a managed view that includes tags, as the CloudWatch user
guide describes. GetManagedView and ListManagedViews now answer the views
Floci's services create. A status read before the first start is the modeled
ResourceNotFoundException, and a stop of a stopped or never-started feature
changes nothing.

The passed-roles table now reads ObservabilityAdmin. A vendored source,
written from the CloudWatch user guide and the Observability Admin API
reference, gives a dataset integration's role to CloudWatch Logs, whose trust
policy it names, and gives where a telemetry pipeline's YAML configuration
names its roles: its source's and its Secrets Manager extension's, each going
to the service its source type's role trusts, and to CloudWatch Logs as well
with a lookup processor or a conditional route.

Part of #7030.
2026-12-03 21:35:28 -04:00
Lucien 803c814468 feat(iot): add the software package catalog (#10028) 2026-12-03 20:47:25 -04:00
Stefan Dobrovolny 1ce56af826 fix(dynamodb): return the existing export for a repeated ClientToken (#10061) 2026-12-03 18:28:32 -04:00
Murtuza Chhil c95aecbb92 fix(paymentcryptography): the account number may be the account field (#10076)
TranslatePinData binds a format 0 or 3 PIN block to the twelve-digit account field, the twelve right-most digits of the account number without its check digit, and a caller holding the block sends that field as PrimaryAccountNumber. A twelve-digit value was read as a PAN whose check digit was dropped, so the derived field was one digit short and the block did not decipher. For the formats 0 and 3 a twelve-digit value is now the field itself, while format 4, which binds the PIN to the whole PAN, reads it as a PAN as before; the Visa verification value follows the same reading. A request whose translation attributes name no account number is refused with ValidationException instead of throwing.

Closes #10077
2026-12-03 18:24:56 -04:00
Lucien e92a9736be feat(ec2): add VPC endpoint service configurations (#10032) 2026-12-03 18:13:46 -04:00
thejrose1984 71c78beeab fix(apigateway): check the role an integration names as its credentials (#9927) 2026-12-03 17:45:41 -04:00
Priamo Germosen 2d977bc48c fix(iam): check Amazon AppIntegrations by its generated routes, resources and tags (#10108)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon AppIntegrations was among them: any
caller could create, read, update, delete or tag an event integration or a data integration. AppIntegrations' model
routes are vendored (regen_rest_routes.MODELS, signed app-integrations), so each request is checked as its operation's
action, and app-integrations joins the generated tables of request resources and tags on create: an event integration by
the name its path or body gives, a data integration by its id, and the tags a create carries.

AppIntegrationsStoredResourceArns finds the data integration CreateDataIntegration names by its name, as the table asks
(findByMembers), its ARN carrying the id AppIntegrations mints. It finds nothing by the value an ARN is filled with
(find), so a request naming a data integration by its id is checked on that id, as its handler reads it, never on
another integration whose name is that id. It answers the tags AppIntegrations holds on an event or data integration,
read in place in the ARN's account and Region, for the integration's own ARN alone, as the tag routes find it, which
an aws:ResourceTag condition reads. Floci serves no applications, so there is no application to find.
StoredResourceArns names it.

A namespace the table reads is served on its tag routes only at the ARN its path encodes, so
AppIntegrationsIntegrationTest's tag calls send the ARN encoded, as the SDKs do, rather than with its '/' raw.

IamRestRouteEnforcementIntegrationTest checks that with no grant an event integration's read is refused, that a grant on
one reads it and refuses another, that an aws:ResourceTag condition reads its tags, that a CreateEventIntegration
carrying tags needs app-integrations:TagResource on the event integration it makes, that CreateDataIntegration is
checked on the data integration of the name it gives, and that GetDataIntegration by an id is checked on that
integration, not on another named like the id. AppIntegrationsServiceTest checks that another partition's ARN reads
no tags.
2026-12-03 17:37:54 -04:00
Allen Sanborn 839826ff50 fix(ec2): store and return flow log DestinationOptions (#10047)
CreateFlowLogs stores FileFormat, HiveCompatiblePartitions and PerHourPartition, and DescribeFlowLogs returns them as destinationOptions: an s3 flow log created without them reports plain-text, false, false, a partial request defaults the rest, and a cloud-watch-logs flow log omits the element unless options were sent. A partition flag that is not a boolean is refused. CloudFormation AWS::EC2::FlowLog resolves DestinationOptions whole, so an intrinsic can supply the block, passes it to the flow log, and refuses an update that changes it, as the property is create-only.

Closes #7888
2026-12-03 17:26:41 -04:00
mrfelek 51767ad056 feat(ec2): program each instance's subnet routes to instances and network interfaces into its network namespace (#10074)
An EC2 instance's network namespace now gets the routes of its subnet's route table whose target is an instance or a network interface, as an EKS cluster's server container already does. Each program reconciles the namespace to the routes due, which carry protocol 252 so the guest's own are left alone; a route through an instance that isn't running, or a detached or missing interface, is programmed as a blackhole, as AWS keeps it. A route covering an address the instance reaches Floci at, its default gateway, or a link-local range is never programmed, and a Floci name that doesn't resolve inside the namespace fails closed. Route table and target resolution move to ec2.net.VpcRoutes, shared with EKS. Controlled by floci.services.ec2.vpc-route-programming (default true).

Part of #10068.
2026-12-03 16:23:06 -04:00
Priamo Germosen dfffb8b32b fix(iam): check CloudWatch RUM by its generated routes, resources and passed roles (#10093)
Under enforcement a REST route no vendored model names runs unchecked, and CloudWatch RUM was among them: any caller
could create, read, update, delete or list app monitors with no permission at all. RUM's model routes are vendored
(regen_rest_routes.MODELS, signed rum), so each request is checked as its operation's action, and rum joins the
generated tables of request resources, passed roles and tags on create: an app monitor by the name its path gives, the
tags a create carries, and PutRumMetricsDestination's IamRoleArn passed to rum, which applies once Floci serves that
operation, as it serves only the app monitor routes today.

RumStoredResourceArns answers the tags RUM holds on an app monitor, read in place in the ARN's account and Region, which
an aws:ResourceTag condition reads. PutRumEvents names its monitor by an id, which the table asks to be found; Floci
does not serve it, so there is nothing to find.

IamRestRouteEnforcementIntegrationTest checks that with no grant a monitor's read is refused, that a grant on one
monitor reads it and refuses another, that an aws:ResourceTag condition reads a monitor's tags, that a create granted on
the monitor its Name makes passes with a guest role in its configuration, whose IAM role ARN is not taken for a monitor,
and that a create carrying tags is refused until rum:TagResource is granted on the monitor it makes.
2026-12-03 16:08:49 -04:00
Langning Zhang 7bb39391a9 fix(elbv2): preserve the gRPC target group matcher (#10094)
A target group with ProtocolVersion GRPC keeps Matcher.GrpcCode through CreateTargetGroup, DescribeTargetGroups, ModifyTargetGroup and CloudFormation rollback, defaulting to 12, while HTTP1 and HTTP2 groups keep returning HttpCode. GrpcCode used to land in the HTTP matcher slot, so a gRPC group answered HttpCode=200. Groups CloudFormation stored that way still read their gRPC code.

Refs #9899
2026-12-03 16:00:32 -04:00
soreavis fcd6a89300 feat(xray): support TagResource, UntagResource and ListTagsForResource (#10067)
XrayRouteFilter now claims /TagResource, /UntagResource and /ListTagsForResource, so an xray-signed call there no longer reaches Marketplace Catalog's handler, and CreateSamplingRule keeps its Tags. A sampling rule's tags are changed and read by the rule's ARN, with AWS's key, value and 50-tag limits; a group's ARN, the Default rule's, or one from another Region or account answers ResourceNotFoundException with "Resource <arn> not found". IAM reads a rule's tags for aws:ResourceTag conditions.
2026-12-03 15:07:57 -04:00
Tiago Sousa 6bcb7c820b fix(release): build the darwin-arm64 binary when the free macOS runner has the memory for it (#10004)
Releases try to build floci-aws-darwin-arm64 again on the free
macos-latest runner, with a 9 GB native-image heap, -Ob and two build
threads. A first step checks the runner's memory: below 12 GiB the job
warns and skips the build, and publish-binaries, which stages
darwin-arm64 as optional, releases without it. platforms=missing
backfills it later. The installation page lists the Apple Silicon
binary and keeps the Rosetta 2 note for releases that lack it.

Closes #10084
2026-12-03 11:42:10 -04:00
Priamo Germosen dfab0019cd fix(iam): check Amazon Detective by its generated routes and resources (#10082)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon Detective was among them: any caller
could enable an organization admin account, list a behavior graph's members or change its organization configuration
with no permission at all. Detective's model routes are vendored (regen_rest_routes.MODELS, signed detective), so each
request is checked as its operation's action, and detective joins the generated tables of request resources and tags on
create: a behavior graph by the ARN its body gives, and an operation the Service Reference gives no resource type on *.
Detective passes no role. Floci keeps no tags on a graph, so an aws:ResourceTag condition on one reads none, as before.

IamRestRouteEnforcementIntegrationTest checks that with no grant, or a grant on another graph, listing a graph's members
is refused, and that a grant on the graph lets the request through; and that listing the organization's administrator
accounts, an operation the Service Reference gives no resource type, is refused until its action is granted on *.

AWS added rds:CreateDataGroup to the Service Reference with two tagging actions, rds:AddTagsToDataGroup and
rds:AddTagsToResource, and regen_iam_tag_on_create asked for a hand entry for it before reading its request, though the
pinned botocore does not have the operation yet. It now asks only when the request carries tags, as which tagging action
checks them is a question only for those, so the operation takes the derived verdict, not in botocore, and a model bump
bringing it in asks again. The regenerated tag-on-create table takes AWS's other new actions too:
ec2:CreateSecondaryNetworkAclAssociation and rds:RestoreDBClusterGroupToPointInTime.
2026-12-03 11:30:36 -04:00
soreavis 501e15205c fix(lambda): keep code signing config tags and support tagging configs (#10066)
CreateCodeSigningConfig ignored its Tags, and TagResource, UntagResource
and ListTags refused a code-signing-config ARN. Create now checks the
tag keys as TagResource does and keeps the tags in their own store, so
the CodeSigningConfig the reads return still has no Tags. The tag
operations serve a configuration ARN from that store, answer
ResourceNotFoundException for one the caller doesn't hold, and write
under the configuration lock, so a tag write can't outlive a concurrent
delete. Delete drops the tags, and storedTags returns them for
aws:ResourceTag conditions.
2026-12-03 11:18:55 -04:00
soreavis 3455a8f6fa fix(config): keep a conformance pack's delivery, parameters and tags (#10065)
PutConformancePack read only the pack's name and template, so
DescribeConformancePacks never returned the DeliveryS3Bucket,
DeliveryS3KeyPrefix and ConformancePackInputParameters the pack was put
with, and its Tags were dropped. The pack now stores and returns them,
and a Put on an existing pack replaces them. Tags apply only when the Put
creates the pack, as the PutConformancePack reference says, and are
written before the pack, so a tag without a Key stores nothing.

The Config integration tests share one ConfigRequests.call helper.
2026-12-03 10:41:09 -04:00
Priamo Germosen f895b21f52 fix(iam): check Amazon MWAA by its generated routes, resources and passed roles (#10017)
Under enforcement a REST route no vendored model names runs unchecked, and Amazon MWAA was among them: any caller could
create, read, update or delete an environment, get its CLI or web login token, and pass an execution role with no
iam:PassRole. MWAA's model routes are vendored (regen_rest_routes.MODELS, signed airflow), so each request is checked as
its operation's action, and airflow joins the generated tables of request resources, passed roles and tags on create: an
environment by the name its path gives or the ARN its body does, CreateEnvironment's and UpdateEnvironment's
ExecutionRoleArn passed to airflow, and the tags a create carries.

MwaaStoredResourceArns answers the tags MWAA holds on an environment, read in place in the ARN's account and Region, a
pre-multi-account entry under its bare name included, which an aws:ResourceTag condition reads.
StoredResourceArns names it, and now says MSK answers the tags of a cluster alone, as #9973 left MSK.

A namespace the table reads is served on its tag routes only at the ARN its path encodes, so MwaaIntegrationTest's tag
calls send the ARN encoded, as the SDKs do; IamActionRegistryTest's example of a route Floci does not check on a
resource it reads becomes IoT's DescribeThing.

IamRestRouteEnforcementIntegrationTest checks that with no grant an environment's read is refused, that a grant on one
environment reads it and refuses another, and that an aws:ResourceTag condition reads an environment's tags.
IamPassRoleEnforcementIntegrationTest checks that CreateEnvironment and UpdateEnvironment need iam:PassRole on the
execution role they name, passed to airflow.amazonaws.com, which a grant for EC2 does not cover.

An ARN names the account that owns the resource, so a request on another account's resource is cross-account whether
or not its service holds a policy on it. Before, a resource with no supplied policy had no owner, so the caller's own
policies alone decided a call on another account's MWAA environment, and an aws:ResourceTag condition answered on that
environment's tags. ResourcePolicyProviders.ownerAccount now answers the first supplied policy's owner, or else the
ARN's account, and IamEnforcementFilter and RoleResourceAccessAuthorizer judge the request as IAM's cross-account
evaluation logic does: "AWS allows the request only if both account policy evaluations allow the request". An ARN
naming no account, as an S3 bucket's, is judged within the caller's account as before.

So every service that holds a resource-based policy supplies it, read in the account the ARN names: Backup vault access
policies, Bedrock guardrails and guardrail profiles, Bedrock AgentCore, CloudHSM backups, CloudWatch Logs destinations,
DynamoDB tables, ECR repositories and the registry policy, the Glue Data Catalog (for its Data Catalog resources alone,
never a job or crawler), Lambda web functions, Marketplace entities, OAM sinks, Organizations, Payment Cryptography
keys, S3 Tables buckets and tables, S3 Vectors buckets, Secrets Manager secrets, SES identity policies, SSM parameters
and WAF rule groups. An OpenSearch domain's access policy is not among them: AWS applies it to the domain's subresources
only, "not the domain itself", and "accessing the configuration API requires an identity-based policy", while Floci
checks the configuration API alone. Nor is an EFS file system policy, which AWS uses "to control file system data
access" by NFS clients, which Floci does not serve. Nor are the resource policies CloudWatch Logs' PutResourcePolicy
sets, which AWS enforces only for AWS service principals, "not IAM users, roles, or cross-account principals". Nor is a
Redshift cluster's or Serverless namespace's resource policy, which AWS describes as "resource policies that work with
zero-ETL integrations", whose actions Floci does not check. CloudHSM reported every backup ARN in 000000000000; it now
names the caller's account, so the ARN DescribeBackups gives is the caller's own.

A resource with no policy that its service acts on in the account its ARN names (StoredResourceArns.reachedInItsAccount:
a RAM invitation sent to the caller or a share another account owns, an SSM document another account owns, a Redshift
snapshot named by its owner) is judged within the caller's account, its handler answering whether the owner's share lets
the caller use it, as that contract already says. So accepting a RAM invitation, associating a shared SSM document and
restoring a shared Redshift snapshot work as before.

ResourcePolicyProvidersIntegrationTest checks that each provider supplies its policy, owned by the ARN's account, and
nothing for the same ARN in another account, and that the Glue Data Catalog policy is not supplied for a job.
IamRestRouteEnforcementIntegrationTest checks that another account's MWAA environment is refused whatever its tags and
the caller's policies, and that EKS tagging of a foreign ARN is refused; IamRequestResourceEnforcementIntegrationTest
checks that a repository in another registry is refused while its policy grants another account and reaches ECR once it
grants the caller's; LogsArnTagAuthorizationIntegrationTest checks that a foreign log group ARN is refused.

AWS added 24 RDS actions to the Service Reference at 18:02Z on 2026-12-02 (branches, data groups and DB cluster groups,
and ResyncIntegration), which the online verify gate reads from AWS's current copy, so the generated tables take them.

AWS's Service Reference stopped listing iam:PassRole for kinesisanalytics:AddApplicationReferenceDataSource at 05:02Z on
2026-12-03, so the regenerated passed-roles table drops it, and the request-resources table, generated beside it, is
regenerated with it.
2026-12-03 09:38:39 -04:00
Priamo Germosen 23b66d557a feat(cloudwatch): evaluate PromQL alarms and list their contributors (#10050)
PutMetricAlarm takes EvaluationCriteria.PromQLCriteria over Query, JSON,
CBOR and CloudFormation, with the answers AWS gives: the members of an
alarm on a metric are refused as unnecessary, by name, and the
EvaluationInterval must be 10, 20, 30 or a multiple of 60. An interval
without criteria is now the ValidationError AWS answers, "EvaluationCriteria
is required when EvaluationInterval is specified", in place of Floci's
InvalidParameterCombination. A new PromQL alarm is in OK with "No time
series evaluated to ALARM", and DescribeAlarms echoes its criteria and
interval without the single-metric members.

The alarm evaluator runs the alarm's instant query once its interval has
passed, as the account that owns it. Each series returned is a
contributor, identified by its labels without __name__, as Prometheus
labels an alert. Contributors go to ALARM after PendingPeriod and back to
OK after RecoveryPeriod, as Prometheus's for and keep_firing_for move an
alert, at most 100 at a time, and the alarm is in ALARM while one is. A
failed or non-vector query is EVALUATION_ERROR and keeps the state;
more than 500 series is PARTIAL_DATA. A run is dropped when the alarm
changed while its query ran.

Each contributor change is an AlarmContributorStateUpdate history item
and a contributor-level SNS notification, with AlarmContributorId and
AlarmContributorAttributes and no NewStateReason or Trigger.
DescribeAlarmContributors lists the contributors in ALARM, and
DescribeAlarmHistory filters by AlarmContributorId. A query that returns
one series and ends in a comparison with a number drives Auto Scaling
step actions with that number as the threshold.

Floci's own choices where AWS documents none: the contributor history
summary and data, the empty contributor StateReason, the message for
criteria without an interval, EvaluationWindow among the unnecessary
members, and the evaluation error reasons.

Part of #7030.
2026-12-03 08:51:22 -04:00
ngtrthvu 4b30bfd2f2 docs(ui): add Local Console, a third-party console, to the known consoles table (#10063)
Lists Local Console (ghcr.io/ngtrthvu3007/local-console), a third-party
console that follows Console Contract v1 and labels itself, in the known
consoles table.
2026-12-03 08:37:04 -04:00
Stefan Dobrovolny de2fbf8dee fix(s3): emit ObjectTagging notifications for PutObjectTagging and DeleteObjectTagging (#10062) 2026-12-03 08:29:15 -04:00
XuJian 00f3d9f894 feat(ec2): merge an overlay catalog onto the EC2 images in use (#10049) 2026-12-03 08:03:53 -04:00
Victor 6eedefad9b feat(cognitoidentity): support GetOpenIdTokenForDeveloperIdentity (#9986)
Adds GetOpenIdTokenForDeveloperIdentity for developer-authenticated
identities. Each (DeveloperProviderName, developer user) pair gets a
stable IdentityId; additional logins must name a provider the pool is
configured for and are linked by the user their token identifies, so a
login already linked to another identity answers
ResourceConflictException and a developer user registered elsewhere
DeveloperUserAlreadyRegisteredException. Tokens are RS512 JWS signed
with a per-pool key, carry PrincipalTags, and use AWS's regional issuer.
The pool's OIDC discovery document and JWKS are served under
/.well-known and follow the cognito-identity service's enablement.

Closes #9995
2026-12-03 07:46:03 -04:00
Kenshin Okinaka 295cce5497 feat(athena): add to_iso8601 and with_timezone (#10055) 2026-12-03 07:34:07 -04:00
Niels Kootstra d1b30b79db fix(lambda): delete a function's asynchronous invoke configs with the function (#10009)
DeleteFunction left the function's event invoke configs in the store, so
a function created later under the same name inherited the deleted
one's retry, event age and destination settings. Deleting the whole
function now removes its configs for every qualifier, leaving other
functions alone, including ones whose names share a prefix. Put and
Update of a config take the same per-function lock as the delete, so a
write racing a delete gets ResourceNotFoundException instead of bringing
the settings back.
2026-12-03 07:30:43 -04:00
Kenshin Okinaka 49508c020d fix(athena): run a query in the work group it names (#10053) 2026-12-03 07:23:54 -04:00
Allen Sanborn fcc8954e01 feat(logs): add DeleteResourcePolicy and resource-scoped resource policies (#10045) 2026-12-03 07:16:45 -04:00
Jackson PriceandAndre Kurait f16bd3787c fix(appconfig): honor the latest version number when creating hosted configurations (#10043)
Compare the optional locking token with the latest hosted version for the profile before storing a new configuration. Two callers that read the same version can no longer both complete conditional writes against it.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Andre Kurait <AndreKurait@gmail.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
2026-12-03 07:12:42 -04:00
Allen Sanborn 2fc674116e fix(cloudfront): store and return the whole field-level encryption config and profile (#10041)
Creating a field-level encryption config or profile kept only its
CallerReference and Comment, so reads came back nearly empty. The whole
FieldLevelEncryptionConfig and FieldLevelEncryptionProfileConfig element
is now stored as sent and replayed on every read.
GetFieldLevelEncryptionConfig answers with a FieldLevelEncryptionConfig
root in the CloudFront namespace, GET /field-level-encryption/{Id} and
GET /field-level-encryption-profile/{Id}/config are served, and the
lists return the summary shapes. Records stored by an older Floci are
rebuilt from the fields they kept.

Closes #7914
2026-12-03 00:05:51 -04:00
TATSUNO “Taz” Yasuhiro 72e062b1fe feat(eventbridgev2): retry and dead-letter failed queue deliveries (#10042)
A queue target used to log and drop an event whose delivery failed. A
queue now gets the events of one publish in batches of up to
MaxBatchSize, and a failed batch is retried and dead-lettered as a
function's is. The first attempt still runs before PutEvents returns;
only the retries run in the background, and a FIFO subscriber's later
batches wait behind one being retried. A subscriber deleted or reset
during the first attempt sends no retries or dead letters. The
dead-letter record's error code follows the stage that failed:
CUSTOMER_VALIDATION for a DelaySeconds that is no integer or a batch the
queue refuses whole, RESOURCE_NOT_FOUND for a missing queue, and
PARTIAL_BATCH_FAILURE when the queue refuses some entries. An expression
with no value now leaves its parameter out, and a standard dead-letter
queue gets the first event's group id.
2026-12-02 23:49:45 -04:00
Priamo Germosen 979d576684 feat(cloudwatch): query explicit-bucket histograms in PromQL (#10039)
The guide's "How CloudWatch stores histogram metrics" says CloudWatch
converts an explicit-bucket histogram to an exponential one at
ingestion, keeping the count and sum exactly and placing each source
bucket's count in the exponential buckets that cover its range,
weighted by how its density compares with its neighbors' rather than
spread evenly. The guide does not give the algorithm, so Floci's is
its own.

A delta data point's bucket has its density run linearly between edge
densities averaged with each neighbor, and its unbounded buckets reach
its min and max. Any other data point, a cumulative one among them,
has its buckets spread evenly and its min and max unread: the guide's
"Querying histogram metrics" reads a cumulative histogram's growth with
rate, which takes a falling bucket for a counter reset, and a bucket
weighted by its neighbors, or reaching a maximum, gives up part of its
range as they grow. Without a min the lowest bucket reaches down to
zero as histogram_quantile assumes of a classic histogram, without a
max the highest is held just above its bound, a bucket that reaches
zero becomes the zero bucket, and the schema is the finest at most 8
that holds the buckets in 160, the OpenTelemetry SDK default. The
layout depends on the bounds, never the counts, so a cumulative series
with fixed bounds keeps it, and lengths are halved before they are
subtracted, so bounds far apart keep finite counts.

Explicit-bucket series are labelled __type__="histogram" and
__temporality__ as exponential ones are, sharing one reader. Summaries
still carry no sample: the guide lists gauge, sum, histogram and
exponential histogram as the metric types it stores.

Part of #7030.
2026-12-02 23:36:30 -04:00
Hector Ventura 5fffd9f3a8 refactor(docker): read the Docker host override from floci.docker.host-override (#10025)
The Docker host override every container Floci starts relies on was
read from the Lambda section by core classes. floci.docker.host-override
(env FLOCI_DOCKER_HOST_OVERRIDE) is now the key, read through
EmulatorConfig.effectiveDockerHostOverride() by DockerHostResolver and
TlsProxyServer. It wins when set and not blank; otherwise the former
floci.services.lambda.docker-host-override still applies, giving every
reader the value it gave before, and its first use logs a deprecation
warning. The docs say which key wins and that the self-signed TLS
certificate does not name the override.
2026-12-02 23:24:29 -04:00
Allen Sanborn 2a2c51abe5 fix(application-autoscaling): accept scheduled actions on every dimension with AWS validation (floci-ws2dh) (#10034) 2026-12-02 23:21:20 -04:00
Jimmy Liu Jia cf07da1eeb fix(ec2): enforce security group rule quotas (#9929) 2026-12-02 23:12:59 -04:00
Jackson PriceandAndre Kurait 161872029e fix(cloudformation): keep included S3 snippets with their change set (#10033)
CreateChangeSet now stores the template with its AWS::Include snippets
merged beside the submitted one, and DescribeChangeSet and
ExecuteChangeSet use that copy, so overwriting or deleting the S3
object after creation no longer changes the preview or what deploys. A
new change set reads the current object, UsePreviousTemplate included,
and a snippet that can't be read at creation fails the change set with
the reason in StatusReason. Creating a change set retries at most three
times when the stack changes under it, then answers ServiceUnavailable.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-12-02 22:48:40 -04:00
Jimmy Liu Jia cf8d4bd68f feat(glue): search federated catalog tables (#10038) 2026-12-02 22:47:46 -04:00
Tomoki Odaka b922f1be4b feat(cognito): federate SAML 2.0 identity providers through /oauth2/authorize (#9910)
A SAML provider registered with CreateIdentityProvider now signs users
in through /oauth2/authorize, as OIDC and Google providers do. Floci
sends an unsigned AuthnRequest to the metadata's SingleSignOnService
and accepts the response at /saml2/idpresponse, on a custom domain and
on Floci's host, when its signature verifies with a metadata
certificate, it answers the request Floci sent, and its issuer,
audience, time window and bearer confirmation hold. The user is
reconciled as <ProviderName>_<NameID>, its attributes mapped by SAML
attribute name, and the client gets a Cognito authorization code.

The signature check moves to core/common/SamlSignatures, shared with
AssumeRoleWithSAML, and both now read an assertion's elements from
their parents' own children, so nothing placed inside a signature,
which its digest leaves out, is read.
2026-12-02 22:32:41 -04:00
Hector Ventura 1fcfedf08e fix(stepfunctions): check the tags Scheduler, ECS, EMR, CloudFormation and DynamoDB tasks create resources with (#10022)
A Step Functions task calling Scheduler, ECS, EMR, CloudFormation or
DynamoDB createTable was checked for its action and the roles it passes
but never for the tags it sends. Every arm now goes through
RequestChecks, so a runTask, createCluster, createStack family call or
createTable with tags needs the tag-on-create and tagging permissions
the generated tables give a direct call, and a request without tags is
checked exactly as before.

An ecs:runTask task now launches its tasks with the tags it is checked
for, building its request through the new EcsService.runTaskRequest
that the EventBridge and Scheduler targets share. RunTask with
propagateTags TASK_DEFINITION now gives a task the task definition's
tags beside the request's own, the request's value winning on a shared
key, instead of dropping the request's tags, and RunTask and StartTask
refuse a request whose merged tags would exceed 50 before any task
launches.
2026-12-02 22:05:47 -04:00
Jackson PriceandAndre Kurait 6ae5ab98e3 docs(ec2): show how to find interface VPC endpoint network interfaces (#10031)
The DescribeNetworkInterfaces entry now lists the network interfaces of
interface VPC endpoints, and the guide shows the AWS CLI call that
finds them by the requester-managed and interface-type filters.

Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-12-02 22:04:39 -04:00
TATSUNO “Taz” Yasuhiro b8b5f38776 feat(eventbridgev2): fill PutEvents event group and deduplication ids (#10027)
A PutEvents event carried EventGroupId and DeduplicationId in its
SystemMetadata only when the entry gave them. Both are now always set:
DeduplicationId is the given value or a random UUID, and EventGroupId is
the given value or that DeduplicationId. SystemMetadata follows AWS's
key order, aws:IngestionTime always has three fraction digits, and a
FIFO dead-letter queue takes the event's EventGroupId instead of a
random group of its own.
2026-12-02 22:01:04 -04:00
thejrose1984 3a37423474 fix(apigateway): send WebSocket AWS integrations with an sqs:path URI to SQS (#9860) 2026-12-02 21:59:55 -04:00
Priamo Germosen 324910b4dc feat(cloudwatch): estimate quantiles and spreads of histograms in PromQL (#10029)
histogram_quantile, histogram_fraction, histogram_stddev and
histogram_stdvar follow Prometheus v3.16. A native histogram's quantile
is found from the lowest bucket below 0.5 or for a NaN sum and from the
highest otherwise, interpolated exponentially (Go's Log2 and Exp2) or
linearly in the zero bucket, which reaches only to zero when one side
has no buckets; NaN observations give the NaN-result and skew infos.
The fraction interpolates each bound the same way, and the variance
takes each bucket at the geometric mean of its bounds, Kahan-summed.

Float series with an le label are classic histograms, grouped by their
other labels: BucketQuantile and BucketFraction sort, coalesce and raise
falling counts, with the forced-monotonicity info merged over samples
as Prometheus merges it. A malformed or NaN le (read as Go's ParseFloat
reads it) and a native histogram of a classic one's labels are left out
with Prometheus's warnings. quantile, quantile_over_time and
histogram_quantile warn of a quantile outside 0 to 1.

log2 now takes Go's own Log of the fraction rather than Java's Math.log,
which differed in the last bit for some inputs and so moved a quantile
interpolated through it. Shortest number formatting writes the one digit
Go writes for the smallest subnormals (5e-324, where Java's toString
gives 4.9E-324), in the API's numbers and in annotations alike.

Part of #7030.
2026-12-02 21:45:00 -04:00
Jimmy Liu Jia 99a1fef5cf fix(glue): reject unsupported catalog-scoped operations (#10020) 2026-12-02 21:40:04 -04:00
Hector Ventura f610e43bc6 fix(cloudformation): accept SES configuration set tags and options (#10021)
AWS::SES::ConfigurationSet accepted only Name, so a template with Tags
or any option property, including a CDK app with a Tags.of(...) aspect,
ended CREATE_FAILED. The provisioner now accepts Tags and every option
property, validates their shapes against the registry schema and passes
the values to SES. An in-place update writes only the options and tag
keys the stack owns, a tag change is checked against the final set
before anything is written, and a failed update rolls back only what it
changed. Boolean options are read through the shared
resolveOptionalBoolean.
2026-12-02 21:36:36 -04:00
rajp33 758f80673a fix(rds): let rds_replication members use the logical slot functions over SQL (#10007) 2026-12-02 21:23:55 -04:00
XuJian c633ae21cd feat(iot): search thing groups in the AWS_ThingGroups index (#10006) 2026-12-02 21:13:33 -04:00