Skip to content

fix(security): add image healthcheck and seccomp profile - #15

Merged
vaggeliskls merged 2 commits into
mainfrom
fix/healthcheck-seccomp
Oct 14, 2026
Merged

vaggeliskls merged 2 commits into
mainfrom
fix/healthcheck-seccomp

Conversation

@vaggeliskls

@vaggeliskls vaggeliskls commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Addresses open Trivy code scanning alerts and the gosec G710 lint failure.

  • Dockerfile: add HEALTHCHECK that runs the existing /webdav-server --healthcheck probe (scratch image has no shell/curl). Closes DS-0026. Verified locally: container reports healthy.
  • Helm chart: set seccompProfile.type: RuntimeDefault on the pod security context. Closes KSV-0030 and KSV-0104.
  • Security workflow: trigger on push to main instead of the weekly cron; workflow_dispatch and the existing concurrency group are kept.
  • Open redirect fix: GET //evil.com (with an /evil.com directory present) redirected to the protocol-relative //evil.com/. The trailing-slash redirect now uses a relative, escaped target that http.Redirect resolves and cleans. Fixes the gosec G710 failure that golangci-lint v2.14 reports on every PR. Covered by a new dirlist_test.go.

Remaining alerts were dismissed on GitHub (false positives, or won't-fix for the UID/GID > 10000 rules).

- Dockerfile: HEALTHCHECK using the built-in --healthcheck probe (DS-0026)
- Helm: RuntimeDefault seccomp profile on the pod (KSV-0030, KSV-0104)
- Security workflow: run on push to main instead of weekly schedule
A request for //evil.com where a /evil.com directory exists was
redirected to the protocol-relative //evil.com/, sending browsers
off-site. Redirect to a relative, escaped target instead so
http.Redirect resolves and cleans it against the request path.

Flagged by gosec G710 in golangci-lint v2.14.
@vaggeliskls
vaggeliskls merged commit f746e2b into main Oct 14, 2026
2 checks passed
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