Skip to content

docs: same-origin ingest proxy for ad-blockers (O21) - #819

Merged
unjica merged 5 commits into
developfrom
docs/o21-proxy-docs
Oct 19, 2026
Merged

unjica merged 5 commits into
developfrom
docs/o21-proxy-docs

Conversation

@unjica

@unjica unjica commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

Docs page /docs/ingest-proxy with recipes for Next.js rewrites, nginx, and a Cloudflare Worker. SDK ingestUrl already supports this; no tunnel infrastructure added.

Related: #788 (client IP / rate limits), #208 (copy ingest URL).

Rate-limit / spoofing assessment

clientIpKeyGenerator trusts cf-connecting-ip only from Cloudflare peers, x-real-ip from Railway edge, and x-tt-client-ip only with the affiliate shared secret (not for customers). Safe recommendation: forward Authorization / X-API-Key + body only; accept rate-limit IP = proxy egress (still partitioned by API key public id via ingestKeyGenerator). Do not forward spoofable visitor IP headers from browsers.

Verification

Check Result
Direct prod /ingest/error missing/invalid key 401
Local Node reverse proxy /tt/ingest/* → prod (no/bad key, Bearer + X-API-Key, session) 401, same error body
Live 204 with temporary QA project key Not run (Mac offline; no QA key on box) — docs tell operators to confirm 204 before production
nginx / wrangler dev runtime Not executed here; configs match the verified request shape

Production use

Safe to recommend as a customer-operated reverse proxy after they confirm 204 with their key. Not a managed tunnel. Blocklist status of api.telemetry-tracker.com remains UNVERIFIED.

Test plan

  • CI green
  • Optional: create QA key, hit /tt/ingest/error via rewrite, revoke key

Add /docs/ingest-proxy with Next.js rewrites, nginx, and Cloudflare Worker
examples. Recommend forwarding Authorization and body only; document
clientIpKeyGenerator trust boundaries (#788) and that visitor-IP spoofing
via customer proxies is not supported. Path forwarding verified against
production ingest through a local Node relay (401); live 204 with a QA
key not run in this environment.
Telemetry Tracker Bot added 4 commits October 19, 2026 09:25
Positive 204 through /tt Node relay with a QA key. Docker nginx and
wrangler dev forward auth+body; nginx/Worker snippets now clear
spoofable IP headers (rewrites pass them through — noted).
@unjica
unjica merged commit ea2d724 into develop Oct 19, 2026
7 checks passed
@unjica
unjica deleted the docs/o21-proxy-docs branch October 19, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant