Repository navigation
feat(privacy): proxy third-party images through skilld.dev - #246
Merged
Merged
Conversation
An image loaded from another host tells that host who is reading which page. The /_img route fetches avatar hosts and server-signed addresses instead, so visitors only talk to skilld.dev.
Outbound links and requests no longer reveal the page path a visitor was reading.
Badges rendered as links after images were limited to GitHub hosts. Every https image now loads through the signed proxy, GitHub included, and cached renders use new keys so stale markup with direct image addresses stops serving.
GitHub, X, and Bluesky avatars on pages and in the weekly email now load from skilld.dev. The weekly demo cache is renamed so the homepage stops serving the old card markup.
Collaborator
Author
Contributor
🤖 MERGED
GitHub merged this pull request. No material findings were recorded. 96eb6565-f59c-40e2-b64b-e13fefff345e |
1 task done
This was referenced Sep 17, 2026
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.


Stacked on #241.
❓ Type of change
📚 Description
#241 stopped SKILL.md from loading images off non-GitHub hosts, which turned every shields.io badge into a plain link. Avatars were still hotlinked from GitHub, X, and Bluesky on about 30 surfaces, and GitHub itself still saw every visitor who opened a skill with a raw image.
Now every third-party image loads from
/_imgon skilld.dev. Avatar hosts go through a strict allowlist; SKILL.md images carry an HMAC signature, so the route cannot be used as an open proxy. Upstream sees a generic user agent and nothing from the visitor. The site also sendsReferrer-Policy: strict-origin-when-cross-origin.📝 Migration
Set the signing secret before deploying:
openssl rand -base64 32 | npx wrangler secret put NUXT_IMAGE_PROXY_KEYIf the secret is missing, SKILL.md images fall back to links and an
image-proxy-keywarning is logged. Avatars keep working, since they need no key.Open questions:
rendered_raw, so this only shows for legacy rows with no raw copy.text/plain, so an SVG committed to a repo returns 415 through the proxy. It did not render as a direct<img>either, but sniffing SVG by extension would fix it if we want that.