gitdataai/libs/git
ZhenYi bdb5393835 fix: resolve 30+ bugs from security audit
Critical:
- CORS: replace allow_any_origin + credentials with env-configured origins
- XSS: escape HTML before dangerouslySetInnerHTML in search results
- Path traversal: sanitize storage keys to reject ".." components
- Auth missing: add Session requirement to git init/open/is-repo endpoints
- Transaction: wrap issue cascade delete in DB transaction

High:
- Mutex poisoning: replace unwrap() with poison-recovering guards
- Drop tokio::spawn: use runtime handle or fallback thread for lock release
- Redis KEYS: replace with non-blocking SCAN for typing events
- SSH panic: handle missing stdin/stdout/stderr gracefully
- LFS auth: remove x-user-uid header injection vector, generate per-request tokens

Medium:
- Memory leak: remove Box::leak in provider normalization
- Race conditions: query closed count directly instead of subtraction
- Silent failures: add tracing::warn for AI tasks, room events, activity logs
- Frontend nav: sync activeRoomId when initialRoomId prop changes
- Duplicate nav: remove redundant setActiveRoom in delete handler
- Callback conflict: skip undefined values in updateCallbacks merge
- Stale closure: use wsClient state instead of wsClientRef.current in useMemo

Low:
- Captcha: validate captcha not empty before login submission
- Broadcast capacity: reduce from 100K to 1000
- Error handling: add try/catch for removeMember and updateMemberRole
- Loading state: show placeholder instead of null in RepositoryContextProvider
- WebSocket: add heartbeat ping and jitter to reconnect backoff
2026-04-27 10:57:23 +08:00
..
archive chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
blame chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
blob init 2026-04-15 09:08:09 +08:00
branch fix(git): multiple branch and upstream query bugs 2026-04-17 16:30:58 +08:00
commit chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
config chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
description init 2026-04-15 09:08:09 +08:00
diff chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
hook chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
http fix: resolve 30+ bugs from security audit 2026-04-27 10:57:23 +08:00
lfs init 2026-04-15 09:08:09 +08:00
merge chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00
reference init 2026-04-15 09:08:09 +08:00
ssh fix: resolve 30+ bugs from security audit 2026-04-27 10:57:23 +08:00
tags init 2026-04-15 09:08:09 +08:00
tree init 2026-04-15 09:08:09 +08:00
Cargo.toml feat: add health endpoints and Prometheus metrics to git-hook and email-worker 2026-04-25 23:45:48 +08:00
domain.rs init 2026-04-15 09:08:09 +08:00
error.rs init 2026-04-15 09:08:09 +08:00
lib.rs feat(git): add Redis-backed hook worker with per-repo distributed locking 2026-04-17 12:33:58 +08:00
ref_utils.rs chore(git): minor fixes and improvements across git library modules 2026-04-27 08:28:09 +08:00