Repository navigation
feat: resolve site backends through shared KV - #349
Conversation
Replace migrated-site lists with cached ping detection. Keep dual-write overrides in admin and fail closed on registry or probe errors. Seed migrated sites as hlx6 and active dual-write sites as da before rollout. KV cutovers require propagation and request draining. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ReviewSwapping the hand-maintained env list for a shared registry is a good direction, and the cutover steps in the README are clear. Lint passes and the unit tests pass (702). The main risks are in the cold-lookup probe. Should fix
Minor
Question: does |
Expire negative probes and keep known routing results on cache write failures. Authorize listing probes and gate org discovery on cached HLX6 sites. Avoid sharing request-scoped I/O between Worker requests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@bosschaert Thanks — addressed in cf6aa44, with the shared resolver fixes also pushed to adobe/da-content#35.
Header semantics: the upgrade header reflects source-bus configuration, including an AEM API source or overlay; it does not prove completed migration. The originally requested heuristic remains, but this limitation and the need to preload still-DA sites are now explicit. Manual registry values take precedence. Residual limit: the TTL bounds retention, not traffic. Open-org access and unauthenticated da-content requests can still generate arbitrary-name probes/KV writes. No rate limiter or org-existence policy was introduced, so this should not be read as eliminating that cost/abuse risk. Validation: 712 admin tests pass; lint and the production dry-run build pass. All pushed-head PR checks are green, including the Build workflow. The companion has 111 passing tests with 100% coverage in all four categories and green CI. PR descriptions and operational docs have been updated. |
Follow-up review (cf6aa44)Thanks @kptdobe. I checked the update against your replies, and all 8 points are addressed in the code. Lint passes and the unit tests pass (712). I agree the two residual risks are now stated explicitly: arbitrary-name probes in orgs without ACLs and from da-content, and the upgrade header being a heuristic that relies on pre-loading every site still on DA. Remaining concerns
|
Cache both gate results for five minutes to avoid per-listing KV scans. Keep direct site routing authoritative and document cache invalidation. Require registry pre-seeding for new DA sites and refresh env typings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@bosschaert Thanks for the follow-up. Addressed the three remaining concerns in c18c909:
Cache tradeoff: scans still happen on cold/expired org gates, and concurrent misses can duplicate them. New HLX6 sites or dual-write changes can take five minutes plus KV propagation to affect org discovery. Direct site routing remains authoritative and does not consult the org cache. The cutover docs explain optionally deleting the derived Validation: 718 full-suite tests and 184 focused registry/bridge tests pass; lint and the production dry-run build pass. The pushed-head Build workflow is green, including unit tests, local integration, branch deployment, and post-deployment integration. The companion documentation-head CI is also green. PR descriptions are updated; no manual production deployment or production registry seeding was performed. |
# [1.18.0](v1.17.0...v1.18.0) (2026-11-25) ### Features * resolve site backends through shared KV ([#349](#349)) ([a685e2e](a685e2e))
|
🎉 This PR is included in version 1.18.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary
HLX6_MIGRATED_SITESwith the sharedDA_SITE_BACKENDSKV registry (org/site->daorhlx6), normalizing cached values.HLX_ADMINconfigures the probe base URL.org:<org>. Warm gates require one KV read and no listing/bulk-read scan; misses scan and refresh the derived cache.DA_SITE_BACKENDSandHLX_ADMIN, removing the obsolete migrated-sites variable.Rollout and limits
da, and migrated sites ashlx6. Audit conflicting inventory instead of overwriting authoritative entries.daentry and wait for KV propagation before its first request, including document creation. Site creation does not seed the registry automatically.org:<org>entry to refresh sooner. Direct site routing is unaffected.Validation
Companion
adobe/da-content#35. Deploy da-admin first.