Skip to content

Security hardening: path containment, API safeguards, and update/download trust - #20

Merged
madhavkhoslaa merged 1 commit into
mainfrom
fix/security-audit-2026-10
Oct 16, 2026
Merged

madhavkhoslaa merged 1 commit into
mainfrom
fix/security-audit-2026-10

Conversation

@madhavkhoslaa

@madhavkhoslaa madhavkhoslaa commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR applies the security audit fixes for the CLI surface.

Key fixes

  • Enforce path containment for build.dir and store files/media (including symlink escape checks).
  • Add API URL validation and token-safety controls (--allow-custom-api, --allow-insecure-http, env equivalents).
  • Replace infinite HTTP client timeout with a bounded timeout.
  • Add trusted template-source guard for create --from with explicit override flag.
  • Harden self-update and installer flows with stricter source/asset validation.
  • Add upload URL validation in chunk delivery flow (scheme/host/public constraints).
  • Update LLM docs for changed flags/behavior.

Validation

  • go test ./... passes.

@madhavkhoslaa
madhavkhoslaa merged commit 0058170 into main Oct 16, 2026
1 check 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