Commit Graph
433 Commits
Author SHA1 Message Date
TATSUNO “Taz” Yasuhiro 924040aaa1 chore(eventbridgev2): vendor event source request constraints (#9333) 2026-11-24 06:52:30 -04:00
Priamo Germosen 39290aa8be feat(iam): read ElastiCache from the generated tables (#9303)
Move `elasticache` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so ElastiCache requests are checked on the
resources they name instead of `*`: a cache cluster, a replication group, a
parameter or subnet group, a snapshot, a user, a user group or a serverless
cache by the identifier its request names, as <type>:<name>, the ARN
ElastiCache mints. The tag calls name their resource in ResourceName, which
the table does not read, and stay on `*`.

ModifyUserGroup is also checked on each user its UserIdsToAdd and
UserIdsToRemove name, as the Service Reference lists the user type for it:
a type the action acts on that no resource names yet takes its one variable
from a list named after it with ToAdd or ToRemove. Over the whole table this
changes ModifyUserGroup and no other operation.
2026-11-23 20:07:23 -04:00
mrfelek ad651873d6 feat(cloudformation): create and update AWS::EKS::Cluster with EKS Auto Mode (#9284) 2026-11-23 20:04:50 -04:00
Priamo Germosen d1ccad9344 feat(iam): read AWS DMS from the generated tables (#9302)
Move `dms` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py. The Service Reference gives every DMS type
an ARN format ending in a literal `*`, which the reader matches as written:
a request naming a subnet group by its identifier, or creating a
replication instance, is checked on that pattern (subgrp:*, rep:*), where
it was checked on `*`, and a request naming an endpoint, an instance or a
task by its ARN matches no format and stays on `*`.

The generator's rule for an optional ARN member a request leaves out took a
format with no variable for a single resource, so a CreateEndpoint or
ModifyEndpoint with no CertificateArn was also checked on cert:*. It now
skips a format ending in a wildcard, every resource of its type: of the
whole table, four DMS operations change and no other.
2026-11-23 18:54:51 -04:00
Priamo Germosen 422c78866d feat(iam): read AWS Config from the generated tables (#9296)
Move `config` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so Config requests are checked on the
resources they name instead of `*`. A config rule's, configuration
recorder's and conformance pack's ARN ends in an id Config mints, which a
request naming one by its name does not carry, so ConfigStoredResourceArns
answers the table's lookups with the ARN Config stores it under; one Config
holds none of is checked on its name with the id open. The tag calls are
read from ResourceArn.

Two generic readings are added to the generator, changing Config's
PutAggregationAuthorization and PutConfigurationRecorder rows and no other
operation's: a format naming an account or a Region of its own beside the
ARN's takes them from the request's one account id member and its one
Region member, and a member filling one of the format's variables is no
longer also the ARN's account; and a type the request names but fills no
variable of takes its one name variable from the request's structure named
after the type (ConfigurationRecorder.name).

PutConfigRule now updates the rule its ConfigRuleArn names, else its
ConfigRuleId, else its ConfigRuleName, as the PutConfigRule reference lets
an update name its rule by any of the three, and refuses an ARN or id that
names no rule with InvalidParameterValueException. Finding the rule by name
alone let a request carrying one rule's id and another rule's name be
checked on the first and change the second.
2026-11-23 17:28:33 -04:00
Priamo Germosen 8a0903f42b feat(iam): read Comprehend from the generated tables (#9290)
Move `comprehend` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so its requests are read from the generated
request-resources table like the other namespaces'. The detection actions
Floci serves act on no resource type and stay on `*`, as AWS authorizes them;
the classifier, recognizer and endpoint operations are read by their ARN
members. No other namespace's rows change.
2026-11-23 14:10:49 -04:00
Priamo Germosen 172a785d85 feat(iam): read CloudWatch from the generated tables (#9282)
CloudWatch was not read by the generated request-resources table, so under
IAM enforcement every CloudWatch request was checked on `*`: a grant scoped
to one alarm was refused and a deny scoped to one never applied.

Move `cloudwatch` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py. The table reads an alarm from AlarmName or
each of AlarmNames as alarm:<name>, a dashboard from DashboardName or each
of DashboardNames with no Region in its ARN, a metric stream from Name or
each of Names, and a tag call from ResourceARN: the ARNs CloudWatch mints.
Metric data and the list calls name no resource and stay on `*`. No other
namespace's rows change.
2026-11-23 13:02:40 -04:00
mrfelek 2219ec72c2 fix(iam): check OpenSearch's, S3 Tables' and EKS's list calls on the resources AWS checks them on (#9258)
es:ListDomainNames, s3tables:ListTableBuckets and eks:ListClusters act on no resource type in the Service Reference, so Floci checked them on * and refused a policy scoped to domain/*, bucket/* or cluster/*. AWS checks each on that wildcard, as measured in #9039.

Each is now a MEASURED entry of the request-resources generator with that measurement as its evidence, and the table is regenerated with only these three operations changed.

Part of #9039.
2026-11-23 11:22:21 -04:00
Priamo Germosen 4897db0bad refactor(iam): drop the empty HAND_BUILT list and the reader's hand-built check (#9272)
With IAM read from the generated tables, no namespace is built by hand and
HAND_BUILT is empty. Remove it from the request-resources generator (the
tuple, the file's handBuilt key, and the clauses reading a hand-built
namespace's operations only where MEASURED gives them) and from the reader
(RequestResources.builtByHand, the parsed table's handBuilt set, and the
clauses of readsNamespace and IamActionRegistry.checkedAsAws that asked it).

Every operation's resources are unchanged: the generator's offline check
regenerates the same file, without the empty key.
2026-11-23 11:03:51 -04:00
Priamo GermosenandJeremy Chapeau 64f74c6bc4 feat(iam): record IAM API calls in CloudTrail (#9263)
CloudTrail logs every authenticated IAM API request, but Floci recorded
none, so a trail showed no user, key or policy change. Each IAM call now
reaches the logging trails that select it as a management event: the
calls IAM runs, the ones it answers with an error, and the ones IAM
enforcement refuses. requestParameters carries the request's members as
the IAM model types them, responseElements the result of a call that is
not read-only, without sensitive members, and the record carries the
caller's address, read through RequestSourceAddress, and user agent. An
error IAM models is recorded under its error shape's name
(NoSuchEntityException). A refusal, on IAM's policies or because a
GetSessionToken session without MFA cannot make the call, is recorded
as AccessDenied with "requestParameters": null and the message and
request ID of the response the caller receives. The caller is read
before the call runs, so a key that deletes itself is recorded as its
user's, and every call reaches the account's event history whether or
not a trail records it. Basic selectors' ReadWriteType now matches a
management event's readOnly.

IAM is a global service, so only a trail with IncludeGlobalServiceEvents
records its calls, as botocore's CloudTrail model says of the setting.

Which calls are read-only is generated from the Service Reference into
iam-action-resources.json (readOnlyActions). How members are named,
typed and redacted, and each error's shape name, are generated from
botocore's IAM model into iam-cloudtrail-shapes.json through
request_shapes, the walk every vendored shape file shares, which now
keeps an operation's result and its wrapper, the sensitive flag and the
modeled errors when a generator asks for them. Both files are checked
by make aws-data-check.

The integration test reads the trail's log files through
CloudTrailLogFiles, calls CloudTrail through CloudTrailRequests, both
now in io.floci.aws.testing with an Authorization a test under IAM
enforcement signs with, and calls IAM through QueryRequests.

Closes #9013

Co-authored-by: Jeremy Chapeau <jeremy.chapeau@gmail.com>
2026-11-23 10:35:36 -04:00
Priamo Germosen a4b2f01713 feat(iam): read IAM from the generated tables, its paths, signing user and renames from the user guide and API reference (#9252)
IAM is read from iam-request-resources.json now, and ResourceArnBuilder's
IAM branch, the last hand-built namespace, is gone: HAND_BUILT is empty.

What botocore and the Service Reference do not say comes from the IAM
User Guide's identifiers and the IAM API reference, vendored by
fetch_iam_identifiers.py into tools/aws/sources/iam-identifiers.json and
read under PERMISSION_SOURCES.

- A user, group, role, instance profile or server certificate a request
  names by its name is checked on the ARN IAM stores it under, path
  included (IamStoredResourceArns.find), and one IAM does not hold on its
  name under the root path.
- A create is checked on the name its request gives after the Path it
  gives (path), as the identifiers say the API's creates take one.
- UpdateUser, UpdateGroup and UpdateServerCertificate are also checked
  on the resource under its new name and path (renames), as their API
  reference says the caller needs permission on both.
- The twenty operations whose API reference says they act on the user
  signing the request when it leaves out UserName, and ChangePassword,
  are checked on that user (signer), which the new
  StoredResourceArns.signedBy hook gives for the signing key.
- A virtual MFA device is named by its SerialNumber, which the API
  reference gives as its ARN; the access key, SSH public key and
  service-specific credential operations name the user owning what they
  name, and GetServiceLinkedRoleDeletionStatus the role its task
  deleted (IamStoredResourceArns.through).
- MEASURED gives UpdateDelegationRequest, which the Service Reference
  does not list, the request its DelegationRequestId names, citing its
  API reference ("that owner gets a default permission to update the
  delegation request") and the user guide's temporary delegation page.
- CreateServiceLinkedRole is checked on role/*, CreateDelegationRequest
  on delegation-request/* and CreateOpenIDConnectProvider on *, as the
  table gives them. CreateOpenIDConnectProvider refuses an
  IdentityCenterInstanceArn that is not the ARN of an IAM Identity
  Center instance, with InvalidInput.
- Bedrock's ListTrustedAccessPrograms is checked as
  bedrock:CallWithBearerToken, as the Service Reference now authorizes it.
2026-11-23 08:23:04 -04:00
Priamo Germosen b521ee513c feat(eks): store the cluster upgrade policy and update it through UpdateClusterConfig (#9253)
CreateCluster dropped upgradePolicy, DescribeCluster never returned
one, and UpdateClusterConfig refused the member, so Terraform's
aws_eks_cluster with upgrade_policy showed a diff on every plan that
no apply could fix.

CreateCluster now stores upgradePolicy.supportType, EXTENDED when the
request names none, as EKS gives new clusters extended support, and
DescribeCluster returns it. A cluster stored before reports EXTENDED
as well. UpdateClusterConfig takes upgradePolicy as an update type of
its own and answers with a Successful UpgradePolicyUpdate whose
UpgradePolicy parameter holds the policy as JSON, as AWS records it.
A repeated clientRequestToken is matched against it like the other
families, and an unknown support type is refused with
InvalidParameterException.

STANDARD is refused, in AWS's words, for a version past its end of
standard support: on CreateCluster, and on UpdateClusterConfig, which
turns extended support on at any time but off only in standard
support. The end of standard support of each version Floci serves
comes from the Amazon EKS Kubernetes release calendar. A cluster that
named no version counts as in standard support, as the version AWS
gives it is.

AWS::EKS::Cluster creates the cluster with its UpgradePolicy and
updates it in place. A dropped UpgradePolicy returns the cluster to
EXTENDED, a stack rollback restores the policy, and a cluster a stack
created before this gets the policy its template declares on the
stack's next update.

Closes #5640
2026-11-23 08:07:04 -04:00
Priamo Germosen 3a1ea212f0 feat(iam): read DynamoDB from the generated tables, its statement and item permissions from the developer guide (#9235)
DynamoDB is read from iam-request-resources.json now, and
ResourceArnBuilder's DynamoDB branch, the registry's PartiQL action,
the condition resolver's mapping of transaction items and statements to
actions and Step Functions' copy of all three are gone, leaving iam in
HAND_BUILT.

Which action each transaction item and each PartiQL statement is
checked as comes from the developer guide, vendored by
fetch_dynamodb_permissions.py into
tools/aws/sources/dynamodb-permissions.json and read under
PERMISSION_SOURCES: the PartiQL IAM page's required permissions and the
transactions page's paragraph on each kind of item.

- Each transaction item is checked as the action of its kind on the
  table its TableName names (TransactItems[].Put.TableName as
  dynamodb:PutItem), each PartiQL statement as the action of its verb on
  the table or index it names, an EXISTS statement as the SELECT it
  evaluates, which DynamoDB's own parser reads through the new
  StoredResourceArns.statement hook before it binds the request's
  parameters. A request naming nothing is checked as its own action on
  *; a state machine's task naming nothing is left to DynamoDB, as
  before.
- RequestResources.targets replaces checkedAs: each element of a list is
  read apart and returned with its check, so the condition resolver
  still gives each item or statement its own keys and
  dynamodb:EnclosingOperation.
- BatchGetItem and BatchWriteItem name their tables by the keys of
  RequestItems, which the generator reads from botocore (RequestItems{}).
- RequestResourceMembers reads Name{}, Name[].Item.Field and statement
  rows (statement, verb, names).
2026-11-22 22:04:18 -04:00
Priamo Germosen 739a22ab32 feat(iam): read KMS from the generated tables, its permissions from the developer guide (#9221)
KMS is read from iam-request-resources.json now, and ResourceArnBuilder's
KMS branch and the enforcement filter's call around the table are gone,
leaving dynamodb and iam in HAND_BUILT.

What botocore and the Service Reference do not say comes from the KMS
documentation, vendored by fetch_kms_api_permissions.py into
tools/aws/sources/kms-api-permissions.json and read under
PERMISSION_SOURCES: the developer guide's permissions table, the API
reference's sentence that Decrypt and ReEncrypt read their key from the
ciphertext's metadata, and the guide's key identifier formats.

- ReEncrypt is checked as kms:ReEncryptFrom on its source key, or the
  ciphertext's key without one, and kms:ReEncryptTo on its destination
  key, ReplicateKey as kms:ReplicateKey and kms:CreateKey. An operation
  checked as several actions records them (actions, action), which
  RequestResources.checkedAs reads and the filter checks.
- CreateAlias, UpdateAlias and DeleteAlias are checked on the alias and
  the keys the table names, the alias's current key through the alias.
- Decrypt with no KeyId is checked on the ciphertext's key.
- KmsStoredResourceArns finds a key in any state, uses only an enabled
  one for a forwarded request, reaches the key of an alias, a grant or
  a ciphertext, and gives a key's tags.
2026-11-22 20:28:28 -04:00
Priamo Germosen e394329a8b chore(deps): bump botocore to 1.44.9 (#9223)
Moves the pin from 1.43.118 to 1.44.9 and regenerates the data derived
from it.

1.44.9 adds the me-west-1 and sa-west-1 regions, whose optIn and
s3WebsiteDashForm flags come from aws-cdk's aws-entities.ts rather than
botocore, so partitions.json is generated with that file; no existing
region's flags change. AwsPartitionsTest, AwsRegionsTest and
Ec2DescribeRegionsIntegrationTest count 36 commercial regions, 19 of
them opt-in.

The IAM tables aws-data-check-botocore checks are regenerated with it.
The passed-role and tag-on-create tables no longer park any operation
as missing from the pinned botocore, and the passed-role generator's
four MEMBER_NOT_IN_BOTOCORE entries come out, as the reason asks, now
that EventBridge's event sources and WAF v2's web ACLs have the member
naming their role. The DynamoDB and IAM condition key tables are
regenerated too. test_regen_iam_tag_on_create pinned
network-firewall:CreateFirewallPolicyV2 as an operation botocore lacks;
it now checks the tags its request names.

with_parent_ids reads a made resource's parent id from "the one
top-level ARN member named after that type", but request_members keys
a member inside a structure or a list by its whole path, so the
path == member test also took RAM's new
permissionTemplateParameters[].permissionArn and filled the resource
share CreateResourceShare makes with a permission ARN. It now takes a
top-level member alone, which changes that one operation and no other.

Four request members 1.44.9 models were accepted and dropped, as they
were before it, when Floci read them as unknown:

- ECR keeps each replication rule's deleteReplication and returns it
  from PutReplicationConfiguration and DescribeRegistry.
- Lambda MicroVMs keep the kmsKeyIdentifier an image's create or update
  names on each version it builds, and the one RunMicrovm names on the
  MicroVM, and return them where the model has the member.
- STS's GetWebIdentityToken refuses Scope unless SubjectMode is
  OriginIdentity with exactly one audience, and refuses OriginIdentity,
  which reads the calling session's trusted identity propagation
  context, as AWS does a session without one: no Floci session carries
  one. Both answer ValidationError with the reference's own sentence.

LambdaMicrovmImageModeledConstraintsIntegrationTest's invalid cases
follow the model: X86_64 is an architecture now, and an image takes up
to 100 environment variables.
2026-11-22 18:46:45 -04:00
mrfelek d096a6d64e fix(aps): check Amazon Managed Service for Prometheus requests under IAM enforcement (#9085) 2026-11-22 16:09:19 -04:00
mrfelek d45d91c301 chore(iam): regenerate the passed-role and tag-on-create tables from the current Service Reference (#9209)
* chore(iam): regenerate the passed-role and tag-on-create tables from the current Service Reference
* chore(iam): name WAF v2's web ACL roles as members the pinned botocore lacks
2026-11-22 14:53:33 -04:00
Priamo Germosen 0638a7f1d1 feat(iam): read API Gateway from the generated tables, its paths from the developer guide (#9207)
API Gateway leaves ResourceArnBuilder's own branch, and the enforcement filter's call that went around the
table for it: its requests are matched on their botocore routes and checked on the resources the
request-resources table reads. API Gateway authorizes a management call as the HTTP method of the request, on
the resource its path names, which its developer guide says and neither botocore nor the Service Reference
does. fetch_apigateway_arn_formats.py copies the guide's IAM page (the action and resource format sentences)
and its ARN reference tables unchanged into tools/aws/sources/apigateway-arn-formats.json, which
regen_iam_request_resources.py reads: a route authorized as its method is checked on the resource whose
published format is its own path, a Service Reference type before the guide's REST row, the /v2 of HTTP and
WebSocket API paths left out, and a path neither gives a row on the guide's ARN format with that path as its
resource path. The formats the reference does not give are recorded under pathFormats.

RequestResourceMembers reads pathFormats beside arnFormats and takes a hyphen in a path label;
RequestResources URL-encodes a value filling a UrlEncoded variable, so a tagging route acts on
/tags/<URL-encoded ARN> however it sends the ARN, and escapes % and / in a value filling a path-shaped format,
so one label cannot pass for several segments.
2026-11-22 10:09:43 -04:00
Priamo Germosen a9bea6567c fix(emr): give back a cluster's Kerberos realm, OS release, root volume, placement groups and logging settings (#9183)
RunJobFlow dropped the cluster's KerberosAttributes, OSReleaseLabel,
EbsRootVolumeIops, EbsRootVolumeThroughput, PlacementGroupConfigs,
LogEncryptionKmsKeyId, RepoUpgradeOnBoot and MonitoringConfiguration,
so DescribeCluster gave back none of them.

- DescribeCluster gives each back as it was asked for, the placement
  group configs as its PlacementGroups.
- OSReleaseLabel is the one asked for, else the latest Amazon Linux
  release DescribeReleaseLabel lists for the cluster's release, as "If
  no Amazon Linux release was specified, the default Amazon Linux
  release is shown in the response".
- RepoUpgradeOnBoot is SECURITY for a cluster with a custom AMI that
  names none, as "If omitted, the default is SECURITY".
- Of KerberosAttributes only the Realm is kept and given back, never a
  password, and a cluster without them answers an empty structure, as
  AWS does.
- A member the model requires, or a value outside its enum, is refused
  with the framework's ValidationException. So are two placement groups
  for one instance role, and one for the primary nodes of a cluster
  without three of them (three on-demand and no spot for a fleet), in
  the words AWS answers them with.
- As only the primary nodes take a placement group, with SPREAD or NONE,
  another role or strategy is refused, in Floci's words, and a group
  without a strategy gets SPREAD, as the Management Guide says.
- AWS::EMR::Cluster passes these properties to RunJobFlow rather than
  warning that they are not stored.
2026-11-22 01:54:11 -04:00
Priamo Germosen 0171af4bce fix(emr): give back the subnets, zones, instance profile and security groups a cluster asked for (#9180)
DescribeCluster's Ec2InstanceAttributes kept only the key name, subnet,
zone and managed security groups. The JobFlowRole, the instance fleets'
Ec2SubnetIds and Placement.AvailabilityZones, and the additional master
and slave security groups that RunJobFlow took were dropped, so a client
reading the cluster back, as Terraform's aws_emr_cluster does, saw none
of them.

- IamInstanceProfile is the JobFlowRole, "The IAM role that was
  specified when the cluster was launched".
- RequestedEc2SubnetIds and RequestedEc2AvailabilityZones are the ones
  requested, an empty list when none was, as AWS gives them. The subnet
  is the one Ec2SubnetId names, else the first of Ec2SubnetIds, and the
  zone the one Placement names, else the first of its AvailabilityZones.
- A request naming both subnets and zones is refused with
  ValidationException, as "RequestedEc2SubnetIDs and
  RequestedEc2AvailabilityZones cannot be specified together".
- AdditionalMasterSecurityGroups and AdditionalSlaveSecurityGroups are
  the ones given, and a list member of another JSON type is refused
  with SerializationException.
- AWS::EMR::Cluster no longer warns that Instances' Ec2SubnetIds and
  additional security groups are not stored.
2026-11-22 00:48:38 -04:00
Priamo Germosen 5b4bc0e44e feat(iam): read Bedrock from the generated tables, its routes vendored (#9169)
Bedrock leaves ResourceArnBuilder's own branch and the registry's three resource-policy rules: its
requests are matched on their botocore routes and checked on the resources the request-resources table
reads. regen_rest_routes.py vendors the bedrock, bedrock-agent and bedrock-runtime models, all signed
for the bedrock scope; bedrock-agent's are needed because its PutResourcePolicy carries resourceArn in
its path where bedrock's carries it in its body, a member the two clients locate apart.
regen_iam_request_resources.py reads bedrock instead of leaving it to the builder, so a guardrail
request is checked on the guardrail its path names and a resource-policy request on the ARN it carries.
The generator's reader of an ARN pattern's type words also reads one whose account is optional, so the
tag actions are checked on the guardrail or application inference profile ARN they carry, and
regen_iam_tag_on_create.py reads bedrock, so a create carrying tags also needs bedrock:TagResource.

BedrockStoredResourceArns gives IAM the tags Bedrock holds on a guardrail or an application inference
profile, for aws:ResourceTag, read in place and matched on the whole ARN; a guardrail's untag now
replaces its tag map rather than editing it, so a reader never sees half of one, and both models keep
their tags volatile.
2026-11-22 00:01:33 -04:00
Priamo Germosen cff222a6f1 fix(emr): keep instance fleets' launch and resize specifications, and modify their configs (#9168)
An instance fleet dropped the LaunchSpecifications, ResizeSpecifications
and Context that RunJobFlow and AddInstanceFleet gave it, and
ModifyInstanceFleet changed its target capacities alone, ignoring the
ResizeSpecifications, InstanceTypeConfigs and Context it took.

- A fleet keeps its LaunchSpecifications, ResizeSpecifications and
  Context, and ListInstanceFleets gives them back.
- ModifyInstanceFleet changes the ResizeSpecifications, InstanceTypeConfigs
  and Context it gives. The configs replace the fleet's own, as the
  Management Guide warns that "Not including fields can result in
  overwriting specifications you declared at launch", and must name
  every instance type the fleet has, as "You must include all instance
  types that are part of your instance fleet in the modify request". A
  request that leaves one out is refused with InvalidRequestException.
  Its configs are checked as AddInstanceFleet checks them, and on both
  calls specifications that are not an object, or a Context that is not
  a string, are refused with SerializationException.
- AWS::EMR::Cluster no longer warns that a fleet's launch and resize
  specifications are not stored, and AWS::EMR::InstanceFleetConfig now
  applies a change to InstanceTypeConfigs or ResizeSpecifications in
  place rather than warning. A rollback puts them back, but not an
  instance type the update added, which every later request must
  include, nor resize specifications where the fleet had none, which no
  request can clear. The update is checked as ModifyInstanceFleet checks
  its request, before anything changes, and dropped configs or resize
  specifications are kept.
2026-11-21 20:29:04 -04:00
Priamo GermosenandChuck Swanberg 543a236747 feat(cloudformation): provision Verified Permissions policy stores, templates and policies (#9162)
A template declaring AWS::VerifiedPermissions::PolicyStore, PolicyTemplate or Policy failed its stack
as unsupported, although Floci serves the API behind them. VerifiedPermissionsCfnProvisioner now
provisions the three over VerifiedPermissionsService.

A policy store answers Ref with its id and sets Arn, PolicyStoreId and EncryptionState; its schema is
put once the store stands, and deletion protection is turned on only after that, so a store whose
schema the Cedar sidecar refuses is still removed. A template answers Ref with
PolicyStoreId|PolicyTemplateId and a policy with its id alone, as the Template Reference documents
each; a policy's store is found from its id, and Cloud Control names a policy
PolicyId|PolicyStoreId. PolicyStoreId is create-only on both, and a template or a policy is replaced
in the new store when the engine says the update replaces it. A schema, Description,
DeletionProtection or Name the template drops is cleared, what the stack never declared is left as
the service has it, and a create leaves out an optional field the template does not give. An update
of a stack from before this provisioner, which holds the dispatcher's stub, creates the entity.

An in-place change of a store, a template or a static policy is snapshotted first, so a step that
fails is undone and a later resource failing the update puts it back. A store's settings are
written before its schema, its tags are reconciled only over the keys the stack owns, and a change
of its EncryptionSettings is refused, since Verified Permissions sets encryption at create. Cloud
Control's model names a store by PolicyStoreId and a template by PolicyTemplateId.

Co-authored-by: Chuck Swanberg <cswanberg@mad-swan.com>
2026-11-21 19:47:19 -04:00
Priamo Germosen 5a912d5263 fix(emr): keep instance groups' volumes, AMI and shrink policy, and list instances' volumes and public address (#9163)
An instance group dropped the EbsConfiguration and CustomAmiId that
RunJobFlow and AddInstanceGroups gave it, and ModifyInstanceGroups its
ShrinkPolicy, and ListInstances gave no instance an EbsVolumes or a
PublicIpAddress.

- A group keeps its EbsConfiguration and CustomAmiId, and
  ListInstanceGroups gives them back as its EbsBlockDevices, one per
  volume named /dev/sdb on as a fleet's are, its EbsOptimized and its
  CustomAmiId, under the same limit of 25 volumes per instance.
- ModifyInstanceGroups keeps a group's ShrinkPolicy, which
  ListInstanceGroups gives back, and a shrink it comes with follows its
  InstanceResizePolicy: the instances it names to terminate end first,
  then the group's last instances, passing the protected ones. They end
  as EC2InstanceIdsToTerminate ends them, so their ids are not taken
  again, and a later entry for the same group counts from what an
  earlier one leaves. An id to terminate that is not a running instance
  of the group is refused, as EC2InstanceIdsToTerminate refuses it, and
  so is a shrink the protected instances leave short.
- ListInstances gives each instance the PublicIpAddress its
  PublicDnsName names, in 203.0.113.0/24 for a cluster's first 254
  instances and in 100.64.0.0/10 past them, and an EbsVolumes entry for
  each device its group or instance type config gives it, with volume
  ids that differ between clusters. A group's instances' EC2
  descriptions give its CustomAmiId as their image.
- AWS::EMR::Cluster no longer warns that a group's EbsConfiguration and
  CustomAmiId are not stored.
2026-11-21 19:32:36 -04:00
Priamo Germosen 1cad7b2b62 refactor(iam): drop the hand-routed scopes from the vendored routes (#9160)
S3 was the one credential scope rest-routes.json listed as hand-routed, authorized by the registry's
rules alone, and #9155 moved it onto its generated routes. The list is empty, so its machinery goes:
regen_rest_routes.py no longer writes handRouted or a hand-routed scope's required members,
IamRestRoutes reads every model, regen_iam_authorized_actions.py takes every model's scope as routed,
and the coverage test builds requests from what a route requires alone.
2026-11-21 18:44:12 -04:00
Priamo Germosen 5db8d098e7 feat(cloudformation): provision EMR steps, instance groups and instance fleets (#9159)
A template can now create AWS::EMR::Step, AWS::EMR::InstanceGroupConfig
and AWS::EMR::InstanceFleetConfig. None was served, so the stack
reported CREATE_COMPLETE with nothing behind it. EmrCfnProvisioner adds
them through AddJobFlowSteps, AddInstanceGroups and AddInstanceFleet,
reading each as those calls read their requests, from methods EmrHandler
now shares, and against the registry schemas, now in the vendored
property types.

- A step's Ref and Id are its id, and its LogUri and EncryptionKeyArn
  are its StepMonitoringConfiguration. Every property is create-only,
  so a change adds a new step, and a step stays in its cluster's
  history when deleted, as the schema's delete handler calls nothing.
- An instance group's Ref and InstanceGroupId are its id. Its
  InstanceCount and AutoScalingPolicy change in place, and the delete
  removes its policy and shrinks it to nothing, as a group cannot be
  removed from its cluster.
- An instance fleet's Ref and InstanceFleetId are its id. Its target
  capacities change in place through ModifyInstanceFleet, and a change
  to InstanceTypeConfigs or ResizeSpecifications is accepted with a
  warning and not applied, as Floci's ModifyInstanceFleet changes the
  capacities alone. The delete shrinks it to nothing.
- A create-only change adds a new group or fleet; a later resource's
  failure, or a failure of the update itself, puts back what it had
  changed; and a group or fleet whose cluster has ended is left alone.

A group's role and a fleet's type must be TASK, the one value the
template reference allows, and a delete shrinks one once its cluster
is running or waiting, waiting for one still starting, and removes a
policy the group has.
2026-11-21 18:36:49 -04:00
Priamo Germosen 4735606fb9 feat(iam): read S3 and S3 Control from the generated tables (#9155)
S3 leaves the registry's hand rules and ResourceArnBuilder's S3 branch: its requests are matched
on their botocore routes, checked as the actions the authorized-actions file gives them, on the
resources the request-resources table reads. regen_rest_routes.py no longer lists s3 as hand-routed,
and regen_iam_request_resources.py reads s3 instead of leaving it to the builder; the tables gain
S3's and S3 Control's 195 operations and nothing else changes. Operations sharing a route are told
apart by the query parameters and headers botocore requires, an S3 Control request by its route's
model, which also picks S3 Control's error envelope (isS3ControlRequest), and a member the two
clients locate apart is read for the client whose route the request matched.

An object key is read as S3 reads it, keeping the slashes it was sent with, through
RequestPathLabels, a per-namespace hook S3 implements with S3ObjectKeys. DeleteObjects names its
keys in its XML body, so it takes s3:DeleteObject's types from the S3 user guide's Either row and is
unread: the filter leaves it to S3, which checks each key.

The registry's S3 rules, S3 Control rules and sub-resource overrides are deleted, with the tests of
Floci's own handler order, the regional S3 Control ARN form, and a version for HEAD, HEAD
?annotation and Select, none of which an AWS source gives.

S3 also runs only what botocore routes, so what runs is what is checked: a request naming annotationName
is GetObjectAnnotation and a HEAD naming one HeadObject, SelectObjectContent runs on
?select&select-type=2 and reads the current version, the S3 Control tagging handler decodes its ARN
once, and a request two operations' routes take alike is refused under enforcement.
2026-11-21 17:44:36 -04:00
Priamo Germosen 546770ab69 feat(cloudformation): provision AWS::EMR::Cluster (#9156)
A template can now create an EMR cluster. It was not served, so the
stack reported CREATE_COMPLETE with nothing behind it. EmrCfnProvisioner
creates it through RunJobFlow, reading the template as RunJobFlow reads
its request, from a method EmrHandler now shares.

- The properties are read as model validation reads them, against the
  registry schema, now in the vendored property types, and a template
  that sets the read-only Id or MasterPublicDNS is refused.
- Ref is the cluster id; Fn::GetAtt gives Id and MasterPublicDNS.
- The master, core and task groups or fleets become RunJobFlow's
  InstanceGroups or InstanceFleets with their roles, a configuration's
  ConfigurationProperties its Properties, and a step's StepProperties
  its Properties. The create completes once the cluster is waiting or
  running, and a cluster that terminates first fails it and is
  terminated again, its termination protection cleared first.
- The properties, and members of Instances, its groups and its fleets,
  that Floci's RunJobFlow keeps nothing of are accepted with a warning,
  and recorded as ignored. Task groups and fleets need unique names, as
  the reference says, and a cluster that ran its steps and ended came
  up, so its create completes.
- An update applies in place what the reference and the update handler
  let change: AutoTerminationPolicy, ManagedScalingPolicy,
  StepConcurrencyLevel, VisibleToAllUsers, TerminationProtected,
  UnhealthyNodeReplacement, a core or task group's InstanceCount and
  AutoScalingPolicy, a core or task fleet's target capacities, and the
  tag keys the stack owns. They are compared with the values the stack
  last applied, resolved, so one a parameter changes counts. Any other
  change, within Instances included, replaces the cluster: the master
  group's count and the master fleet's capacities among them, which
  the API refuses to change.
- A later resource's failure, or a failure of the update itself, puts
  back what it had applied. A terminated cluster fails an update, and a
  termination-protected one refuses the delete, as TerminateJobFlows
  does.
2026-11-21 17:31:03 -04:00
Priamo Germosen 1fe555fbc2 feat(cloudformation): provision EMR security configurations, Studios and session mappings (#9152)
A template can now create AWS::EMR::SecurityConfiguration,
AWS::EMR::Studio and AWS::EMR::StudioSessionMapping. None was served,
so the stack reported CREATE_COMPLETE with nothing behind it. They go
through the services the EMR API uses, and the properties are read as
model validation reads them, against the registry schemas, now in the
vendored property types.

- A security configuration's Ref is its name, generated when the
  template gives none; its JSON is taken as an object or its text. Both
  properties are create-only, so a change replaces it, and one that
  keeps a template's own name is refused, as for every custom-named
  resource.
- A Studio's Ref is its id; Fn::GetAtt gives StudioId, Arn and Url, and
  a template that sets one of them is refused. UpdateStudio applies the
  Name, Description, SubnetIds and DefaultS3Location the template
  changes, and the tags change for the keys the stack owns. A change to
  IdpAuthUrl or IdpRelayStateParameterName is accepted with a warning
  and not applied, as no Studio API changes them, and a create-only
  change replaces the Studio.
- A session mapping's Ref is StudioId|IdentityType|IdentityName, its
  primary identifier; SessionPolicyArn updates in place, and another
  identity replaces it.
- A later resource's failure, or a failure of the update itself, puts
  back what the update changed, but a Studio's added subnets, which
  UpdateStudio cannot take away. A gone resource fails an update and
  counts as deleted.

Two shared fixes go with them. Model validation now looks for a schema
pattern in a value, as the validator CloudFormation runs does, instead
of matching the whole value, so a Studio named with spaces passes. And
CreateSecurityConfiguration, from the API or a stack, refuses a
configuration that is no JSON object, which a cluster naming it could
not read.
2026-11-21 16:34:12 -04:00
Paulo CostaandPriamo bd58181a41 feat(cloudformation): provision AWS::Events::Connection (#7718)
* feat(cloudformation): provision AWS::Events::Connection
* feat(cloudformation): roll back an AWS::Events::Connection updated in place
* feat(cloudformation): address review of the Connection provisioner
* fix(cloudformation): match AWS when an AWS::Events::Connection drops a description
* fix(cloudformation): clear a stale Connection rollback snapshot before any check
* test(cloudformation): add AWS::Events::Connection's change-exempt row

Co-authored-by: Priamo <pgermosen@gmail.com>
2026-11-21 15:55:42 -04:00
Priamo Germosen 1a107f8f46 feat(iam): read members clients locate apart, S3's key shape and unread bodies (#9151)
Four rules of the request-resources generator that S3 needs to be read from the table, which leave the
table as it is while S3 is still built by hand.

A member the clients of an operation carry in different places, a body the reader reads among them, is
recorded under each client locating it (locatedApart: S3's CreateBucket carries its Bucket as {Bucket},
S3 Control's as {name}), and the reader takes the members of the client whose vendored route the request
matched; a split by a client with no vendored routes is refused. A member whose botocore shape is named
as the type and Key fills the type's name (S3's Key, an ObjectKey, the object's ${ObjectName}). A type
named exactly as what an operation makes rules out one only ending with that name (PutObject makes an
object, not an accesspointobject). An operation of a REST-XML model naming what it acts on in its body
by such a key shape, which the reader does not read, is recorded unread (DeleteObjects'
Delete.Objects[].Key), and RequestResources.reads, of and ofBody leave it to its service.
2026-11-21 15:37:05 -04:00
Priamo Germosen 5b9e842cd9 feat(cloudformation): provision AWS::EMRContainers::VirtualCluster (#9150)
A template can now create an EMR on EKS virtual cluster. It was not
served, so the stack reported CREATE_COMPLETE with nothing behind it.
The provisioner goes through the service the EMR on EKS API uses, and
does what AWS's own resource handler does:

- The properties are read as the handler's model validation reads them,
  against the registry schema, now in the vendored property types, and
  a template that sets the read-only Arn or Id is refused in the
  handler's words.
- Ref is the virtual cluster id; Fn::GetAtt gives Id and Arn.
- A create sends Name, ContainerProvider, SecurityConfigurationId,
  SessionEnabled and the tags to CreateVirtualCluster.
- Every property but the tags is create-only: a change replaces the
  virtual cluster, and the old one is terminated once the update
  commits.
- A tag change drives the tags to the template's, removing any other
  but an aws: one; a later resource's failure, or a failure of the
  change itself, puts them back.
- An update of a virtual cluster that is terminated or gone fails as
  the handler's does, and the delete of one is taken as done.
2026-11-21 15:03:44 -04:00
Priamo Germosen 84cea7714a feat(iam): read S3's actions from its user guide, by model and by version (#9147)
Where the Service Reference gives an S3 operation no one answer, S3's user guide does.
tools/aws/fetch_s3_required_actions.py copies its "Required permissions for Amazon S3 API operations"
rows unchanged into tools/aws/sources/s3-required-actions.json, and the authorized-actions generator
reads them: an operation's one required action (ListObjectsV2 is s3:ListBucket, CopyObject
s3:PutObject), the action for one model's requests of an operation S3 and S3 Control both have
(authorizedByModel: S3 Control's account-level GetPublicAccessBlock is s3:GetAccountPublicAccessBlock),
and an Either row's choice by versionId where botocore gives it in the query (versioned). Measured
entries quote the Service Authorization Reference for the account-level GetPublicAccessBlock the page
mislabels and the version annotation actions it omits. The one answer the reference gives an operation
several clients list goes to the namesake client (S3's GetBucketLifecycleConfiguration is
s3:GetLifecycleConfiguration), and the file records the reference's spelling of an action named as its
operation in another case (MemoryDB's CreateACL is memorydb:CreateAcl).

IamAuthorizedActions reads the new sections and gives an action for a route's model and query, which
IamActionRegistry uses wherever it reads a route's action. S3 stays hand-routed, so its rules still
decide its requests; only the spellings show, in the action an AccessDenied message names. A hand-routed
scope's routes list what their requests must carry, for the coverage test, which now also checks each
model-specific action against that model's routes.
2026-11-21 14:13:43 -04:00
Priamo Germosen 858bf8d2db feat(cloudformation): provision AWS::EMRServerless::Application (#9148)
A template can now create an EMR Serverless application. It was not
served, so the stack reported CREATE_COMPLETE with nothing behind it.
The provisioner goes through the services the EMR Serverless API uses,
so a stack and a direct call see the same application, and it does what
AWS's own resource handler does:

- The properties are read as the handler's model validation reads them,
  against the registry schema, now in the vendored property types; an
  Architecture outside its enum and a read-only ApplicationId or Arn
  are refused.
- Ref is the application id; Fn::GetAtt gives ApplicationId and Arn.
- A create sends every property to CreateApplication, the Key/Value
  lists of InitialCapacity and LogTypeMap as the API's maps.
- An update sends UpdateApplication the settings the template changed
  and drives the tags to the template's, removing any other. A dropped
  setting stays as it is, but for InitialCapacity, which the handler
  sends as an empty map, and so clears.
- Name and Type are create-only: a change replaces the application, and
  the old one is deleted once the update commits.
- A later resource's failure puts back the settings and tags the update
  changed; a failure of the update itself puts back what it had changed
  by then, nothing when UpdateApplication refused it, and a restore that
  fails keeps its snapshot for ContinueUpdateRollback.
- Neither an update nor a delete stops a STARTED application, so one
  the API refuses fails the resource, as on AWS.

The vendored create-only properties and schema surface also take AWS's
new AWS::CertificateManager::Certificate properties, RootHierarchyType
and CertificateUsage, which their drift checks on this change asked
for; the ACM provisioner accepts and ignores both.
2026-11-21 13:59:46 -04:00
Priamo Germosen 2e00917c69 feat(iam): tell apart the operations of a REST route by what botocore requires (#9143)
Thirteen of botocore's S3 routes name more than one operation (PUT /{Bucket}/{Key+} is PutObject,
CopyObject, UploadPart or UploadPartCopy), which is why S3 is hand-routed. The route generator now gives
each operation of a shared route the query parameters and headers of the members its input requires, and
marks a deprecated one. An operation botocore's endpoint rules sign for another service on every request
is left out of the scope's routes and listed under signedElsewhere: S3's ListDirectoryBuckets
(s3express) and WriteGetObjectResponse (s3-object-lambda). The check that a route's operations leave
every request one operation now covers the hand-routed scopes too: no two current ones may require the
same, and what any two require together must be what one of them requires. It passes for S3.

IamRestRoutes matches a route only for a request carrying all its operation requires, headers in any
case, ranks a route requiring all another requires and more above it and a current operation above a
deprecated one, and gives a match its model. IamActionRegistry passes the request's headers wherever it
matches a route. S3 stays hand-routed and no route outside it is shared, so no request is authorized
differently.
2026-11-21 11:45:16 -04:00
Oleksandr Nikolaichuk 9b19f17fe7 fix(cloudformation): update an EKS cluster's logging, authentication mode and endpoint access in place (#8871)
* fix(cloudformation): update an EKS cluster's logging, authentication mode and endpoint access in place
* test(cloudformation): pin an EKS cluster's config updated in place and rolled back
* fix(cloudformation): fail an EKS cluster update that drops its subnet or security group list
* test(cloudformation): pin a refused EKS subnet or security group change
* fix(cloudformation): restore only the EKS cluster settings an update changed
* test(cloudformation): pin an EKS rollback that keeps settings the update did not change
2026-11-21 09:37:14 -04:00
Matheus André e725ed6e9a feat(cloudformation): store Tags on AWS::BedrockAgentCore::RuntimeEndpoint (#8510)
The provisioner passes the endpoint's resolved tags to CreateAgentRuntimeEndpoint,
reconciles tag-only changes and removals in place without touching the endpoint
configuration, and restores the prior tags on a failed update and on stack rollback.
The runtime, endpoint and memory reconcile their tags through CfnRollback.reconcileTags.

A failed undo's snapshot is carried onto the restored resource by the new
CfnRollback.carryFailedUndoSnapshot, now shared by AppConfig, AppSync, the REST API,
ELBv2 and Bedrock AgentCore, so ContinueUpdateRollback retries the restore.

The RuntimeEndpoint Tags gap row and the "accepted and not stored" notes are removed.

Closes #7893
2026-11-21 09:18:38 -04:00
Jonathan Morley 16ca3a5a7d fix(cloudformation): provision AWS::CodeDeploy::Application (#8882) 2026-11-20 22:10:47 -04:00
Priamo Germosen ff997036a6 fix(iam): check EC2 Instance Connect requests on the instance they name (#9115)
The request resources generator did not read ec2-instance-connect yet,
so SendSSHPublicKey and SendSerialConsoleSSHPublicKey were checked on *,
and a grant or a deny on an instance's ARN never applied to them. The
namespace moves from NOT_COVERED to NAMESPACES and the table gives both
operations the instance their InstanceId names,
arn:${Partition}:ec2:${Region}:${Account}:instance/${InstanceId}, the
ARN EC2 gives its instances, as botocore and the Service Reference give
them. A full regeneration changes nothing else.
2026-11-20 18:44:38 -04:00
Priamo Germosen 3027145979 fix(iam): check CloudWatch Logs requests on the resources they name, from the generated table (#9088)
CloudWatch Logs was built by hand: ResourceArnBuilder built a group or
stream ARN for six operations and resolved the tag operations' ARN
itself, every other Logs operation was checked on *, and only the
vended-log delivery operations and PutDestination were read from the
request resources table, through READ_IN_HAND_BUILT. logs moves from
HAND_BUILT to NAMESPACES, so the table gives each of its 118
operations the log group, stream, destination or delivery resource its
request names, from botocore and the Service Reference: PutLogEvents,
FilterLogEvents, metric and subscription filters, StartQuery and the
other operations on a group or stream are checked on it, no longer on
*. READ_IN_HAND_BUILT, whose only entries were Logs', goes with its
checks and tests. ResourceArnBuilder's buildLogResources and the
filter's Logs case go; the tagged CreateLogGroup check reads the
table's bare group ARN, which the evaluator already matches with or
without the trailing :* for the group's management actions.
CloudWatchLogsStoredResourceArns answers the stored tags of a log
group, a destination and the delivery family; IamConditionContextResolver
keeps only the request tags of Logs' create and tag calls. Log group
tag writes give the group a new map under the lock creating and
deleting a group take, so one racing a delete cannot put the group
back, and its tags field is volatile. Only Logs' operations change in
the table.
2026-11-20 16:21:08 -04:00
Aniket Shukla 306bcf8c5b fix(core): route JSON services over Smithy RPC v2 CBOR (#8592)
* fix(core): share JSON dispatch with RPC v2 CBOR
* fix(core): adapt modeled blobs and timestamps for RPC v2 CBOR
* fix(core): preserve CBOR event streams and compact wire models
* test(paymentcryptography): avoid random CVV verification collisions
2026-11-20 14:09:47 -04:00
Murtuza Chhil 017e635edf feat(paymentcryptography): the AS2805 KEK validation (#9065)
GenerateAs2805KekValidation is served on the Payment Cryptography data
plane. Two AS2805 nodes prove they hold the same key encryption key: the
request form makes a random number with Single DES odd parity and returns
it enciphered under one variant of the key, and the response form
deciphers a number, inverts it and returns it enciphered under another
variant. The key is a Triple DES TR31_K0 key encryption key; the request
form needs Encrypt and the response form both Decrypt and Encrypt.

The AS2805 Triple DES check and the key lookup now live in
PaymentCryptographyKeyRules, shared with the key exchange, card
validation, authorization cryptogram and PIN operations.
2026-11-20 14:07:01 -04:00
Priamo Germosen dc97ce5cb1 fix(iam): check Resource Groups requests on the groups the generated table gives them (#9074)
Resource Groups was built by hand: ResourceArnBuilder read a group from
the body's Group or GroupName, or CreateGroup's Name, the request
resources table held no Resource Groups operation, and nothing gave a
policy condition a group's tags. resource-groups moves from HAND_BUILT
to NAMESPACES, so the table gives each operation the group its Group
names, by its name or its ARN, and the ARN a tagging route carries;
CreateGroup, for which the Service Reference lists no resource type, is
checked on *, as AWS checks it. ResourceArnBuilder's Resource Groups
branch goes. ResourceGroupsStoredResourceArns answers a group's stored
tags, read in place from the group record the service stores whole. Only
Resource Groups' operations change in the table.
2026-11-20 07:03:52 -04:00
Priamo Germosen e8f16911d2 fix(iam): check EKS requests on the resources the generated table gives them (#9070)
EKS was built by hand: ResourceArnBuilder walked an EKS path, looked
each resource up through EksService, and checked a tagging route on the
caller's cluster named after the ARN's last segment; the request
resources table held no EKS operation, and nothing gave a policy
condition an EKS resource's tags. eks moves from HAND_BUILT to
NAMESPACES, so the table gives each operation the cluster its path
names, the node group, add-on or Fargate profile EksStoredResourceArns
finds by its cluster and name, the ARN a tagging route carries, and
parts of an ARN the request does not give open. CreateCluster, for which
the Service Reference lists no resource type, is checked on the cluster
its body names from a MEASURED entry quoting the EKS user guide's
example policy for creating a cluster. ResourceArnBuilder's EKS section
and its EksService dependency go. EksStoredResourceArns answers the
stored tags of a cluster, node group, Fargate profile, add-on, Pod
Identity association or access entry; EKS's tag changes take one lock
and give a cluster, node group or Fargate profile a new map, whose tags
field is now volatile, and a cluster is tagged only when its ARN is the
whole ARN the request names. Tag changes and tag reads find a cluster,
node group or Fargate profile through one lookup, and an ARN with a part
left open is not looked up. Read from its model, EKS tags only on
/tags/{resourceArn} with the ARN encoded, as the SDKs send it, so the
tagging tests that sent it unencoded now encode it. Only EKS's
operations change in the table.
2026-11-19 23:25:25 -04:00
Priamo Germosen 1a888867ad fix(iam): check STS requests on the resources the generated table gives them (#9033)
STS was built by hand: ResourceArnBuilder checked AssumeRole on the role
its RoleArn named and every other operation on *, IamEnforcementFilter
sent STS requests there by action, and the request resources table held
no STS operation. sts moves from HAND_BUILT to NAMESPACES, so the table
gives each operation what the Service Reference and botocore give it:
AssumeRole the role its RoleArn names, as before, GetFederationToken the
federated user its Name names and AssumeRoot the root user, where the
hand builder checked both on *, and the operations that act on no
resource type * as before. StsStoredResourceArns answers that a role IAM
holds in the account its ARN names is assumed there, as the handler
finds it, so a cross-account AssumeRole is checked on that role alone
and not also on the caller's role of that name. ResourceArnBuilder's STS
section and the filter's STS case go. Only STS's operations change in
the table.
2026-11-19 21:56:53 -04:00
Andre Kurait 430088b772 fix(ci): pass IAM drift changed paths through a file (#9025)
A large pull request diff could fail the IAM data gate before any check
ran, because the workflow passed every changed path in one make argument
("Argument list too long"). The workflow now writes the paths to a file
and iam-data-verify reads it through CHANGED_FILE, keeping affected-check
selection, the CHANGED interface, full verification for an empty diff or
the weekly run, and the report of every failed check. A Python test runs
the target with stubbed checks for each of those cases.
2026-11-19 21:19:01 -04:00
Andre Kurait 875794c538 fix(iam): select EC2 interface and endpoint authorization resources (#8892)
* fix(iam): select EC2 interface and endpoint authorization resources
2026-11-19 19:24:56 -04:00
rajp33 9f959a3f27 feat(iot): support SetV2LoggingOptions and GetV2LoggingOptions (#8945)
* feat(iot): support SetV2LoggingOptions and GetV2LoggingOptions
* fix(iot): keep omitted V2 logging options and require role and level on first set
* fix(iot): validate SetV2LoggingOptions log level and member types
* fix(iot): answer SetV2LoggingOptions with an empty body
* test(iot): cover V2 logging setup, updates, errors and account scoping in the SDK suite
* test(iot): sign V2 logging requests with the shared EnforcementFixtures.auth helper
* test(iot): cover V2 logging persistence and document eventConfigurations and verbose limits
* docs(iot): count the V2 logging routes in the service matrix
* fix(iot): reject a SetV2LoggingOptions body that is not a JSON object
* fix(iot): reject a blank roleArn in SetV2LoggingOptions
* fix(iot): serialize the SetV2LoggingOptions read-merge-write
* test(iot): share one IoT client builder in the SDK fixtures
* fix(iot): stop refusing a blank roleArn in SetV2LoggingOptions
* fix(iot): build the V2 log level refusal with SmithyValidationErrors
* refactor(iot): share IoT request body readers between logging and fleet indexing
2026-11-19 19:14:50 -04:00
Jeremy Chapeau 3a9f529158 fix(sts): give AssumeRole's identity-based policies the sts:RoleSessionName and sts:ExternalId keys (#8922)
With IAM enforcement on, the caller's identity-based policy, permissions boundary, session
policy and SCPs were evaluated for sts:AssumeRole without the request's sts:RoleSessionName
and sts:ExternalId, which the role's trust policy already sees, so a condition on either never
matched. The Service Authorization Reference lists both among the condition keys of
AssumeRole. STS now joins the generated request condition key table, which reads them from the
AssumeRole form; an AssumeRole without ExternalId names no sts:ExternalId. AssumeRoleWithSAML
carries no session name member, so it is listed as not reading it from the request.

sts:SourceIdentity, sts:TransitiveTagKeys and the session tag keys are not read: Floci does not
model source identity or session tags, as the STS page already says.

Closes #8921
2026-11-19 17:17:17 -04:00
Priamo Germosen 66dbdd2935 fix(iam): check Aurora DSQL requests on the clusters they name, from the generated table (#9011)
Aurora DSQL was built by hand: ResourceArnBuilder read a cluster or
stream from its path, or a tagging route's ARN, IamEnforcementFilter
sent DSQL requests there without their operation, the request resources
table held no DSQL operation, and nothing gave a policy condition a
cluster's tags. dsql moves from HAND_BUILT to NAMESPACES, so the table
gives each operation the cluster or stream its path names, or the ARN
its modeled /tags/{resourceArn} carries, from botocore's REST model;
ListClusters, for which the Service Reference lists no resource type, is
checked on cluster/* from a MEASURED entry citing the AccessDenied
message AWS returned in #6328. ResourceArnBuilder's DSQL branch, with
the path and tagged-ARN helpers only it still used, and the filter's
DSQL case go, and the shared tags controller now serves DSQL's
tagging on its modeled route only, refusing the bare /tags. Only DSQL's
operations change in the table. DsqlStoredResourceArns answers a
cluster's stored tags; TagResource and UntagResource give the cluster a
new map under its lock, and its tags field is volatile.
2026-11-19 13:31:17 -04:00