Files
EasyDNS/docs/spec-gaps.md
T
2026-11-22 14:21:54 +01:00

66 lines
6.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Specification 1.0 compliance – what is missing (0.1.0 + Unreleased changes, updated 2026-11-22)
Legend: ❌ missing, ⚠️ partial, 🧪 implemented but not verified by running it.
Everything not listed here is implemented and covered by tests (see `docs/testing.md`).
## Features
| § | Requirement | Status | Details |
|---|---|---|---|
| 3.1 | multiple listeners with socket re-use, socket limits | ✅ | UDP socket group per address with SO_REUSEPORT (`server.udp_sockets`); one TCP listener per address |
| 3.2 | DNAME | ❌ | not supported by the zone parser or the resolver |
| 3.2 | RFC 3597 | ✅ | in zone files and on the wire |
| 4 | DNSSEC on the primary | ⚠️ | online signing with NSEC; **no NSEC3 signing**; manual key rollover (add/remove key file + reload); no automated KSK/ZSK rollover schedule, no CDS/CDNSKEY |
| 4 | `$GENERATE` in zone files | ❌ | expand beforehand (`named-compilezone`) |
| 5 | secondary forwarding UPDATE to the primary | ❌ | a secondary answers NOTIMP to UPDATE |
| 6 | DNSSEC: automated trust anchor updates (RFC 5011) | ❌ | built-in anchors (KSK-2017, KSK-2024) or a file; updates are manual |
| 6 | DNSSEC: Ed448 | ❌ | zones signed only with Ed448 validate as *insecure* |
| 6 | coalescing of identical in-flight queries | ✅ | client questions are coalesced per route (forwarder pool / recursion); internal resolver lookups are not |
| 7 | conditional forwarding per record type | ❌ | per domain/suffix and per client only |
| 9 | persistent cache across restarts (optional) | ❌ | |
| 9 | separate cache for DNSSEC results | ⚠️ | validated answers use a separate cache key (`dnssec=true`); the validator's zone key cache has a fixed 300 s TTL |
| 10 | block list update schedule | ⚠️ | `easydns blocklists update` + systemd timer; no in-process scheduler |
| 10 | rules by record type | ❌ | blocking works by name and client, not by type |
| 10 | per-client/per-subnet policies | ⚠️ | exemptions (`exempt_clients`) and views for zones; no different block lists per subnet |
| 10 | RPZ | ❌ | not explicitly required; conversion is described in `migration-from-bind.md` |
| 11.2 | DoH over HTTP/2 | ✅ | server: HTTP/2 + HTTP/1.1 (ALPN), h2c behind a proxy; client: persistent multiplexed HTTP/2 with HTTP/1.1 fallback; DoT client pooled |
| 11.3 | DoQ / DoH3 | ❌ (as specified) | architecture prepared, not implemented |
| 12 | response rate limiting (RRL) | ⚠️ | per client (/32, /56) + global with "slip"; no RRL per (qname, response) |
| 12 | memory control | ⚠️ | limits on cache entries, connections, in-flight queries and sizes; no hard RSS limit |
| 12 | API auth: token revocation/rotation | ⚠️ | via configuration change + reload; no endpoint; no JWT/mTLS (optional) |
| 12 | hiding domain names in logs | ⚠️ | client IPs are anonymised; names in the query log are not masked (the query log is off by default) |
| 13 | modular configuration (include) | ✅ | `include: ["zones.d/*.yaml"]` – zones, keys, ACLs, forward zones in separate files (nesting, globs) |
| 13 | hot reload of listeners / TLS / cache size | ⚠️ | need a restart – reported in `restart_required` |
| 14 | users with roles | ⚠️ | tokens with admin/read-only roles; no user accounts |
| 14 | `/api/...` aliases | – | intentionally only `/api/v1` |
| 15 | web panel | ❌ (by decision) | out of scope for the first versions; no `web/` directory |
| 16 | Grafana dashboard export | ✅ | `deploy/grafana/easydns.json` (not tested in Grafana 🧪) |
| 17 | CLI name | ✅ | `easydns` (short `edns`) instead of `mydns` – changed on request |
| 17 | `easydns` over a secure socket | ⚠️ | HTTP API on loopback only; no UNIX socket |
| 18 | man pages and completions for the `e*` tools | ⚠️ | man page + completions only for `easydns`; the tools have `--help` |
| 18.1 | `ed`: `ixfr=SERIAL` syntax, several queries per invocation, `+multiline` | ❌ | `+multiline` is accepted and ignored |
| 18.3 | full nslookup compatibility in `ens` | ⚠️ | the most common arguments and interactive commands |
| 18.10 | install via Cargo, `.deb`, `.rpm`, archives | 🧪 | `cargo install --path crates/dns-cli` works; `.deb` – `scripts/build-deb.sh` (Docker) **not run** in this environment; `.rpm` – nfpm configuration only |
| 19 | `web/`, `benches/`, `tests/` at the repository root | ⚠️ | tests live in `crates/*/tests`, benchmarking is `easybench` + `docs/testing.md`; `benches/` has only a README |
| – | message translations (i18n) | ❌ | messages are English only |
## Verification (what has NOT been run)
| § | Requirement | Status |
|---|---|---|
| 20.4 | comparison with real `dig`/`host`/`nslookup` | 🧪 `scripts/e2e.sh` is ready but **has not been run** (no `dig` in the build environment); the `e*` tools are covered by their own integration tests |
| Stage B | "external test secondary" (e.g. BIND) | ❌ interoperability with BIND as secondary/primary has not been tested; primary↔secondary was tested between EasyDNS instances (in one test process; the two-process variant is in `e2e.sh`) |
| 20.5 | cargo-fuzz | 🧪 targets in `fuzz/`, not run; the stable robustness test (30 000 packets) runs with every `cargo test` |
| 20.6 | 10k/50k/100k QPS, long-running test (leaks, tasks, descriptors) | ⚠️ ~54.6k QPS measured for authoritative answers on 2 vCPU; no 100k+ and no soak test; estimates vs BIND in `docs/performance.md` (estimated to stop scaling above ~4–8 cores) |
| 20.7 | CI, ARM64, musl | 🧪 workflow ready (`ci/github-actions-ci.yml` – copy it to `.github/workflows/`), not run; ARM64/musl/macOS/Windows builds not executed |
| 21 | Docker image, compose, systemd | 🧪 files ready, not built or run |
| 11 | DoT/DoH upstreams in the forwarder | ✅ tested end to end (`secure_forwarder_over_dot_and_doh`): plain-DNS client → forwarder → DoT / DoH upstream with a private CA |
| 18.9 | `ewhois` (RDAP/WHOIS) | 🧪 needs the Internet, untested |
| 6 | DNSSEC validation on the real Internet | 🧪 tested against a local signed root→TLD→zone chain; not checked with the real IANA anchors (no network in the test environment) |
| 6 | NSEC3 validation | ⚠️ logic + RFC 5155 test vector unit-tested; no end-to-end test with an NSEC3 zone |
## Repository
* No git repository has been initialised on disk (no commits were made – commits only on request).
* `.github/` could not be written remotely – the workflow is in `ci/github-actions-ci.yml`.