Vendor htmx/Leaflet locally (or add SRI) — all pages execute unpkg-served JS #59
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot#59
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
base.html:10-15 and public_location.html:8-9 load htmx 2.0.3, htmx-ext-sse
2.2.2, and Leaflet 1.9.4 from unpkg with no
integrityattributes. Vendorthe pinned files under
static/vendor/and reference locally (preferred fora self-hosted app: removes third-party script trust and the availability
dependency), or at minimum add SRI hashes +
crossorigin="anonymous".Renovate note: vendored files won't be version-managed — add a comment
documenting versions, or keep CDN+SRI if Renovate management matters more.
Acceptance criteria:
Filed from the 2026-07-17 codebase audit (
docs/.internal/report-2026-07-17.md), finding F-20.Fixed in #93 (merged to
main). htmx 2.0.3, htmx-ext-sse 2.2.2, and Leaflet 1.9.4 (JS + CSS + marker/layer images) are now vendored understatic/vendor/and referenced locally frombase.htmlandpublic_location.html; no page loads executable JS/CSS from unpkg anymore. Pinned versions are documented in an HTML comment next to the references (vendored files aren't Renovate-managed). Note: assets live under the repo-rootstatic/dir, which is the actualStaticFilesmount.