EMR's application UI operations, CreatePersistentAppUI,
DescribePersistentAppUI, GetPersistentAppUIPresignedURL and
GetOnClusterAppUIPresignedURL, were not served.
Floci now keeps a cluster's persistent application UIs, with the types
its release and applications give it (the Spark History Server from
5.25.0, the Tez UI and YARN timeline server from 5.30.1), refusing a
cluster with more than one primary node and an account past 200, and
reports whether the cluster's security configuration turns on runtime
roles. It serves none of those UIs: a presigned URL, persistent or
on-cluster, opens a signed one-hour page of Floci's about the cluster
and the interface asked for.
The link signing of EMR Serverless's dashboards and these pages is one
helper, core.common.LinkSigner, and their HTML page and table rows come
from core.common.Html.
The generated request resources give OAM's sink and link types the
aws:ResourceTag/ key, but OamService answered no tags, so a condition
on a sink's or a link's tags saw none. OamService.storedTags now reads
the sink or link stored under the ARN in the account it names, in
place, matched on the whole ARN they are kept by. Tagging and untagging
now take the service's lock, so two tag calls on one resource keep each
other's tags, and the tag fields are volatile; setTags already puts a
new map in place of the held one.
EMR's notebook execution operations, StartNotebookExecution,
DescribeNotebookExecution, StopNotebookExecution and
ListNotebookExecutions, were not served.
Floci now keeps notebook executions and their lifecycle, without running
a notebook. An execution needs a RUNNING or WAITING cluster that meets
the EMR Notebooks cluster requirements (release 5.18.0 or later, with
Hadoop, Spark and Livy, and Jupyter Enterprise Gateway from 5.32.0 or
6.2.0), and an account runs at most 100 at once in a Region. It is
RUNNING from its start and FINISHED once the cluster's step duration has
passed, with AWS's "Execution is finished for cluster ..."; it stops at
once as STOPPED, and FAILS when its cluster shuts down first or after 30
days. ListNotebookExecutions gives the newest first, within its From and
To window (by default the last 30 days), 50 to a page. Executions are
stored apart from their clusters, and IAM's resource-tag conditions read
their tags.
EMR's release comparison, its enum check, the time a cluster began to
shut down, and reading an ARN's id and a resource's tags for IAM are
now shared helpers, which CancelSteps, sessions, Studios and clusters
use too.
The generated request resources give IAM Identity Center's instance,
permission set, application and trusted token issuer types the
aws:ResourceTag/ key, but SsoAdminService answered no tags, so a
condition on such a resource's tags saw none. SsoAdminService.storedTags
now reads them as ListTagsForResource does, in place: the resource the
ARN names, found as the handlers find it by its whole ARN, then the tags
a tagging call left on it or else its own. Its tag writes already put a
new map in place of the held one.
EMR's Studio operations, CreateStudio, DescribeStudio, ListStudios,
UpdateStudio and DeleteStudio, and its Studio session mappings, Create,
Get, List, Update and DeleteStudioSessionMapping, were not served.
Floci now keeps Studios, checked against its own EC2 and IAM Identity
Center: a Studio's VPC, at most 5 subnets and its two security groups
must exist, the subnets and groups in the VPC; an SSO Studio needs a
UserRole and an IAM one may not have one, and the IdP members are for
IAM Studios only; an SSO Studio needs the account's IAM Identity Center
instance, or the one it names. UpdateStudio keeps every earlier subnet.
A session mapping is for an SSO Studio, names its user or group by id
or by name but not both, and that identity must be in the instance's
identity store, and is found again by the id or name it was made with.
Studios and mappings list in the order they were made, by a sequence no
deletion frees. AddTags and RemoveTags take a Studio's id, and IAM's
resource-tag conditions read a Studio's tags.
Floci serves no Studio: its URL is on Floci's own address.
Identity Store gains typed lookups of a user by name and a group by id
or display name, and EMR's random id helper is shared.
The generated request resources give ten CloudFront types the
aws:ResourceTag/ key, but CloudFrontKeyValueStoreService, the
namespace's StoredResourceArns, answered no tags, so a condition on a
CloudFront resource's tags saw none. It now reads the tags CloudFront
holds under the ARN, in place, from the tag store CloudFrontService
writes, where the tag handlers keep them: in the request's account, by
the whole ARN, since CloudFront ARNs name the default account whichever
account owns the resource. DeleteFunction now removes the tags kept
under the function's ARN, its name, and CreateFunction drops any left
there, so a function created again under a deleted one's name starts
with none. CloudFront's tag writes already put a new map in place of
the held one.
A cluster-mode replication group with a user group refused every connection, because turning a
node's default user off would have left replication without credentials. Before the first node turns
it off, every node now gets a private replication user with masteruser and masterauth pointing at it,
once per running cluster, so each node's proxy installs the signed-in user's access string on its
own node, as a standalone group does. A cluster nobody signs in to with a user never holds that
password, which its unrestricted default sessions could read. Sessions on a cluster node also lose
the CLUSTER subcommands ElastiCache restricts, and ModifyUser reaches the open sessions of every
node.
MemoryDB relayed every connection as the backend's unrestricted default user. A cluster bound to an
ACL of its own now runs each connection under its user's access string through the same backend
ACL, with the open-access ACL relayed as before.
EMR's session operations, StartSession, GetSession, ListSessions,
TerminateSession and GetSessionEndpoint, were not served, and RunJobFlow
dropped SessionEnabled.
Floci now keeps a cluster's sessions and their lifecycle, without
starting a Spark Connect server for them. RunJobFlow keeps
SessionEnabled and DescribeCluster reports it. StartSession needs a
cluster with sessions enabled, on emr-spark-8.0.0 or later, with Spark,
RUNNING or WAITING, with one primary node and fewer than 1000 sessions
that have not ended, as the Management Guide's "Interactive sessions"
gives them; a request needs a Name and an idle timeout within 24
hours. It answers SUBMITTED, and the session is IDLE from then on until
its idle timeout (60 minutes by default), TerminateSession, or its
cluster shutting down ends it. A retry with the same client request
token that asks for the same session answers as the first call did.
Sessions are kept apart from their clusters, so ended ones weigh on no
cluster read or write. GetSessionEndpoint gives an
endpoint on Floci's address and a token valid for an hour. ListSessions
gives the newest first, by state, a page at a time. A request member
of the wrong JSON type is refused with SerializationException.
The cluster's installed applications are read by one helper, which the
Hive and Pig checks now share with the Spark one. GetSessionEndpoint's
endpoint and token come from core.common.SparkConnectEndpoint, which
EMR Serverless's GetSessionEndpoint now uses too.
The generated request resources give EMR's cluster type the
aws:ResourceTag/ and elasticmapreduce:ResourceTag/ keys, but EmrService
answered no tags, so a condition on a cluster's tags saw none.
EmrService.storedTags now reads the cluster stored under the ARN's id
in the account it names, in place, in the ARN's Region or recorded with
none, as the tag handlers find it, the ARN matched whole. AddTags and
RemoveTags now put a new map in place of the held one under the
service's lock instead of editing it in place, and the field is
volatile.
EMR Serverless's session operations, StartSession, GetSession,
ListSessions, TerminateSession and GetSessionEndpoint, and
GetResourceDashboard, which "Currently, only Session is supported" for,
were not served, and a session's ARN was refused for tagging.
Floci now keeps sessions and their lifecycle, without running a Spark
driver for them. StartSession needs a Spark application on emr-7.13.0 or
later (or the AWS runtime for Apache Spark) with sessionEnabled on, is
admitted like a job run, auto-start included, and is idempotent on its
client token. An application holds at most 25 sessions that have not
ended, as the user guide's default, beyond which the 26th is
ServiceQuotaExceededException. A session is IDLE once started and ends
TERMINATED at its idle timeout (60 minutes by default), at its 24 hour
limit, when terminated, or when its application stops. GetSessionEndpoint
gives an endpoint on Floci's address and a token valid for an hour.
GetResourceDashboard gives a signed link, like GetDashboardForJobRun's, to
a page about the session. Tags work on session ARNs.
ListApplications, ListJobRuns and ListSessions share their validation,
and the latter two their state-grouped paging; StartJobRun and
StartSession share the caller, client-token and retry helpers.
The generated request resources give SSM's parameter, document and
association types the aws:ResourceTag/ key (and ssm:resourceTag/ for
the first two), but SsmService answered no tags, so a condition on an
SSM resource's tags saw none. SsmService.storedTags now reads the
parameter, document or association stored under the ARN in the account
and Region it names, in place, matched on the whole ARN; a parameter
ARN names /<name> before <name>, as tagging reads it. Tag writes now
put a new map in place of the held one, a parameter's filled one entry
at a time so the listed order holds, and the parameter tag writes the
CloudFormation provisioner calls take the service's lock as the others
do; the tag fields are volatile.
The Service Reference publishes iam:DelegationRequestOwner on the
delegation-request resource type rather than on the actions that act on one,
and only ListDelegationRequests carries the owner in a parameter. On the seven
others the value is the stored request's, so the key reached no request
context: an allow conditioned on it matched nothing and a deny conditioned on
it applied to nothing, where AWS evaluates both.
The table gains a fromResource section for a key published on a resource type,
each entry carrying the type, the member of its record the value is read from
and the type's ARN format. The filter then asks the service holding the
resource an ARN names for what its record keeps there, which is the
per-resource read that already gives a resource its tags, and the delegation
store answers through the port that already keeps IAM from depending on it.
Which member carries the owner is the one thing neither botocore nor the
Service Reference says, so the generator states it where it states anything by
hand, with AWS's own word quoted and linked: the key "Filters access based on
the AWS identity or principal that owns the delegation request", whose owner is
"the AWS identity or principal in the customer account that initiated or
received the delegation request". The generator refuses an entry whose evidence
does not link to itself, or whose member botocore's record of the type does not
hold as a string.
The owner is answered from the same scan the owner listing reads, by request id
rather than by owner, so an authorization costs a lookup rather than a pass over
the store under the lock every claim and expiry takes: this runs on every
request for the actions the key is published on, which the listing does not.
A call naming no request carries no value, so CreateDelegationRequest, whose
request does not exist while it is authorized, and a request nobody has claimed
are both left without the key rather than given a wrong one. The owner is
answered to the account that owns the request and to no other, the line the
service draws when it reads one request by id.
One difference stays and is on the IAM page: the same guide lists
UpdateDelegationRequest among the operations the key supports and the Service
Reference publishes it on neither that action nor a type it acts on, so the
generated reading is what this follows.
GetDashboardForJobRun gives "a URL that you can use to access the
application UIs for a job run", which "is valid for one hour after you
generate it". Floci did not serve it, so a client asking for a run's
application UI link, as Airflow's EMR Serverless operator can, failed.
It now checks the run and its attempt as GetJobRun does and answers
with a link to a page Floci serves at /_aws/emr-serverless/dashboard on
its own address: the attempt's state, its times, and where its
driver's logs go in S3 and CloudWatch Logs, which each attempt now
keeps as it was admitted, so a later change to its application's
monitoring configuration moves neither the logs nor what the page says
of them. EMR Serverless opens the
run's live Spark or Tez UI there, or its Spark History Server once it
has ended, neither of which Floci keeps. The link names the run and is
signed with a key Floci makes as it starts, so a changed link, one past
its hour, or one given before a restart, opens a refusal.
The three private HTML escapes (SES's unsubscribe page, Lambda web's
redirect, CodeArtifact's pypi index) become one, core.common.Html,
which the page uses too.
Athena runs a DDL statement against the Glue Data Catalog with the
caller's identity, so on AWS a caller without the Glue permissions a
statement needs starts the query, and the query fails with
"Insufficient permissions to execute the query." and the Glue denial.
Floci never checked them: under IAM enforcement a caller holding only
athena:* created and dropped Glue databases and tables through Athena.
Neither botocore nor the Service Reference says which Glue actions a
statement needs. Athena's user guide does, in its table "Examples of
database and table-level permissions":
- tools/aws/fetch_athena_glue_ddl_permissions.py vendors that table as
it stands into tools/aws/sources/athena-glue-ddl-permissions.json:
each statement's sentence and example policy, and the sentence that
names the example database and table. --verify compares the file
with the live page, and athena-glue-ddl-permissions.prompt.md says
how to rebuild it when the page's layout changes.
- regen_iam_request_resources.py reads it as a source of the IAM
request table (STATEMENT_SOURCES, for this table alone). Each action
of a policy statement acts on each of its resources whose type the
Service Reference gives the action, the type whose format the example
ARN matches, its variables filled with what the page says the example
names stand for. The table gains statementActions, the reference's
types for each action, and statements. --check derives both offline,
and --verify checks the types and the page. The sync also carries
the Service Reference's changes since the last one.
- IamEnforcementFilter.statementRefusal checks those requests as the
caller, the way a forwarded request is checked (aws:ViaAWSService,
the caller's keys, the resource's policy), and returns AWS's denial.
authorizeAdditionalResource's caller and decision steps move into
helpers the two share.
- AthenaService checks CREATE DATABASE, CREATE [EXTERNAL] TABLE, DROP
TABLE and MSCK REPAIR TABLE in the default catalog before running
them, naming the database and table lowercase as Glue stores them
(GlueService.normalizeName), and a denial fails the query with
AWS's reason. As the guide says, DROP TABLE of a table without
partitions needs no partition action; a table Glue cannot read for
another reason fails the query.
AthenaGluePermissionsIntegrationTest runs the guide's policies under
IAM enforcement, and a deny on a lowercase name against a query that
spells it in capitals. RequestResourcesTest and the generator's and
fetch script's tests cover the rest, and athena.md says so.
The generated request resources give fifteen Redshift types the
aws:ResourceTag/ key, but RedshiftStoredResourceArns answered only a
snapshot's key, so a condition on a Redshift resource's tags saw none.
It now answers from RedshiftService.storedTags, which reads the
cluster, snapshot, parameter group, subnet group, snapshot copy grant,
snapshot schedule, event subscription or integration stored under the
ARN in the account and Region it names, in place, matched on the whole
ARN; a snapshot is found as tagging finds it, the copy kept in the
Region before the snapshot itself. CreateTags and DeleteTags already
put a new map in place of the held one under the service's lock; the
tag fields are now volatile, so the lookup reads one whole map.
The generated request resources give ECR's repository type the
aws:ResourceTag/ and ecr:ResourceTag/ keys, but ECR had no
StoredResourceArns, so a condition on a repository's tags saw none.
EcrStoredResourceArns now answers from EcrService.storedTags, which
reads the repository stored under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place, matched
on the whole ARN. Tag writes now replace the map whole under one lock,
filled one entry at a time so the listed order holds, and the field is
volatile.
On Fargate the containers of an awsvpc task share one network namespace
and reach each other on localhost. Floci gave each container a namespace
of its own unless security-group enforcement was on, and enforcement
needs rootful Docker, so a sidecar task definition (nginx in front of
php-fpm on 127.0.0.1:9000) could not run unchanged on rootless Docker or
Podman.
floci.services.ecs.shared-task-network (FLOCI_SERVICES_ECS_SHARED_TASK_NETWORK),
off by default, gives such a task one namespace while enforcement is off.
A helper container holds it, as the ECS agent's pause container does. The
firewall manager starts it from the same code as a protected helper, with
no nftables table and no rootful requirement, and every container in the
task joins it. The helper holds what the task has once rather than per
container: its published ports, the link-local address its containers
reach the task-role credential endpoint from, and its ENI address on the
VPC's Docker network. FireLens's FLUENT_HOST is 127.0.0.1, the value the
ECS agent sets for awsvpc. The helper is removed once the task's
containers are, before its link-local address is handed on, and a helper
a previous run left behind is swept at startup with the task's other
containers. A helper Docker keeps is marked pending on the task's handle,
which the service keeps to retry the removal; its address stays reserved
until then, and it is taken off the VPC network so the ENI address is free
when the ENI is released. Launch cleanup removes a helper by name even when
its start failed part way, and now also covers the VPC attachment, so a
failed attachment no longer leaves the task's containers running. With
enforcement on, nothing changes.
The helper image now builds from docker.io/library/alpine: Podman refuses
a short name it cannot prompt about, and the task-role credentials proxy
builds from the same Dockerfile.
Closes#4331
EMR's primary node runs one (a release's mapred-site classification
"Restarts Hadoop MapReduce-HistoryServer"); Floci's did not, so a
client asking about a MapReduce job whose application master had ended,
for its counters or task reports, waited about 30 seconds a call on
0.0.0.0:10020 and got nothing. Pig asks after each of its MapReduce
jobs, so #8636 turned its task reports off and gave its client one try.
A cluster that runs YARN now starts `mapred historyserver` beside the
ResourceManager, on Hadoop's own ports and where HDFS listens, from the
jobs' history in the cluster's HDFS, and its primary node is ready once
the server answers. A step's MapReduce settings name it, and so do a
Hive step's, for a query run on MapReduce; an emr-spark-* node runs it
from the Hadoop it keeps apart. The node scripts' readiness waits share
one helper. Pig's
workaround goes: its MapReduce jobs' counters come from the server, as
on EMR.
CreateAssociation now resolves a document ARN in another account to that account's document when its owner shared it with the caller through ModifyDocumentPermission, and answers InvalidDocument for one that is not shared, is of another partition or does not exist. UpdateAssociation checks a new DocumentVersion through the same lookup. With IAM enforcement on, reachedInItsAccount has the request checked on the owner's document ARN alone, so the caller's identity policy must allow that ARN.
Closes#8364
No AWS image carries Pig, so a Pig step failed without running. With
floci.services.emr.pig.enabled on (off by default), a docker cluster
whose Applications name Pig gets Apache Pig 0.18.0 in its image:
downloaded to a temporary file from the first of
floci.services.emr.pig.urls that gives it whole with the checksum
floci.services.emr.pig.sha256 names (a URL that fails, stalls for a
minute or gives another checksum passes to the next), then streamed
into /usr/lib/pig as EmrReleaseImages makes the image, with Tez from
the release's Hive image and a /usr/bin/pig that EMR's own pig-script
runs.
Pig runs on the image's Tez, its bundled Tez and protobuf 3 left out,
on the cluster's YARN or in local mode, with exectype=tez, a working
directory without a scheme, which S3A takes, and no task reports and
one try for counters from the MapReduce JobHistory server the cluster
does not run, then the cluster's tez-site and pig-properties, in a
pig.properties of the step's own; pig-log4j and pig-env reach Pig too. A command step's new
tez-site.xml shares Hive's Tez-on-YARN settings.
Without the setting, a Pig step on a cluster that installs Pig still
fails without running, its message naming the setting; on one that
does not, EMR's pig-script says "Pig isn't installed." as on EMR.
ModifyDBSnapshot refused a request naming neither EngineVersion nor
OptionGroupName with InvalidParameterCombination, "At least one snapshot
attribute must be specified.", a message AWS does not use. The model
requires only DBSnapshotIdentifier, and neither the API reference nor the
User Guide's snapshot upgrade pages tie any error to a request with nothing
to change, so such a request now returns the snapshot unchanged. A missing
snapshot and one that is not available are still refused as before.
The RDS docs record this as Floci's reading of an undocumented case.
Closes#4083
On AWS a function's Hyperplane network interfaces sit in the subnets
its VpcConfig names, and EC2 refuses DeleteSubnet, and so DeleteVpc,
while one is there. Floci's Lambda never told EC2 a function used a
subnet, so DeleteSubnet succeeded under a VPC-configured function and
left it naming a subnet that was gone.
- LambdaService is a VpcDependencyProvider: a function of the caller's
account, or a published version of one, holds each subnet its
VpcConfig names and the VPC it is configured in
(LambdaFunctionStore.listWithVersionsForAccount, which also reads a
record stored before accounts were kept apart, unprefixed until it
is next read).
- CreateFunction and UpdateFunctionConfiguration save a function that
names subnets under EC2's subnet lock, so a DeleteSubnet either sees
it or runs before it is stored. A VpcConfig the request set is
resolved again under the lock, so a subnet deleted since the request
was validated is unknown, as one never created is, and the function
infers no VPC from it.
ECS awsvpc tasks already hold their subnet through the network
interface each task is given, which DeleteSubnet counts.
LambdaVpcResourceValidationIntegrationTest has DeleteSubnet refused
under a function, then under its published version once $LATEST moves
to another subnet, and allowed once the version is deleted, and a
subnet deleted while a function is created leaves it no inferred VPC.
LambdaFunctionStoreAccountScopeTest covers the unprefixed record.
ec2.md and lambda.md say so.
The generated request resources give DynamoDB's table, index and stream
types aws:ResourceTag/ keys, but DynamoDB had no StoredResourceArns, so
a condition on a table's tags saw none. DynamoDbStoredResourceArns now
answers from the selected backend: the native one reads the table
stored under the ARN in the account and Region it names, a
pre-multi-account one of the default account in place, matched on the
whole ARN; the DynamoDB Local one reads the tags Floci records for it
while DynamoDB Local still has the table. An index ARN gets its table's
tags when the table holds that index; a stream ARN gets none. Native tag
writes, CreateTable's included, now replace the map whole under one
lock, keeping tags already put, and the field is volatile.
Enabling an MFA device recorded state and changed nothing.
aws:MultiFactorAuthPresent and aws:MultiFactorAuthAge reached no request, so a
policy conditioned on either could not behave as it does on AWS, and
GetSessionToken and AssumeRole accepted SerialNumber and TokenCode and ignored
both, so no session could satisfy such a condition in the first place.
Both keys are published now from the credentials a request was signed with,
which is where the guide puts their availability: a long-term key carries
neither, and a session carries the first one, true only where a device was
used. A federated-user session carries neither, the guide putting federated
identities with the long-term keys. They are written by the one writer that
already says who is calling, so the enforcement filter, the per-resource and
per-item contexts, trust policies and the paths that evaluate a policy
themselves all see them at once.
The two STS operations hold a presented code to the seed of the device its
serial names, require that device to be enabled for the signing identity, and
spend the step it matched, since RFC 6238 has a verifier refuse the second
attempt of a code for the same time step. A key IAM holds nowhere has its claim
taken as made: there is no identity behind it whose devices could be checked,
and this emulator already reads such a key as acting for itself. A claim that
fails is refused with AccessDenied, the outcome AWS documents.
How far the authentication reaches is AWS's own line. GetSessionToken
credentials "include MFA information", so that session is MFA-authenticated on
its own requests. AssumeRole credentials "do not include MFA information in the
context", and "once the user has assumed the role, no further MFA checks are
made", so the device decides the assume and stops there. The device a call
presents belongs to that request, so both the trust policy and the caller's own
permission to make the call see it; the claim is read once per request and held
on it, a code being spendable only once.
CreateDBInstanceReadReplica now accepts MySQL and MariaDB sources and initialises the replica from a mysqldump or mariadb-dump copy of the source, the same copy CreateDBSnapshot uses. One engine set gates both the replica check and the SupportsReadReplica flag DescribeDBEngineVersions reports.
The copy passes MYSQL_PWD in the exec's environment rather than its command, uploads the dump readable by root only and removes it after the restore, keeps a name containing a newline whole, and replays each SHOW GRANTS row as one statement, so MariaDB's SET DEFAULT ROLE and MySQL's partial revokes restore. Other engines are still refused with InvalidDBInstanceState.
The generated request resources give Redshift Serverless's namespace,
workgroup, snapshot and recovery point types aws:ResourceTag/ keys, but
RedshiftServerlessService did not answer storedTags, so a condition on
their tags saw none. It now reads the namespace, the workgroup or the
snapshot stored under the ARN in the account and Region it names, a
pre-multi-account one of the default account included, in place,
matched on the whole ARN. A tag change is already stored on a copy, so
the tags read are one whole set.
With security-group enforcement on, the socat publisher was switched
off, so an application port a security group opened was never reachable
from the host. Docker can replace a host client's address (Docker
Desktop shows every client as its gateway), so no rule narrower than the
whole internet can be judged on it.
Host-published access now counts as traffic from outside the VPC: with
enforcement on, a port is published only when an ingress rule opens it
to 0.0.0.0/0, or failing that ::/0, which admit a client whatever
address it arrives with. The sidecar dials the instance through its
protected namespace's helper, on the helper's network: on its IPv4
address, or on its Docker IPv6 address for a port only ::/0 opens, which
is not published on a network without IPv6. A client's family is still
seen on the host, so a port only one family's rule opens binds only that
family's host addresses. A port whose rules move family is republished,
the family is persisted for restore, and a restart brings each running
instance's forwards in line with its current rules. Ports opened after
launch publish and revoking removes them, as with enforcement off; a
port only a narrower CIDR, a prefix list or a group reference opens
stays reachable on the direct container path.
Also brings Ec2ServiceTest's never-allocates check onto the
three-argument allocatePrivateIp that #8598 introduced, which left
main's tests not compiling after #8576.
The generated request resources give Athena's workgroup and data catalog
types aws:ResourceTag/ keys, but AthenaStoredResourceArns did not answer
storedTags, so a condition on their tags saw none. It now answers from
AthenaService.storedTags, which reads the workgroup or the data catalog
stored under the ARN in the account and Region it names, a
pre-multi-account one of the default account in place, matched on the
whole ARN; the built-in primary workgroup and AwsDataCatalog carry none.
The tag lists are volatile, as tagging already replaces a list whole.
* feat(paymentcryptography): the multi-region keys
* fix(paymentcryptography): the multi-region replication refuses what it cannot carry out
* test(compatibility-tests): the multi-region tests leave the account as they found it
* fix(paymentcryptography): the default replication regions are the ones of the region
* test(compatibility-tests): the multi-region tests keep their settings to their own region
* docs(paymentcryptography): what the multi-region replication does
* fix(paymentcryptography): the rules the multi-region replication follows
* chore(paymentcryptography): the shape check settles the type of a list of names
* style(paymentcryptography): the accessor the edit left on one line
* docs(paymentcryptography): the page says what the replication does
* fix(paymentcryptography): the replica answers as the reference answers
* fix(paymentcryptography): a key is replicated within the partition it is in
* style(paymentcryptography): the rules the replication shares are written once
* fix(paymentcryptography): the partition of a region is the one its ARN carries
* style(paymentcryptography): the tests of the service share the key they make
* style(compatibility-tests): the compatibility tests share the key they make
VpcNetworkManager keyed its VPC bindings, subnets and Docker networks
by Region and id alone, and every account's default VPC and subnets
share one id (vpc-default-<region>), so two accounts' default VPCs
shared one binding, one Docker network and one lease table: EC2
instances, Lambda functions, ECS tasks, EKS nodes and the MWAA,
CodeBuild and Batch containers of two accounts landed on the same
bridge. Ec2Service worked around the shared lease table by counting
every account's resources as holding the subnet's addresses.
- VpcNetworkManager takes the account on every call and keys bindings
and subnets by account, Region and id. A network carries the account
in its labels and, for any account but the default one, in its name;
the default account's keeps the name it always had, so its live
networks outlive the upgrade. A surviving network of another
account's VPC of the same id is a collision, as another Region's is.
- Startup reconciliation asks which accounts declare a VPC of an id in a
Region (DeclaredVpcs). A labelled network is kept while its account
declares the VPC; one an older version labelled with no account
belongs to the account declaring its VPC, the default account first,
and a non-default account's VPC keeps using that account-less network,
so its live containers stay attached across the upgrade.
- Ec2Service passes the caller's account, and the restore each stored
VPC's, subnet's and instance's own. The helpers other services call
(allocate, reserve, release, attach, detach) take the owning account
and run as it, as a caller may run outside the owner's request: a
provisioned or cross-account Lambda launch, a container removed in
the background. Lambda, ECS, EKS and VpcContainerLeases (MWAA,
CodeBuild, Batch) pass the account they already hold; Lambda's and
EKS's leases carry it to their release.
- An address is held by the caller's account's resources alone, as its
network and lease table are its own: the every-account holding check
goes, and the container lease map is keyed by account.
VpcNetworkManagerTest covers two accounts' default VPCs getting a
network each (the second's identical CIDR substituted), another
account's surviving network as a collision, a labelled network kept
only while its account declares the VPC, and an older version's
unlabelled network kept and adopted for the account declaring it. Ec2ServiceTest's cross-account
tests now pin the per-account holding. ec2.md says so.
Each MicroVM image version now records the build inputs it was created with (code artifact URI, base image ARN and version, build role) as an immutable BuildSpec. GetMicrovmImageVersion and ListMicrovmImageVersions read that snapshot instead of the image's latest inputs, so an update no longer rewrites what older versions report.
Versions stored before this change have no snapshot and fall back to their image's last known inputs; the docs note that their original inputs cannot be recovered.
Closes#7312
The generated request resources give CodeBuild's project and report
group types aws:ResourceTag/ keys, but CodeBuildStoredResourceArns did
not answer storedTags, so a condition on their tags saw none. It now
answers from CodeBuildService.storedTags, which reads the project or
the report group stored under the ARN in the account and Region it
names, a pre-multi-account one of the default account in place,
matched on the whole ARN, and gives its key and value pairs as tags.
The tag lists are volatile, as CodeBuild replaces a resource's list
whole and never changes one in place.
With security-group enforcement on, a managed ENI's identity was its
IPv4 address alone, so a rule naming an IPv6 range never matched a peer
on the IPv6 addresses its ENI now holds.
Each protected endpoint now carries its ENI's IPv6 addresses next to the
IPv4 one, and its helper's Docker IPv6 address next to the IPv4
transport. The compiler writes a peer's rules per identity: a rule
matching one of its IPv6 addresses admits it on the IPv6 transport only,
never on the IPv4 one, and on a Docker network without IPv6 there is no
IPv6 identity to match. Every transport a peer has is dropped after its
rules, as the IPv4 one already was. The EC2 and ECS registrations pass
the ENI's IPv6 addresses, the firewall manager reads the helper's Docker
IPv6 address, and AssignIpv6Addresses and UnassignIpv6Addresses update
the ENI's firewall identity. Every Docker address a managed peer has is
dropped after its rules, its IPv6 one included when its ENI holds no
IPv6 address, and an ICMP rule is written only for the family it
belongs to. IPv6 changes to one ENI serialize through their firewall
update; an assign the firewall refuses is taken back out of the store,
and an unassign reaches the firewall before it is stored.
The README now documents enforcement: what it filters, that it needs
rootful Docker with Linux containers, how to turn it on, and that an
application port opened after launch is not published while it is on.
Part of #2564.
Athena types a partition value as its key declares. Floci left the
values DuckDB's Hive partitioning reads from column=value folders to
DuckDB's autocast, so a string key holding 2026-11-14 came back as a
DATE, and a date key's folder holding text no date is read as rows with
the guessed type. Delimited-text tables already read their values as
text and cast them; every other format did not.
- A partitioned table without a location template reads with
hive_types_autocast = false, so each Hive partition value arrives as
text, and buildProjection casts it to its key's declared type
(GlueTableResolver.hivePartitionKeys), as it already did for
delimited text.
- A projecting table in the default layout keeps only rows whose typed
keys parse as their types (hiveValueFilter): Athena builds each path
from values its projection generates, so a folder like dt=latest for
a date key is one no query addresses, as the template layout already
treats it.
- A date or timestamp key whose date projection sets a format is parsed
with it in either layout (typedKey, strptimeFormat translating yyyy,
yy, MM, dd, HH, mm, ss and literal text, a doubled quote being one
quote, for try_strptime), so dt=20261116
under yyyyMMdd reads as a date; a format with other pattern letters is
cast as an ISO value. This closes the template layout's TODO too.
- Iceberg tables keep reading their own typed values.
AthenaPartitionTemplateSidecarIntegrationTest reads a string key
holding a date as VARCHAR, a date key as DATE, and skips a dt=latest
folder, and a yyyyMMdd date projection, against the real engine.
GlueViewDdlBuilderTest and GlueTableResolverTest cover the view and the
pattern translation.
athena.md says so.
Both policy simulators accepted OrderedOrganizationPolicyInputList and
ResourceHandlingOption and answered as though neither had been sent.
The levels now gate a simulation the way they gate the call it stands for,
through the same walk a live request takes through service control policies:
an action no level allows is an implicitDeny, a level that denies it is an
explicitDeny whatever the levels below allow, and a level carrying no
statements is skipped. A level whose document does not read as a policy is an
InvalidInput naming the item's position. The levels a call hands in are the
whole of the organization the simulation runs against, matching the console,
which includes SCPs only when the box is ticked.
A named scenario is held to the resources it requires, "to enforce the
presence of the required resources to ensure reliable simulation results", and
a value naming no published scenario is refused. A simulation that names no
scenario is left alone.
One difference from AWS's simulator is documented and open: AWS says its
simulator does not evaluate SCPs that have global conditions, while this walk
evaluates a condition in an SCP exactly as the live evaluation does.
The generated request resources give Step Functions' state machine,
version, alias, execution and activity types aws:ResourceTag/ keys, but
StepFunctionsService did not answer storedTags, so a condition on their
tags saw none. It now reads the state machine or the activity stored
under the ARN in the account and Region it names, in place, matched on
the whole ARN; a version the state machine holds and an execution have
the state machine's tags, as all versions of a state machine share its
tags and its executions inherit them, and an alias has none. Tagging
and untagging now put a new tag map in place of the old one under the
service's lock, so the lookup always copies one whole set and an update
copying the state machine no longer loses a tag written at the same
time. iam.md also names EventBridge and RDS, which answer it too.