Security and Code Quality Remediation (M6-Fixes) #343
Reference in New Issue
Block a user
Delete Branch "fix/security"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Comprehensive security hardening and code quality remediation based on codebase review findings.
Phase 1: Security Critical (Issue #337)
Phase 2: High Priority (Issue #338)
Phase 3: Medium Priority (Issue #339)
Deferred (Future Work)
Test Results
Review Summary
Fixes #337, #338, #339
🤖 Generated with Claude Code
- Token now includes HMAC binding to session ID - Validates session binding on verification - Adds CSRF_SECRET configuration requirement - Requires authentication for CSRF token endpoint - 51 new tests covering session binding security Security: CSRF tokens are now cryptographically tied to user sessions, preventing token reuse across sessions and mitigating session fixation attacks. Token format: {random_part}:{hmac(random_part + user_id, secret)} Refs #338 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>New package providing CLI tools that work with both Gitea and GitHub: Commands: - mosaic-issue-{create,list,view,assign,edit,close,reopen,comment} - mosaic-pr-{create,list,view,merge,review,close} - mosaic-milestone-{create,list,close} Features: - Auto-detects platform (Gitea vs GitHub) from git remote - Unified interface regardless of platform - Available via `pnpm exec mosaic-*` in monorepo context Updated docs/claude/orchestrator.md: - Added CLI Tools section with usage examples - Updated issue creation to use package commands This makes Mosaic Stack fully self-contained for orchestration tooling. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>