Point to getsysperf.com, be open about the script's origin, fix deploy verification #5
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jay/sysperf!5
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/lucid-planck-v4zwtb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
getsysperf.comis live on Cloudflare Pages. This PR switches the README to it, replaces the landing page's checksum with an honest way to check the script's origin, and fixes a false failure in the deploy workflow's verification step.Changes
Landing page: "Before you run it"
The page used to show the SHA-256 of
/benchas a trust signal. But the checksum came from the same server as the script: whoever could replace one could replace both. So it only proved the transfer, not the origin. The section now:github.com/jacboy/sysperfthe site is built from, with links to that version ofbenchand to its full change history. The download-read-run command stays.diffof the script fromgetsysperf.comagainst the same commit onraw.githubusercontent.com. These are two independent sources, so to hand someone a different script, an attacker would have to compromise both.The footer also shows the commit.
/bench.sha256is still published for scripts, but no longer presented as a security feature.site/build.shGITHUB_SHA(in Actions) orgit rev-parse HEAD.benchdiffers from that commit, so the page can't name a commit it isn't serving.README
https://getsysperf.com/bench. The raw GitHub URL is still mentioned as an alternative.master, with a note that the two can briefly differ right after a push..github/workflows/deploy.yml: verification stepThe first run logged
curl: (23) Failure writing output to destination. Withcurl … | grep -q, grep exits on the first match, curl then fails to write, and under GitHub'sbash -eo pipefailthe check could fail although the right version was live. The page is now fetched completely and then searched.site/README.mdRemoved the "after the domain is live" note.
Testing
curl:/,/benchand/bench.sha256return 200 onsysperf.pages.devandgetsysperf.com./benchistext/plain, and byte-identical tomaster._headersheaders are applied.identical.masteralso printsidentical.bench,build.shstops with "bench differs from commit …".bash --noprofile --norc -eo pipefail, as on GitHub, it passed on the first attempt.actionlintpasses.About the 403 in the first run
getsysperf.comanswered403to the first deploy run whilesysperf.pages.devworked. The custom domain had only just been added and its certificate was still being issued; minutes later the same requests return 200, including from a data-centre IP. If it shows up again from GitHub's runners, Cloudflare's bot protection (Bot Fight Mode / Browser Integrity Check) is the next thing to check, because sysperf's users also download from servers.🤖 Generated with Claude Code
https://claude.ai/code/session_01WFUVi2gu5nYSuZeyRWAGiM