Skip to content

docs: audit leftovers after the docs-audit PRs (#543-#548) - #567

Merged
luthermonson merged 1 commit into
mainfrom
docs/audit-leftovers
Oct 11, 2026
Merged

luthermonson merged 1 commit into
mainfrom
docs/audit-leftovers

Conversation

@luthermonson

Copy link
Copy Markdown
Contributor

These are the documentation leftovers from the 2026-10-10 docs coverage audit, after the six audit PRs (#543–#548) merged. I re-checked every audit gap against main @ e437652 and fixed what was still wrong or undocumented. Each claim was checked in source. The PR changes docs and doc comments only; no behaviour changes.

Known leftovers

  • Cluster rate limits (opcache-cluster-invalidation.md, roadmap/clustered-kv-v2.md): docs(db): fix config part B + DB feature findings from the docs coverage audit #545 had already rewritten the main paragraphs. This PR fixes the two places in the roadmap page that still said "per-node":
    • the owner-unreachable failure mode now falls back to today's approximate last-writer-wins counting;
    • the sizing table gains a "shipped (feat(cluster): per-site clustered Turso replication and per-vhost KV replication #416)" row for publishing INCR/APPEND/PERSIST results.
    • Checked against Store::incr_by_with_ttl and replicate_published_value: each increment publishes its resulting total, last arrival wins. append and persist also publish.
  • Builtin count (CLAUDE.md, AGENTS.md): there are twelve builtins, not ten. The registry is builtin() in crates/ephpm-server/src/middleware.rs and adds session-cookie and preview-gate, and all twelve declare CONFIG_KEYS.
    • The in-repo cdylib shells are {cors,jwt,ratelimit,security-headers,session-cookie}.
    • AGENTS.md claimed the other shells live in an examples repo. ephpm/middleware-examples holds teaching templates, not shells.
    • The same count is fixed in the rustdoc in ephpm-server/src/middleware.rs, ephpm-middleware/src/{lib,builtin}.rs and ephpm-middleware-builtins/src/lib.rs.
    • AGENTS.md also listed an admin subcommand that does not exist (now labelled planned), described the service commands as ephpm service install|... (the real form is ephpm install|uninstall|start|stop|restart|status|logs), and called key ownership a "consistent hash ring" (it is hash(key) mod alive nodes).
  • Docker pins: v0.8.6 is now v0.11.2, the latest release, in guides/wordpress.md (two k8s images and the dev banner) and examples/wordpress-compose/compose.yaml. I confirmed on Docker Hub that v0.11.2-php8.5 and v0.11.2-php8.5.7 exist. The install tag table now also lists the 8.3 rolling tag. ebpf-per-vhost-network.md now says "as of v0.11.2". The close-time port reclaim is still unimplemented (vhostnet.bpf.c).
  • JIT comment: docs(config): fix [server]/[php]/[[middleware]]/[preview_auth]/env-var audit findings #543 had already fixed the main.rs comment and the JitMode::Tracing doc. This PR fixes the remaining PhpConfig::autotune rustdoc, which still implied the JIT is on outside multi-tenant mode.

Audit gaps still open on main, fixed here

  • reference/config.md [[middleware]]: a module identifies the tenant with vhost_id() (the canonical site key), not the request's server name. This was audit item A6 and contradicted the guide.
  • reference/environment-variables.md: EPHPM_MIDDLEWARE_DIR, with its position in the search order and the rule that an empty value is ignored (A13).
  • reference/metrics.md: PHP-lane mounts record action="error" (fatal) and never rewrite (A12; router.rs, MiddlewareOutcome).
  • architecture/clustering.md: the clustered ACME challenge-sharing "Solution" is now labelled planned at the point of use. store_acme_challenge is called only from tests.
  • architecture/http.md: overload = "shed" / shed_after_ms apply to per-request mode only; worker mode ignores them and startup warns (A14).
  • migration/nginx-php-fpm.md: if nginx stays in front, set trusted_proxies. The page now explains which forwarded headers are read and that per_ip_max_connections counts the proxy (A12).
  • Rustdoc:
    • sidecar_port_range claimed sock_release returns ports. It does not.
    • cmd_set claimed EXAT/PXAT support (C6).
  • Eight broken internal links (found by a link check of the built site): #residual-risks, #running-wp-cli-artisan-against-a-site, #server-websocket, #filesystem-isolation-temp-sessions, #dbsqlitereplication, a renamed turso-engine phase heading, and the two /docs/... paths in the roadmap index.

Still open (not fixed here)

Verification

  • cargo +nightly fmt --all -- --check: clean.
  • cargo clippy -p ephpm-kv -p ephpm-config -p ephpm-middleware -p ephpm-middleware-builtins -p ephpm-server --all-targets -- -D warnings: clean.
  • Built the site with Hugo and link-checked every internal link and anchor: 0 broken (main had 8).

- CLAUDE.md / AGENTS.md: twelve builtin middleware modules (adds
  session-cookie and preview-gate), five in-repo cdylib shells; AGENTS.md
  also drops the nonexistent `admin` subcommand / `service install` form
  and the "consistent hash ring" claim. Same count fix in rustdoc.
- Docker pins: v0.8.6 -> v0.11.2 (wordpress guide, wordpress-compose
  example, dev-server banner); 8.3 rolling tag in the install table.
- roadmap/clustered-kv-v2: failure-mode text and sizing row reflect the
  #416 last-writer-wins INCR/APPEND/PERSIST replication.
- config.md: middleware tenant discrimination is vhost_id(), not the
  server name; env-vars: EPHPM_MIDDLEWARE_DIR; metrics: PHP-lane
  `action="error"`.
- architecture: clustered ACME challenge sharing labelled planned;
  overload=shed is per-request only.
- migration/nginx-php-fpm: trusted_proxies guidance when nginx stays in
  front.
- Rustdoc: autotune JIT default, sidecar_port_range reclaim, cmd_set
  EXAT/PXAT.
- Fix 8 broken internal links.
@ephpm

ephpm Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

ePHPm Preview — removed

Preview deployment has been torn down.

@ephpm

ephpm Bot commented Oct 11, 2026

Copy link
Copy Markdown

ePHPm Preview — blocked by the analyze gate 🚫

This PHP preview was not published. ephpm analyze returned quarantine (13 finding(s)) on the pull request's code before it could be served.

ephpm analyze reached the quarantine threshold (exit 2)

Rule Location Message
dangerous-sinks/eval examples/analyze-demo/public/index.php:18 call to eval() — dangerous sink
dangerous-sinks/system examples/analyze-demo/public/index.php:13 call to system() — dangerous sink
obfuscation-scan/eval-of-request examples/analyze-demo/public/index.php:18 eval() argument references request input ($_POST) — executes attacker-controlled data
dangerous-sinks/assert examples/analyze-demo/src/Router.php:9 call to assert() — dangerous sink
obfuscation-scan/dynamic-call examples/kv-redis-predis.php:53 dynamic call via $var() — variable-driven code execution (heuristic)
obfuscation-scan/dynamic-call examples/kv-redis-predis.php:57 dynamic call via $var() — variable-driven code execution (heuristic)
obfuscation-scan/dynamic-call tests/cli-conformance/034-oop-magic.php:42 dynamic call via $var() — variable-driven code execution (heuristic)
obfuscation-scan/dynamic-call tests/cli-conformance/017-generators-closures.php:37 dynamic call via $var() — variable-driven code execution (heuristic)
obfuscation-scan/dynamic-call tests/cli-conformance/017-generators-closures.php:41 dynamic call via $var() — variable-driven code execution (heuristic)
obfuscation-scan/dynamic-call tests/cli-conformance/017-generators-closures.php:46 dynamic call via $var() — variable-driven code execution (heuristic)

Showing 10 of 13 findings.

Fix the findings and push again — the preview redeploys and this comment refreshes automatically.

@ephpm
ephpm Bot had a problem deploying to preview-pr-567 October 11, 2026 05:20 Failure
@ephpm
ephpm Bot had a problem deploying to preview-pr-567 October 11, 2026 05:20 Failure
@ephpm
ephpm Bot had a problem deploying to preview-pr-567 October 11, 2026 05:20 Failure
@luthermonson
luthermonson merged commit 45143a6 into main Oct 11, 2026
10 checks passed

This branch had an error being deployed

1 failed deployment
preview-pr-567 — 13ac96b0 Deployed Oct 11, 2026 by ephpm[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant