* fix(route53): return the health check on a CreateHealthCheck retry
CreateHealthCheck refused any CallerReference already in use with
HealthCheckAlreadyExists. AWS treats the same reference with the same
settings as a retry and returns the health check it already created;
only different settings are refused. The Go SDK resends the same input
after a transient failure, so a Terraform or OpenTofu apply failed on
Floci where it succeeds on AWS. A matching retry now returns the
existing health check, and the docs note that a deleted health check's
reference is reusable at once here, while AWS keeps refusing it.
* fix(route53): compare a CreateHealthCheck retry on every setting it sends
The retry check compared only the seven HealthCheckConfig fields Floci
models, so two requests that differed in an unmodelled setting such as
EnableSNI passed as a retry, and a retry stating RequestInterval or
FailureThreshold at its default was refused as different from one that
omitted it. The controller now records the request's settings in a
canonical form, every value under HealthCheckConfig sorted (Regions and
ChildHealthChecks are sets), with an omitted RequestInterval or
FailureThreshold counted as AWS's default of 30 or 3 except for
RECOVERY_CONTROL, and a retry must match it. A non-numeric Port,
RequestInterval or FailureThreshold is now InvalidInput instead of being
dropped.
* refactor(route53): read the health check settings with XmlParser.extractElementTree
* feat(route53resolver): apply resolver rules to DNS resolution
Resolver rules were stored and ignored. The embedded DNS server now consults them
before resolving a name itself, via two CDI SPIs so core.common.dns imports neither
Route 53 Resolver nor EKS: DnsForwardingRuleSource supplies the rules associated with
one VPC, DnsClientVpcSource maps a query's source address to the VPC it came from.
FORWARD rules forward the raw query to their TargetIps, each on its own port, in a
random order with the next target tried when one does not answer. SYSTEM and RECURSIVE
rules carry no targets and hand the query back to Floci, so a SYSTEM rule carves a
subdomain out of a broader FORWARD. Matching is exact-or-subdomain on label boundaries
and the most specific matching rule wins. A rule takes precedence over a private hosted
zone matching the same name, as AWS documents. Floci's own suffixes and ec2.internal
names resolve locally whatever the rules say, as AWS autodefines system rules for its
internal domains. A rule whose targets are all unreachable answers SERVFAIL for that
query only.
Route53ResolverDnsForwardingRules reads the rule and association stores through
Route53ResolverService across account partitions, since the packet path has no caller.
EksClusterManager claims its cluster node container addresses for the cluster's
resourcesVpcConfig.vpcId.
* fix(route53resolver): scope rule DNS lookups to the querying account
AssociateResolverRule stores whatever VPCId the caller names without proving
ownership of it, so joining associations across account partitions by VPC id let
one account redirect another account's cluster DNS by naming its VPC. The DNS
client VPC now carries the account alongside the VPC id, and the rule source
reads only that account's associations.
Rules are fetched by id instead of scanned for, so a query reads only the rules
an association named rather than the whole rule store, and registration warns
when a running cluster's container addresses cannot be determined instead of
leaving its rules silently inert.
Also stop setting the authoritative bit on the SERVFAIL answer for a forwarded
query: Floci is not the authority for a name a rule sends elsewhere.
* style(route53resolver): import Optional instead of qualifying it inline
* fix(route53resolver): scope rule DNS lookups to the querying region
Route 53 Resolver is regional, so a rule created in one region governs nothing in
another, but the DNS path matched on account and VPC alone. A rule created in
eu-west-1 therefore steered a query from a VPC in us-east-1. The DNS client origin
now carries the region, and a rule is only applied when its own region matches.
The stores carry no region in their keys, so a rule's region is read back from the
ARN the service minted for it rather than reshaping the stores. A stored rule with
no parseable ARN has no region to claim and is treated as belonging to the region
asking, which no create path can produce.
Associations are now read as rule ids rather than as nodes, so a query no longer
deep-copies a record per association when all it needs is which rules to look at.
* test(eks): pin the warning when a cluster's addresses cannot be determined
Inspecting the node container can fail, and when it does the cluster gets no VPC
mapping and its queries quietly ignore every associated resolver rule. Nothing
fails, so the warning is the only way a reader finds out, which makes it worth a
test rather than leaving it to inspection.
Levels are compared by severity rather than identity because JBoss LogManager
has its own Level constants, so its WARN is not java.util.logging's WARNING.
* feat(cloudmap): honor service TTL in DNS A answers
* fix(cloudmap): distinguish DNS no-data and reject case collisions
* fix(cloudmap): resolve SRV instance A hostnames
* refactor(cloudmap): simplify DNS answer states and resolver
Give DnsAnswer explicit records, noData and nxDomain factories, drop the
test-only buildAResponse overload, split Cloud Map name resolution into
service and instance-hostname lookups, and parse DnsConfig once on
CreateService.
* fix(cloudmap): lowercase DNS names independent of the default locale
* fix(route53): answer private zone DNS with the record set TTL
Port Route53DnsRecordSource to DnsAnswer after rebasing onto #4353. Answers
carry the record set TTL, a flattened CNAME chain uses the shortest TTL in
the chain, and an alias uses its target's. A name absent from the zone gets
NXDOMAIN; a name with records but no A gets NOERROR with no answers.
* fix(route53): answer empty non-terminals with no data and cap external CNAME TTL
A private zone name with records only beneath it exists in DNS, so it now
answers NOERROR with no A records instead of NXDOMAIN. A CNAME to a name
outside the private zones answers with at most 60 seconds, matching the
alias path, since the target's own TTL is not visible.
* fix(route53): stop wildcards matching at or beneath empty non-terminals
A name with records only beneath it exists, so under RFC 4592 a wildcard
from a farther ancestor must not answer for it or for names below it. The
closer-name check now counts any record sharing an ancestor with the query
name, including wildcard owners, so a closer wildcard also shadows a
parent wildcard.
Implement DnsRecordSource SPI via Route53DnsRecordSource to decouple Route 53 resolution from EmbeddedDnsServer. Add DnsLookupHelper in core.common.dns for external IPv4 resolution via upstream forwarders with system fallback, shared by Route53DnsRecordSource for CNAME and ALIAS chasing. Discover private hosted zones via Route53Service and support in-zone chasing, built-in Floci suffixes, and EC2 internal names. Authoritatively resolve A records within private zones to prevent upstream query leakage. Wire EKS cluster containers to embedded DNS via specBuilder.withEmbeddedDns().
* feat(route53): implement UpdateHostedZoneComment
The path carried GET and DELETE but no POST, so the action answered 405 and a
caller that renames or re-comments a zone could not proceed. Terraform's
aws_route53_zone sends it whenever the comment changes, which includes importing
an existing zone under a new configuration.
A request with no Comment clears the existing one, as AWS documents, rather than
leaving the previous value in place.
* fix(route53): reject a body that is not an UpdateHostedZoneCommentRequest
A missing Comment means "clear the comment", and XmlParser returns the default
for a body it cannot parse, so a truncated or wrong-root document cleared the
zone's comment and answered 200. Validate the root element first.
* fix(route53): resolve the zone through the caller-ownership lookup
UpdateHostedZoneComment resolved the zone with getHostedZone, which reads
pre-account-isolation data written before the store was account-scoped and
migrates it into whichever partition asked for it first. Use the same lookup
the VPC association actions use, so only the owning account can rewrite the
comment.
* feat(route53): add Route53 management-plane emulation
Implements Route53 Phase 1 with 17 operations: hosted zones (Create,
Get, Delete, List, ListByName, Count), resource record sets
(ChangeResourceRecordSets, List), change tracking (GetChange), health
checks (Create, Get, Delete, List, Update), tagging
(ListTagsForResource, ChangeTagsForResource), and GetAccountLimit.
Auto-creates SOA and NS apex records on zone creation. Rejects deletion
of non-empty zones. All changes return INSYNC immediately. IDs are
returned with path prefixes (/hostedzone/Z…, /change/C…) to satisfy
the SDK Route53IdInterceptor. Nameservers are configurable via
floci.services.route53.default-nameserver[1-4].
Adds OpenTofu and Terraform compatibility tests covering zone creation,
A record, auto-created SOA/NS records, health check, and tag persistence.
* feat(feat): adding missing endpoints
* feat(route53): fix timeout when creating route dns from terraform