Repository navigation
fix(tech-detect): firebase-hosting reads the page's own host, not *.web.app URLs in the HTML #1448 - #1450
Closed
nc9 wants to merge 2 commits into
Closed
fix(tech-detect): firebase-hosting reads the page's own host, not *.web.app URLs in the HTML #1448#1450nc9 wants to merge 2 commits into
nc9 wants to merge 2 commits into
Conversation
…eb.app URLs in the HTML; url-host detector #1448 Signed-off-by: Nik Cubrilovic <[email protected]>
…docs note the intended recall change #1448 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
fix/tech-firebase-hosting-fp-1448
branch
from
October 31, 2026 19:53
fef2e4d to
bcfa79d
Compare
This was referenced Oct 31, 2026
Merged
Contributor
Author
|
Landed in v0.0.152 as nik |
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.
Closes #1448
Cause (confirmed on the issue): the generated
firebase-hostingsignature had aurl-pathdetector for\.web\.app|\.firebaseapp\.com;url-pathmatches the page URL and then the whole page HTML, and the storefront's HTML loads a third-party app's script from a*.web.apphost. Thex-dc: gcp-*header was never matched.Change
url-host: matches the page's own host name only, never its HTML.firebase-hostingmoves to the curatedhosting.ts(the generator dedupes against curated ids, so a regenerate cannot bring the old pattern back) withurl-host(^|.)(web.app|firebaseapp.com).?$(a trailing-dot host counts) and the unchangedVary: x-fh-requested-hostheader signal; its entry is removed fromgenerated.ts.scripts/generate-tech-fingerprints.tsacceptsurl-host.surge-sh,railway-app,aws-amplify-hostingand oneac-page.comsignature is filed as tech-detect: hosting signatures written as host suffixes match third-party URLs in the page HTML #1449.Tests
firebase-hosting-1448.test.ts(synthetic fixtures only): Shopify headers with gcpx-dcandserver-timing(negative); a page whose third-party app script is on*.web.app/*.firebaseapp.com(negative); hosts that only contain the suffix (negative);*.web.appand*.firebaseapp.comhosts and theVaryentry (positive); an unparseable URL does not throw. All tech-detect suites pass; a trailing-dot host (my-site.web.app.) is a positive test.Not run: the corpus check for loss of true Firebase Hosting detections (label squirrelscan-53). The only sites that lose it are those detected through a
.web.appURL in the HTML rather than their own host or header.Icon: the slug
firebase-hostingis unchanged, so no new tech icon. Docs:cloud/technologies.mdxsays hosting platforms on a host suffix are read from the page's own host, and that a site that only mentionsfirebaseapp.comor loads a third-party script from*.web.appis intentionally not reported. Skill change: none.nik