Security audit fixes + open-source prep - #14
Merged
Merged
Conversation
- Remove junk files (foo.txt, AGENTS.md) - Remove `private: true` from package.json, add repository field - Replace all hardcoded pond.audio URLs with env vars - Replace hardcoded /home/jamie paths in systemd service with %h specifier - Genericize SEC_AUDIT.md, CLAUDE.md, ideas/ docs - Add .env.example with documented config - Update LICENSE copyright year Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add LLM-generated code disclosure banner - Add PWA installation instructions (iOS + Android) - Rewrite getting started with clone, config, systemd setup - Add "How It Works" section explaining pairing/auth/chat flow - Remove ideas/ directory (internal planning docs) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
HTTP API previously sent the raw PIN in Bearer headers. Now uses SHA-256(PIN + deviceToken) where deviceToken is a random 32-byte hex string issued at pairing time with a 6-month TTL. - Device tokens generated at pairing, stored in devices.json - HTTP auth validates hash against all non-expired devices (timingSafeEqual) - Rate limiting added to HTTP auth (reuses WebSocket rate limiter) - Client computes auth hash via Web Crypto SHA-256 - Token expiry warnings in UI (14d dismissible, 7d non-dismissible) - Expired devices rejected with device_expired error + re-pair flow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jamierpond
force-pushed
the
Jp/sec-audit
branch
from
February 11, 2026 00:54
08a4dc0 to
520502c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Authorization: Bearerheaders withSHA-256(PIN + deviceToken). Device tokens are 32-byte random hex strings issued at pairing with 6-month TTL. Validates viatimingSafeEqualwith rate limiting..env.example, rewrote README, removedideas/dir and stalefoo.txt.Addresses (from SEC_AUDIT.md)
Test plan
deviceToken+tokenExpiresAtreturned and storedSHA-256(pin + deviceToken)as Bearer tokendevice_expirederror🤖 Generated with Claude Code