Skip to content

fix: the rollout report's health check names itself, so Cloudflare does not refuse it - #51

Merged
AmrMsCLL merged 1 commit into
mainfrom
fix/report-user-agent
Nov 5, 2026
Merged

AmrMsCLL merged 1 commit into
mainfrom
fix/report-user-agent

Conversation

@AmrMsCLL

@AmrMsCLL AmrMsCLL commented Nov 5, 2026

Copy link
Copy Markdown
Member

graphite-report checks each project's host after a rollout. It sent Python's default Python-urllib user agent, which Cloudflare refuses with 403. So the hub recorded healthStatus: 403 for its own deploy, although the site answers / with 200.

The check now sends User-Agent: project-graphite-deploy-report, the same kind of named agent the uptime check uses.

Checked from outside against https://project-graphite.com/: Python-urllib/3.12 gets 403, project-graphite-deploy-report gets 200. The script still parses.

After merge, copy the script to the VPS again; host/ files travel only through bootstrap.sh:

sudo curl -fsSL -o /srv/graphite/bin/graphite-report https://raw.githubusercontent.com/project-graphite/platform/main/host/graphite-report
sudo chmod 755 /srv/graphite/bin/graphite-report && sudo chown deploy:deploy /srv/graphite/bin/graphite-report

Projects behind Cloudflare Access, such as the console, still report 403, which is Access answering, as expected.

@AmrMsCLL
AmrMsCLL requested a review from a team as a code owner November 5, 2026 14:49
@github-actions github-actions Bot added the size/xs 0-10 changed lines, excluding lockfiles label Nov 5, 2026
@AmrMsCLL
AmrMsCLL merged commit 4ec8588 into main Nov 5, 2026
5 checks passed
@AmrMsCLL
AmrMsCLL deleted the fix/report-user-agent branch November 5, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs 0-10 changed lines, excluding lockfiles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant