Skip to content

Audit follow-up: GoatCounter script with SRI - #10

Merged
romanzdk merged 1 commit into
mainfrom
audit/2026-11-gc
Nov 27, 2026
Merged

romanzdk merged 1 commit into
mainfrom
audit/2026-11-gc

Conversation

@romanzdk

Copy link
Copy Markdown
Owner

Follow-up to the audit: the GoatCounter script was the last third-party script without SRI.

Before: <script data-goatcounter="…" async src="https://gc.zgo.at/count.js"> (unversioned, can change any time)
After: <script data-goatcounter="…" async crossorigin="anonymous" integrity="sha384-nRw6…" src="https://gc.zgo.at/count.v4.js"> (same tag zahraj-mi already uses)

Check Result
sha384 of https://gc.zgo.at/count.v4.js computed with openssl matches the integrity value
Access-Control-Allow-Origin on count.v4.js *, so crossorigin="anonymous" loads it
Build ok
CI see checks below

@romanzdk
romanzdk merged commit d96cfb4 into main Nov 27, 2026
4 checks passed
@romanzdk
romanzdk deleted the audit/2026-11-gc branch November 27, 2026 13:09
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