Skip to content

fix(security): restore weekly security audit - #203

Merged
singret merged 1 commit into
mainfrom
fix/security-audit-workflow
Nov 3, 2026
Merged

singret merged 1 commit into
mainfrom
fix/security-audit-workflow

Conversation

@singret

@singret singret commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Why

The weekly Security Audit workflow (security.yml) has failed on every run since 2026-07-27. It only runs on a schedule, so it never blocked a PR and went unnoticed. All three jobs were failing.

What changed

Secret scan

  • only-verified is not an input the TruffleHog action accepts (the log warns "Unexpected input(s) 'only-verified'"), so the job failed on unverified matches. The last run found 0 verified secrets and 8 unverified ones (example Postgres and Slack strings).
  • Now uses extra_args: --results=verified, and pins the action and scanner image to v3.99.2 instead of @main / latest.

Go dependencies (27 reachable vulnerabilities, now 0)

  • Go 1.25.12 → 1.26.10 in go.mod, ci.yml, security.yml and both Dockerfiles. Most findings were in the standard library (net/http, crypto/tls, crypto/x509, html/template, ...) and are only fixed in Go 1.26.9+.
  • golang.org/x/net 0.55 → 0.61, x/text 0.37 → 0.43, OpenTelemetry 1.43 → 1.47, gRPC 1.81 → 1.83.2.
  • ClickHouse driver v2.30 → v2.50 (with ch-go 0.65). Bumping ch-go alone breaks the build because the old driver doesn't match its new compression API. ClickHouse is only pulled in by the GORM tracing plugin; we don't use it.
  • Tests: attribute.Value.Emit() is deprecated in OpenTelemetry 1.47 and flagged by staticcheck, so the 11 test usages now call Value.String(), which returns the same text for scalar values.

Frontend

  • dompurify 3.4.14 → 3.4.17 (critical XSS advisories). It is a dependency of posthog-js, so this is a 3-line lockfile change.

Not included

  • react-router 6 → 7 for two moderate advisories. That is a breaking upgrade that touches app code and will be done separately. It does not fail the audit, which gates on high and above.

Testing

  • make validate passes locally on Go 1.26.10: build, golangci-lint (0 issues), go test, frontend tsc + vite build.
  • govulncheck ./...: "Your code is affected by 0 vulnerabilities."
  • npm audit --omit=dev --audit-level=high: passes.
  • Database-backed tests skip locally without Postgres; CI runs them.

After merge

  • Run the Security Audit workflow manually to confirm it is green.
  • After the next deploy, check traces still arrive at the OTLP backend (OpenTelemetry and gRPC moved several minor versions).

The Security Audit workflow has failed every week since late July.

- Secret scan: `only-verified` is not a TruffleHog action input, so
  unverified matches failed the job. Use `--results=verified` and pin
  the action and image to v3.99.2.
- Go: move to Go 1.26.10 (Go 1.25 no longer receives stdlib security
  fixes) and update x/net, x/text, OpenTelemetry, gRPC and the
  ClickHouse driver. govulncheck now reports 0 reachable issues.
- Frontend: bump dompurify (via posthog-js) to 3.4.17.
- Tests: replace attribute.Value.Emit, deprecated in OpenTelemetry 1.47,
  with Value.String.
@singret
singret merged commit 123fce0 into main Nov 3, 2026
8 checks passed
@singret
singret deleted the fix/security-audit-workflow branch November 3, 2026 08:28
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