Skip to content

security(deno/auth): local key derived from the app root path, not a secret #53

Open

Description

@Snider

Where: go/engine/ts/deno/runtime/auth.ts, buildLocalAuthPassword(root)

What: the local encryption password is SHA-256 of the app root path. A path is not a secret, so anything that knows the install location can derive the key, and the envelope has no authentication.

Severity: high

Direction: derive the key from a real per-installation secret (a random key in the OS keychain, or a 0600 key file), or encrypt to the generated public key. Authenticate the envelope with an AEAD or a signature. Never treat path-derived values as secrets.

Carried over unchanged from ts-bk in #52.

🤖 Filed by Claude Code (Cladius) from the automated security review of #52.
Co-Authored-By: Virgil virgil@lethean.io

Activity

  1. added
    security
    on Nov 18, 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

    security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions