chore(deps): update crypto and pin Vite 8.3.3
Lint / Lint (push) Successful in 51s
Security / Secrets (gitleaks) (push) Successful in 51s
Security / Dependencies (Trivy) (push) Successful in 51s
Security / Code (Semgrep) (push) Successful in 1m38s
Tests / Go backend (push) Successful in 1m17s
Tests / Dashboard checks (push) Successful in 45s
Docker / Docker Build & Push (push) Successful in 6m5s

- Document SPA path safety for Semgrep
This commit is contained in:
Gabriel20xx committed 2026-10-27 07:15:31 +00:00
1 parent 39953dc492
commit f246c4290f
11 files changed
+170 -199

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ replace repos.gfranz.ch/Gabriel20xx/shared/backend => ../shared/backend
require (
github.com/go-chi/chi/v5 v5.3.1 // indirect
golang.org/x/crypto v0.54.0 // indirect
golang.org/x/crypto v0.55.0 // indirect
)
require (
+2 -2
View File
@@ -20,8 +20,8 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
golang.org/x/crypto v0.54.0 h1:YLIA59K4fiNzHzjnZt2tUJQjQtUWfWbeHBqKtk3eScw=
golang.org/x/crypto v0.54.0/go.mod h1:KWL8ny2AZdGR2cWmzeHrp2azQPGogOv+HeQaVEXC2dk=
golang.org/x/crypto v0.55.0 h1:+KWHjbgOaAQ66dh/YlkZKHlz9ZUlq61AFirAR9ntP8M=
golang.org/x/crypto v0.55.0/go.mod h1:uq0V9dE/fzQuJtbnL+2EhWOE63vo164FY8xqEnV9xis=
golang.org/x/sync v0.22.0 h1:SZjpbeLmrCk4xhRSZFNZW5gFUeCeFgjekvI/+gfScek=
golang.org/x/sync v0.22.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
golang.org/x/text v0.41.0 h1:vz/seA0lnX87Othu2f/0L24RcgrXD9/YFTSuGjj3rH8=
+3
View File
@@ -451,6 +451,9 @@ func spaFileServer(root fs.FS) http.Handler {
}
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// The path is cleaned as a rooted URL path, and it is only read from webRoot,
// an embed.FS, so it cannot name a file outside the embedded build.
// nosemgrep: go.lang.security.filepath-clean-misuse.filepath-clean-misuse
cleanPath := strings.TrimPrefix(path.Clean(r.URL.Path), "/")
if cleanPath == "" || cleanPath == "." || cleanPath == "index.html" {
serveIndex(w, r)