Repository navigation
Add a host allowlist for creative asset rewriting #1253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dhruv8sh
wants to merge
23
commits into
main
Choose a base branch
from
feat/1231-creative-asset-host-allowlist
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
53cfb81
Add design spec and plan for creative asset host allowlist
dhruv8sh d8f0439
Split creative URL normalization from rewrite host policy
dhruv8sh c9c79b5
Add an auction rewrite_clicks setting that follows rewrite_creatives …
dhruv8sh 5a91c92
Gate creative asset and click rewriting on separate switches
dhruv8sh 35dd1d1
Apply an explicit rewrite_clicks to HTML fetched through the first-pa…
dhruv8sh 0396aba
Document rewrite_clicks in the example config and pin its overlay beh…
dhruv8sh ee5715f
Document the rewrite_clicks creative setting
dhruv8sh 48d59b8
Add rewrite include_domains setting with validation
dhruv8sh ef8ad67
Limit creative asset rewriting to rewrite include_domains
dhruv8sh 9d9fb27
Rewrite link imagesrcset once on the inline creative path
dhruv8sh ea642da
Update spec and plan after implementation review
dhruv8sh 2dfe7e7
Document rewrite include_domains and case-insensitive exclusions
dhruv8sh 8b0f200
Merge branch 'main' into spec/1231-creative-asset-host-allowlist
prk-Jr ece25d3
Merge branch 'main' into spec/1231-creative-asset-host-allowlist
aram356 cce4e2a
Address review feedback on the include_domains spec and plan
dhruv8sh e2970f4
Merge branch 'spec/1231-creative-asset-host-allowlist' into feat/1231…
dhruv8sh f7885c1
Round-trip include_domains entries through url
dhruv8sh e1332c9
Use a let-chain in the creative link handler
dhruv8sh 2af735d
Document include_domains host round-trip rules
dhruv8sh 1b97522
Warn that public rewrite wrappers ignore switches
dhruv8sh ff48ae9
Keep a bidder base target when dropping its URL
dhruv8sh 366e361
Correct operator docs for rewrite_clicks
dhruv8sh e210f62
Expand the CHANGELOG notes for the shared step
dhruv8sh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P3] Qualify the claim that only included hosts receive EC IDs
Non-blocking documentation/contract correction; correctness and architecture lanes. The claim that “only those hosts receive the EC ID on proxied fetches” is broader than the implementation. For example, obtain a creative-generated proxy URL for
cdn.example.net, then configure an include list that excludes it without changing the publisher secret. Static creative URLs have notsexp(creative.rs:600–643), signature validation does not consult rewrite policy (proxy.rs:2071–2152), and/first-party/proxystill forwards the EC ID subject only toproxy.allowed_domains(proxy.rs:1506–1528). Previously delivered creatives can therefore continue forwarding IDs to now-off-list hosts. Qualify the changelog and operator guidance: the list controls newly rewritten/signed asset targets, not previously issued URLs or fetch-time enforcement. This preserves the spec’s explicit non-goals; it does not propose expanding runtime policy.