Skip to content

🔒 [P1] Set file permissions and add binary checksums to releases #134

Closed

Description

@ajianaz

Problem

Two release/distribution security gaps:

1. Loose file permissions

DB, config, and index files created with default umask. On shared systems, other users can read memories.

Fix: Set 0600 for files, 0700 for ~/.uteke/ directory on creation.

2. No binary signing/checksums

Release tarballs have no GPG signatures or SHA256 checksums. The curl | sh install path is unverified — MITM could inject arbitrary code.

Fix:

  • Generate SHA256SUMS file during release workflow
  • Optionally: GPG sign release artifacts

3. ONNX model download unverified

Model files fetched from HuggingFace without hash verification. Corrupted download = cryptic ONNX failure.

Fix: Pin expected SHA256 of model files, verify after download.

Acceptance Criteria

  • ~/.uteke/ directory created with 0700 permissions
  • All files in ~/.uteke/ created with 0600 permissions
  • Release workflow generates SHA256SUMS file
  • Release notes include checksum file link
  • ONNX model download verifies SHA256 after completion
  • Verify fails gracefully with actionable error message

Effort: ~1 day

Activity

  1. added
    scope:infra
    scope:docker
    on Jun 2, 2026
  2. added
    type:feature
    enhancement
    v0.0.14
    priority:high
    and removed
    type:feature
    on Jun 9, 2026
  3. modified the milestones: v0.0.8 — Architecture & Security, on Jun 11, 2026
  4. added
    type:security
    on Jun 11, 2026
  5. added a commit that references this issue on Jul 2, 2026
  6. added 3 commits that reference this issue on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:highscope:dockerscope:infrasecuritytype:securityv0.0.14

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions