Repository navigation
Description
Problem
Lines cited at dcafadf.
At 132ecc5, CONST_LOCAL_DOMAIN_SUFFIXES moved to config/constants.py:2546-2552; no other cited line moved.
This issue's earlier design (a list of reserved special-use names plus a new "configured private zones" setting) is replaced by the Public Suffix List (PSL) through tldextract, which is already a direct dependency, and DNS-name comparison through dnspython. The scanner's hostname list is not part of this item; it stays with #431 (see Key questions).
- Several hand-written local-name tests, each with its own list:
CONST_LOCAL_DOMAIN_SUFFIXES(config/constants.py:2512-2518:.local,.localhost,.cluster.local,.internal,.lan), matched withendswithin_is_fqdn_url(commands/k8s/networking.py:255-277, the suffix check at:267-270) and in pricing's_is_local_host(ai/spend/pricing.py:90-101, the check at:93);.endswith(".local")inis_loopback_or_private_host(core/validation.py:157) andvalidate_url_egress(:216);- a
("localhost", "host.docker.internal")tuple in the sandbox local-whitelist check (sandbox/models.py:129-133); host.endswith(f".{domain}")againstk8s.domainandcloudflare.domainin pricing (ai/spend/pricing.py:51-60, the check at:58).
- A lookalike Ingress host is written into config.
_select_best_ingress_host(commands/k8s/networking.py:652-661) matches withh.lower().endswith(norm)(:659). For the domainexample.comit picksgrafana.evilexample.comovergrafana.example.com, andconfigure-urlswriteshttps://grafana.evilexample.cominto config (:677-679,:719-727; the domain comes fromk8s.domainorcloudflare.domain,:778-780). A preferred domain writtenEXAMPLE.COM.never matches and falls back to the first host. Both behaviours confirmed by an offline probe. _is_fqdn_urlis inconsistent. It treats names underlanandinternalas local, but returns True forgrafana.corp,grafana.home.arpa,grafana.test,ollama.homeand the bare public suffixco.uk(offline probe).- Its only caller is
_should_update_url(:280-296, the call at:292). That function keeps a configured URL from being replaced by a discovered IP, NodePort or loopback URL, but only when_is_fqdn_urlaccepts the configured host (pinned bytests/test_k8s_networking.py:255-263). - At dcafadf,
_should_update_url("https://grafana.corp", "http://192.0.2.4:30080")is False (kept), while_should_update_url("https://node1.example.internal", "http://192.0.2.4:30080")is True (replaced).
- Its only caller is
- Pricing misses common local names.
_is_local_hostcounts names underlanas local butgrafana.corp,x.test, a single-label name andx.onionas remote (offline probe). - An unresolvable name is classed as public.
is_loopback_or_private_host("unresolvable.invalid")returns False when DNS fails (core/validation.py:152-176; pinned bytests/test_validation.py:259-260). - web_fetch deny-list entries can be no-ops.
_in_domains(ai/common_tools.py:321-323) testshostname.endswith(f".{d}").blocked_domains=[".evil.com"]blocks neitherevil.comnora.evil.com(offline probe). - A naive library swap would get four things wrong (offline probes with dnspython 2.8.0, tldextract 5.3.2 and httpx2 2.13.0):
dns.name.from_text(""),"."and"@"all parse to the root name, and so doesfrom_unicode. Every host is under root. Todayallowed_domains=[""]or["."]admits nothing; a naive swap would admit everything.- httpx2 and
urlparseaccept the hostsa..b.evil.com,evil.com..,.evil.comand a 64-character label, and dnspython raises on all of them (EmptyLabel,LabelTooLong). Todayblocked_domains=["evil.com"]blocks all four; a helper that returns False on a parse error would let them through. - tldextract does not reject those names:
a..b.evil.com,.evil.comand the 64-character label all get suffixcomand a non-emptytop_domain_under_public_suffix. A PSL test alone calls them public. Adns.namestep after it raises a rawdns.exceptionout ofvalidate_url_egressandis_loopback_or_private_hostinstead of their own error. from_textsilently uses IDNA 2003 for non-ASCII input (faß.debecomesfass.de), while httpx2 sends IDNA 2008 (xn--fa-hia.de).
- The browser capability reads the host by hand.
PlaywrightBrowser.navigate(ai/harness/agents.py:391-395) takesnetloc.split(":")[0](:392). Withallowed_domains=["example.com"]:http://example.com:x@8.8.8.8/navigates, though the request goes to 8.8.8.8. A public address is needed here: with the defaultblock_private_addresses=True, a TEST-NET address is already refused by the private-address check.http://EXAMPLE.COM./is blocked (trailing dot kept).- A bracketed IPv6 host is read as
[2001, soallowed_domains=["2001:db8::1"]never admitshttp://[2001:db8::1]/. - The tool is a stub today, but this is its egress policy.
- The scanner's extractor writes under the home directory.
tldextract.TLDExtract(suffix_list_urls=(), fallback_to_snapshot=True)(security/reference_extractor.py:64) uses~/.cache/python-tldextracteven with the network off. Measured offline with a temporary HOME: the first run writes the JSON file and its lock, and later runs only rewrite the lock file. - No library ships the IANA Special-Use Domain Names registry. The PSL lists
arpaandonionas ordinary ICANN suffixes, sotldextractreadsgrafana.home.arpa,resolver.arpa, names underin-addr.arpaandx.onionas public. Every other registry entry (localhost,local,test,invalid,example,alt), ICANN's private-useinternal, and the convention zones (lan,corp,home,svc,cluster.local, single labels) already have no PSL suffix (offline probe). This issue's earlier reserved list (localhost,local,onion,home.arpa,alt,internal) covered onlyhome.arpaunderarpa. Under the PSL that leavesresolver.arpa,ipv4only.arpaand the RFC 6761 private reverse zones public.
Acceptance criteria
- One core module, built on the libraries (proposed
src/devops_cli/core/dns_names.py).tldextractanddns.nameare imported on first use, not at module import.- One shared offline extractor:
tldextract.TLDExtract(suffix_list_urls=(), fallback_to_snapshot=True, cache_dir=None). It never fetches the list and writes nothing under the home directory.security/reference_extractor.py:64uses it too. is_public_dns_name(host), in this order:- returns False for an IP literal (
ipaddress.ip_addressparses it). Callers classify IP literals withipaddressbefore calling it, so 8.8.8.8 stays public atcore/validation.py:157, where today's name clause sits before the IP check; - parses the name with
dns.name.from_unicode(host, idna_codec=dns.name.IDNA_2008)and returns False (not public) on anydns.exception.DNSException. Callers that deny non-public hosts therefore refuse a malformed name with their own error and without a DNS lookup. The sandbox local whitelist still resolves such a name when the policy is generated, and pricing counts it as local; - lowercases before asking tldextract (it keeps case);
- returns True only when the name has a registrable part under a PSL suffix (
top_domain_under_public_suffixis non-empty, soco.ukorcomalone is not a host name); - and the parsed name is not at or under
arpa(RFC 3172) oronion(RFC 7686). Those two are the only declared names. They aredns.name.Nameconstants with their RFCs cited, tested withName.is_subdomain, because no library knows them (see Problem).
- returns False for an IP literal (
is_at_or_under(host, domain):- parses both sides with
dns.name.from_unicode(..., idna_codec=dns.name.IDNA_2008)and compares withis_subdomain, which also handles case and the trailing dot; - an IP-literal host matches only an equal
ipaddressentry, never by suffix; - a domain that parses to the root name raises;
- a
dns.exception.DNSExceptionfrom either side propagates. Each caller below states what it does with it.
- parses both sides with
- One shared offline extractor:
- Call sites rewired:
core/validation.py:157and:216, or wherever fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897 and fix(security): every HTTP client dials only addresses its egress level allows, checked at the connect and on every redirect #898 have moved those name pre-checks:not is_public_dns_name(host)replaces.endswith(".local"), after the IP-literal check;_is_fqdn_url(commands/k8s/networking.py:255-277) is deleted._should_update_url(:280-296) follows the key question on configured URLs below and never callsis_public_dns_name;_select_best_ingress_host(:652-661) usesis_at_or_underand skips a host for which it raises. The fallback to the first host when nothing matches is unchanged; the Kubernetes API server already refuses an Ingress host that is not a DNS-1123 name;- pricing's
_is_configured_cluster_host(ai/spend/pricing.py:51-60) usesis_at_or_underand counts a raise as "not under that domain"._is_local_host(:90-101) checks IP literals withipaddressfirst, then usesnot is_public_dns_name(host)in place of the suffix test, so it never raises; - web_fetch (
ai/common_tools.py:316-337):_canonical_hostand_in_domainsare deleted._validate_fetch_domainparses the host once and refuses the hop whenis_at_or_underraises, for allow lists and deny lists alike; PlaywrightBrowser.navigate(ai/harness/agents.py:391-395) takes the host fromurllib.parse.urlsplit(url).hostname, matches withis_at_or_under, and blocks the navigation when it raises;- the sandbox tuple (
sandbox/models.py:129-133) is deleted, unless fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897's second PR already removed it. Names with no public suffix passis_loopback_or_private_hostanyway. The generated policy still resolves them and requires private or loopback addresses (_resolve_local_dnsand_resolve_local_host,sandbox/models.py:187-227). Whathost.docker.internalmaps to (:211-214) stays with fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897; CONST_LOCAL_DOMAIN_SUFFIXES(config/constants.py:2512-2518) is deleted. ACONST_LOCAL_HOSTNAMESread still left in_is_local_host(pricing.py:91) after fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897 also goes, becauselocalhosthas no public suffix and IP literals are already checked.
- Domain fields refuse root and a leading dot when loaded. One shared pydantic type,
Annotated[str, AfterValidator(...)]. It keeps an IP literal (ipaddress.ip_address) as it is. Otherwise it parses the value withdns.name.from_unicode(..., idna_codec=dns.name.IDNA_2008)and refuses root ("",.,@), a leading dot and anything dnspython rejects, naming the field.- List fields, checked per entry, so an empty-string entry is refused:
WebSearchToolandWebFetchTool(ai/agents/capabilities.py:194-195,:202-203);WebFetch(:389-390);Researcher.allowed_domains(ai/harness/agents.py:120) andPlaywrightBrowser.allowed_domains(:334).
- Scalar fields
k8s.domainandcloudflare.domain(config/settings.py:314,:350): a blank or whitespace-only value, from the file or the environment, is read as unset (None) before the check.k8s/template.py:42,:46and:50already treat a blank value as unset, so a blank value must not fail every command's settings load. Any other value gets the same check.
- List fields, checked per entry, so an empty-string entry is refused:
- Table test (offline, parametrised). Mock hosts are
example.com. Matching at or under a domain needs subdomains, and the local-name rows need other suffixes, so the lookalike, malformed-label, IDN, private-suffix and configured-domain rows below are the stated exception to the repository rule that mock hosts carry no subdomain. No other row uses one.- Ingress hosts
grafana.evilexample.comandgrafana.example.comwith domainexample.com:grafana.example.comis picked, and also when the domain is writtenEXAMPLE.COM.(the lookalike subdomain is the point). Witha..b.example.comlisted first,grafana.example.comis still picked (the malformed subdomain is the point). is_public_dns_nameis False forgrafana.corp,grafana.home.arpa,grafana.test,ollama.home,co.uk,1.2.0.192.in-addr.arpa,resolver.arpa,x.onion,localhost,192.0.2.1anda..b.example.com, and True forexample.comandEXAMPLE.COM.(the suffix or the malformed label is the point of each False row). These rows replacetest_is_fqdn_url(tests/test_k8s_networking.py:239-252)._should_update_urlkeeps the configured URL (returns False) for("https://grafana.corp", "http://192.0.2.4:30080")and("https://grafana.home.arpa", "http://localhost:8080"), as today. It also keeps("https://node1.example.internal", "http://192.0.2.4:30080"), which returns True today. It returns True for("http://localhost:3000", "http://192.0.2.4:30080"). The private suffixes are the point;http://192.0.2.4:30080stands for a discovered NodePort URL on an RFC 5737 address.is_loopback_or_private_host(h, resolve_dns=False)is True forgrafana.corp,x.alt,unresolvable.invalidanda..b.example.com, and False for8.8.8.8.validate_url_egress("http://grafana.corp/", allow_private=False)andvalidate_url_egress("http://a..b.example.com/", allow_private=False)raiseSSRFBlockedError, withsocket.getaddrinfopatched to fail the test if called. Today the second one tries DNS first.- web_fetch with
blocked_domains=["example.com"]refusesa..b.example.com,example.com..,.example.com, a 64-character label underexample.comandEXAMPLE.COM.. Withallowed_domains=["example.com"],a..b.example.comandexample.com..are refused; today the domain check admits both. The malformed names are the point of the row. allowed_domains=["faß.de"]admitshttps://faß.de/andhttps://xn--fa-hia.de/and refuseshttps://fass.de/(IDN handling is the point of the row).allowed_domains=[""],["."],["@"]and[".example.com"], andblocked_domains=[".example.com"], are refused when the capability is built.k8s.domain: "."is refused at config load, namingk8s.domain.k8s.domain: ""andk8s.domain: " "load as unset.- navigate with
allowed_domains=["example.com"]blockshttp://example.com:x@8.8.8.8/and allowshttp://EXAMPLE.COM./. Withblock_private_addresses=False, it also blockshttp://a..b.example.com/. Withblock_private_addresses=Falseandallowed_domains=["2001:db8::1"], it allowshttp://[2001:db8::1]/. - Pricing counts
grafana.corp,x.test, a single-label name,x.onionanda..b.example.comas local, without raising, and8.8.8.8andexample.comas remote. Withk8s.domain: example.com,ai.example.comis local andai.evilexample.comis not (the subdomain under the configured domain is the point). - Sandbox:
SandboxNetworkConfig(mode="local_whitelist", local_whitelist=["node1.example.internal"])now builds; today the model validator refuses it. Generating the policy (to_k8s_network_policy(), which resolves the entry through_resolve_local_host) with a mockedsocket.getaddrinfoanswering 8.8.8.8 raisesValueError. The row must generate the policy; building the model alone no longer refuses the name. A name with no public suffix is the point; a TEST-NET answer would not show it, because the stdlib classes TEST-NET as private.
- Ingress hosts
- One answer everywhere. One parametrised test runs three checks over the same host names (no IP literals) and they agree: local exactly when not public. The checks are
is_public_dns_name, pricing's_is_local_host(with an empty config file, so no configured domain or AI endpoint matches) andis_loopback_or_private_host(..., resolve_dns=False). - No writes, no network. With HOME pointed at
tmp_path, building the shared extractor and classifying a name leavestmp_pathempty, and no socket is opened. - No construct left:
rg -n 'CONST_LOCAL_DOMAIN_SUFFIXES|_canonical_host|_in_domains|_is_fqdn_url' src testsprints nothing;rg -n 'endswith\(' src/devops_cli/core/validation.py src/devops_cli/commands/k8s/networking.py src/devops_cli/ai/spend/pricing.py src/devops_cli/ai/common_tools.py src/devops_cli/ai/harness/agents.py src/devops_cli/sandbox/models.pyprints only pricing's":latest"model-tag check (pricing.py:31);rg -n 'split\(":"\)\[0\]' src/devops_cli/ai/harness/agents.pyprints nothing;- no
net-domain-suffixornet-domain-listmarker from feat(ci): hand-rolled URL and address parsing failsdevops ci, AGENTS.md makes the library the rule, and reviews stop discarding the findings #1107 is left in those six files, and nonet-*marker is left on the lines this item rewrites (agents.py:392'snet-hostportincluded). feat(ci): hand-rolled URL and address parsing failsdevops ci, AGENTS.md makes the library the rule, and reviews stop discarding the findings #1107's ceiling drops by the number removed.
- Dependency.
dnspython[idna]==2.8.0is a direct dependency inpyproject.toml. fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897, which lands first, declaresdnspython==2.8.0; this item adds theidnaextra.- dnspython enables its IDNA 2008 codec only when that extra's requirement is met. Today
idna3.19 arrives only through other packages (tldextract, httpx2 and email-validator among them). - Without
idna,from_unicode(..., IDNA_2008)raisesNoIDNA2008on any non-ASCII label, andis_public_dns_namewould read every IDN as not public. uv.lockgains no new package.
- dnspython enables its IDNA 2008 codec only when that extra's requirement is met. Today
- Tests:
tests/test_validation.py:259-260changes as intended:unresolvable.invalidis now non-public;test_is_fqdn_url(tests/test_k8s_networking.py:239-252) is replaced by theis_public_dns_namerows above;- these stay green unchanged:
tests/test_validation.py:234-258,tests/test_k8s_networking.py:34-47and:255-276(as fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794 leaves them),tests/test_ai_spend_pricing.py:269-302,tests/test_common_tools.py:117-149,tests/test_runtime_security_and_ssrf_hardening.py:73-110andtests/test_harness.py:290-324; tests/test_reference_extractor.pypasses unchanged (the scanner keeps its own list);- tests stay offline, and each new test takes under 1 s.
uv run devops cipasses. Achangelog.dfragment names the behaviour changes:- names without a public suffix count as local everywhere;
- public-only egress refuses them, and names dnspython rejects, before any DNS lookup;
configure-urlskeeps a configured URL whose host is a name when discovery finds only an IP or loopback URL. Names underlan,internal,localandcluster.local, and single-label names, used to be replaced;- leading-dot and root domain entries are refused, and a blank
k8s.domainorcloudflare.domainreads as unset.
Key questions
- Configured private zones, as this issue first proposed, or the PSL? Decided (owner, 2026-10-03): the PSL. Fixes use reputable libraries, never curated name lists or suffix tests in source.
- Names without an ICANN public suffix (
lan,corp,internal,home,alt,cluster.local, single labels) are local with no setting. No private zone name goes into config or source, and no migration note is needed. - The earlier design needed a new setting, a curated RFC list in source, and an upgrade step telling users to add
lanfirst. - Cost: a gTLD newer than the bundled snapshot reads as local (refused by public-only egress before DNS, free in pricing) until the
tldextractpin is bumped. The pin is exact (pyproject.toml:30, 5.3.2, released 2026-08-08). - At dcafadf,
.github/dependabot.yml:25points pip updates atrelease/v0.2.14, so no automatic bump reaches current branches today.
- Names without an ICANN public suffix (
- Does a configured URL on a private zone stay protected from
configure-urls? (owner decision) Proposed: yes, and the rule that protects it stops using any public-suffix test.- At dcafadf,
_should_update_url("https://grafana.corp", "http://192.0.2.4:30080")is False. Rebuilt onis_public_dns_name,_is_fqdn_urlwould return False forgrafana.corp, the call would return True, andconfigure-urlswould overwrite a configured.corpor.home.arpaingress URL with a NodePort URL. That overwrite class belongs to fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794. - Proposed rule: a configured URL whose host is a name is not replaced by a discovered URL whose host is an IP literal or loopback. A host is a name when
ipaddress.ip_addressdoes not parse it and fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897's loopback predicate does not match it. Whether it has a public suffix plays no part._is_fqdn_urlthen has no caller and is deleted. - Side effect: configured names under
lan,internal,localandcluster.local, and single-label names, are kept too; today the suffix list lets an IP or NodePort URL replace them. That keeps user settings, the direction fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794 sets ("only unset or local URLs are updated"), and the changelog fragment names it. - The case that needs the owner: a hand-configured in-cluster URL of the form
http://<service>.<namespace>.svc.cluster.local:<port>cannot be reached from outside the cluster. Today a discovered NodePort or port-forward URL replaces it; under the proposed rule it stays until the user changes it. Treatingcluster.localspecially would bring back a suffix test, and the cluster domain is configurable anyway. - Rejected alternative: keep a PSL test in the rule and name the downgrade of private-zone URLs in the changelog fragment. It overwrites the URLs a private cluster is most likely to configure.
- fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794 (v0.2.28) rewrites
_should_update_urland lands first. If its rule already keeps every configured URL that is not unset, the default or loopback, the_is_fqdn_urlcall is gone, and this item only deletes the function and adds the table rows.
- At dcafadf,
- Which special-use names need a test beyond the PSL? Proposed: only
arpa(RFC 3172) andonion(RFC 7686), matched withdns.nameis_subdomain, neverendswith.- Matching all of
arparather thanhome.arpacovers every PSL-suffixed entry in the IANA registry:home.arpa,resolver.arpa,ipv4only.arpa,service.arpa,eap.arpa,6tisch.arpa, and the private reverse zones underin-addr.arpaandip6.arpa. - The rest of this issue's earlier list (
localhost,local,alt,internal) needs no entry, because none of them has a PSL suffix. - These are data no library carries, so the two names stay declared with their RFCs cited.
- Matching all of
- Where does the scanner's hostname list go? Proposed: it moves to fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431, which already owns that file and keeps
CONST_SPECIAL_USE_TLDSfor URL hosts. This item does not touchis_local_or_reserved_domain(security/reference_extractor.py:263-280) orCONST_SPECIAL_USE_TLDS(config/constants.py:1048-1062).- The scanner asks whether a code token is a hostname at all, and the PSL can't answer that.
- With the PSL rule patched in,
self.configandpytest.mark.asynciobecome local domains, and 5 of 35 tests intests/test_reference_extractor.pyfail (measured offline). - The earlier deliverable "delete the convention entries in
CONST_SPECIAL_USE_TLDS" is dropped. - fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 also deletes
is_network_domain(security/reference_extractor.py:695), which rebuilds a registered domain with an f-string at:732. This item lands after fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431, so it does not touch that code. It only swaps the extractor at:64, which fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 keeps.
- Do
.corp,.test,.onionand single-label names become free in pricing? Proposed: accept it. This is spend classification, not a security check, and it matches how names underlanare counted today. A name dnspython rejects is counted as local too, so pricing never raises. - Refuse or strip a leading dot in domain lists? Proposed: refuse at load, naming the field. A leading dot has no DNS meaning, and today it silently disables the entry.
- Why
from_unicodewith IDNA 2008 everywhere, not only for IDN input? Proposed: because httpx2 sends IDNA 2008.from_textwould comparefaß.deasfass.de, a different host. - Is a new dependency needed? Proposed: no new package.
dnspython2.8.0 is already locked (via fastmcp-slim, pydantic[email] and email-validator) and becomes direct, with itsidnaextra.- It is ISC-licensed and pure Python. The last release was 2025-09-07, but the repository is active (commits on 2026-10-03) and not archived.
- Its IDNA 2008 codec needs
idna, which dnspython declares only under theidnaextra.idna3.19 is already locked, so the extra adds no package. tldextract(BSD-3-Clause, commits on 2026-09-29) is already direct.
Strategic alignment
- Priority P2 (raised from P3). A confirmed lookalike host gets written into config, web_fetch deny-list entries can silently do nothing, and the item replaces hand-written suffix tests in six modules and deletes one suffix table.
- Order:
- Depends on fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897, which edits the same lines in
core/validation.py, provides the loopback predicate_should_update_urluses, and declaresdnspython. - In
core/validation.pyit lands after fix(security): every HTTP client dials only addresses its egress level allows, checked at the connect and on every redirect #898 as well. - In
commands/k8s/networking.pyit lands after fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897 and fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794, and before fix(security): URL and host:port reads use the sending client's parser, so key trust, crawls, probes and settings act on the host actually dialled #1112, fix(k8s): service URLs bracket IPv6 hosts, k8s:// addresses reach only their Service, and https probe targets are probed over https #1111 and fix(valkey): one validated URL names every Valkey endpoint, valkey-py dials an address that one check vetted, and the unused cache layer goes #1113. fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794 (v0.2.28) edits_should_update_urland gateway discovery in the same file and lands first; this item rebases over its_should_update_urlchange. - It lands after fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431 (v0.2.26), which edits
reference_extractor.pyand deletesis_network_domain. - Burns down feat(ci): hand-rolled URL and address parsing fails
devops ci, AGENTS.md makes the library the rule, and reviews stop discarding the findings #1107's baseline.
- Depends on fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897, which edits the same lines in
- Proposed milestone: backlog (P2), picked by the release-start fill once fix(security): egress guards refuse cloud metadata in every numeric, NAT64 and provider form, classified by ipaddress and one maintained library #897 and fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794 have landed.
- Related:
- fix(security): network references come from url and ip syntax, not identifier-prefix and property-suffix lists #431: keeps the scanner list. Its split-off note naming this issue for "the local-name lists" should read "the spend, k8s and egress local-name checks".
- fix(k8s): tunnel sync and url setup still overwrite settings they should keep #794: owns which configured URLs
configure-urlsmay overwrite. This item only takes the public-suffix test out of that decision (see Key questions). - fix(ai): web_fetch vets every redirect hop before it is sent (#860) #902 (fix(ai): web_fetch vetoes every redirect hop, reports failures as failures and renders pages as untrusted text #860): introduced
_in_domains. - docs(agents): a matching table lives beside its one owner, and moves to config/ only when a second package imports it #1016 and refactor(ai): the model client, gateway, mcp and tool tables move out of config/ next to their owners #1027-refactor(cli): the telemetry, ui, model, core and output tables move out of config/ next to their owners #1032:
CONST_LOCAL_DOMAIN_SUFFIXESis deleted here, not moved.
Update 2026-10-08: refinement
Every defect holds; #431, #897 and #898 landed, and #794 lands first. dnspython is already pinned (pyproject.toml:40), so only idna is added. #897's second PR is #1174; whichever lands second drops sandbox/models.py:129-132. Lines: core/validation.py:236, :334; config/constants.py:2775-2781; commands/k8s/networking.py:646-655; ai/common_tools.py:459-469.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]fix(security): one local-name check from the special-use registry and configured private zones[/-][+]fix(security): local names come from the public suffix list, and domains match on DNS labels, not string suffixes[/+]dan-petty commentedon Oct 8, 2026
Cross-check from the 2026-10-08 client-library audit (checked at release/v0.2.29, 05e9388).
PlaywrightBrowser(ai/harness/agents.py:329-479) answers every action with a canned string that a model reads as evidence. For example: "Navigated to {url}. Title: Page Title. Content loaded." (:397), "Console logs: 0 errors." and "Network requests: 200 OK (0 failed)." (:465-479).This item does not cover that: it only rewires the stub's host check in
navigate(:391-395). #1330 does cover it, with the proposed answer "delete it" (#1330, key question onPlaywrightBrowser). No new issue is filed.If #1330 deletes the class, this item's
PlaywrightBrowser.navigatecall-site change and its navigate table rows go with it. Whichever of the two lands second drops them.Key question for the owner: delete the stub browser (#1330's proposal) rather than give it a real backend?
Found by the 2026-10-08 client-library audit.
dan-petty commentedon Oct 17, 2026
Moved to v0.2.37: v0.2.37 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)
fix(security): local names come from the public suffix list, and doma…
fix(security): addresses are classified with ipaddress, and the sandb…
dan-petty commentedon Oct 18, 2026
What changed
#1618, merged into
release/v0.2.37as 4ee3e01.23 file(s) changed.
How it was verified
Check runs at e9b64bb:
Acceptance Criteria of
docs/agent/tasks/task-887-psl-local-names-and-dns-label-matching.md:No Acceptance Criteria section.
feat(release): v0.2.37 (#1720)