Skip to content

fix: explicitly set ProxyConnectHeader for Webshare HTTPS CONNECT auth#9

Closed
Jing-yilin wants to merge 3 commits into
developfrom
feature/investor-metrics
Closed

fix: explicitly set ProxyConnectHeader for Webshare HTTPS CONNECT auth#9
Jing-yilin wants to merge 3 commits into
developfrom
feature/investor-metrics

Conversation

@Jing-yilin
Copy link
Copy Markdown
Contributor

Go's http.Transport does not automatically handle 407 challenge-response for HTTPS CONNECT tunneling. This fix sets ProxyConnectHeader with the Proxy-Authorization header upfront so Webshare residential proxy auth works from ECS.

Fixes the Proxy Authentication Required error introduced in #8.

…crawl

Backend:
- CampaignSnapshot table for 24h velocity calculation
- Campaign.velocity_24h + pledge_delta_24h fields
- Alert.alert_type ('keyword'|'momentum') + velocity_thresh field
- Cron: RunCrawlNow (exported), snapshot storage, velocity computation
- ListCampaigns: sort=hot from DB, DB fallback when GraphQL fails
- Startup goroutine triggers RunCrawlNow 3s after server boot
- Improved Cloudflare bypass headers on session bootstrap

iOS:
- CampaignDTO: velocity_24h, pledge_delta_24h, first_seen_at fields
- CampaignRowView: momentum badge (⚡ +N% / 🔥 +N%) and New badge
- DiscoverView: 🔥 Hot sort option
- AlertsView: Momentum alert type with velocity threshold slider
…ter requests

- Add WEBSHARE_PROXY_URL config read from env/Secrets Manager
- Pass proxy to KickstarterGraphClient and KickstarterRESTClient http.Transport
- Disable ForceAttemptHTTP2 (incompatible with HTTP CONNECT proxy)
- Add webshare-proxy-url to Secrets Manager ARN resolution in deploy workflow
- Update .env.example with WEBSHARE_PROXY_URL documentation
Go's http.Transport does not auto-retry 407 for CONNECT tunnels.
Must set Proxy-Authorization header upfront via ProxyConnectHeader.
@Jing-yilin Jing-yilin closed this Feb 27, 2026
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