Repository navigation
fix: route migrated content through the DA compatibility bridge - #34
Merged
Merged
Conversation
Prevent allowlists and image opt-outs from reading stale R2. Preserve legacy URL/auth handling and conditional metadata. Deploy the da-admin bridge first and synchronize migration lists. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bosschaert
approved these changes
Nov 23, 2026
bosschaert
left a comment
There was a problem hiding this comment.
LGTM but to get the tests to pass you need to get the coverage up 😄
Normalize percent-encoded and dot path segments before migration checks, cache parsed migration lists, preserve CORS headers on error responses, only forward upstream content-length on HEAD, and cover all branches. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion to adobe/da-admin#344.
Route sites in
HLX6_MIGRATED_SITESthrough the existing daadmin service binding before IP allowlists or image opt-outs can read legacy R2. Sources still configured for dual write retain their existing routing.Behavior
.gimme_cookie, SVG download handling and CORS on the content host.Rollout and compatibility
Deploy adobe/da-admin#344 first. Set identical
HLX6_MIGRATED_SITESandHLX6_DUAL_WRITESdashboard values on both workers; keep them out of Wrangler vars sokeep_varscan preserve configuration.Previously public direct-R2 requests still need valid HLX6 authorization after migration. This change does not grant anonymous authoring access. Content-host mutations remain unsupported; supported source/config saves go through da-admin.
Validation
npm test -- --reporter dot: 87 passing.npm run lint: passed.