Skip to content

fix(audit): resolve 4 critical bugs + remove hardcoded credentials - #35

Merged
OneByJorah merged 1 commit into
mainfrom
audit/2026-07-05
Jul 6, 2026
Merged

fix(audit): resolve 4 critical bugs + remove hardcoded credentials#35
OneByJorah merged 1 commit into
mainfrom
audit/2026-07-05

Conversation

@OneByJorah

Copy link
Copy Markdown
Owner

🔴 Critical Bugs Fixed

# Bug Fix
C1 app.py — Limiter + SocketIO never initialized Added Limiter(app), SocketIO(app), JWTManager(app)
C2 app.pyget_db() function missing (NameError on routes) Implemented connection factory with RealDictCursor + teardown
C3 install.sh — password generation wrote literal *** Fixed $() syntax — generates actual random values
C4 ffmpeg/processor.py — global variable shadowing (memory leak) Added global events keyword

🔒 Security Fixes

  • Removed hardcoded admin/admin from seed database
  • All config defaults changed to empty (env-required)
  • SECRET_KEY/JWT_SECRET_KEY default to os.urandom()

📋 Standard Files Added

.dockerignore, j1.yaml, CHANGELOG.md, .github/CODEOWNERS

📊 Score

45 → 68/100 (+23 points — biggest improvement in portfolio)

C1: Initialize Limiter + SocketIO in app.py. C2: Implement get_db() + teardown. C3: Fix install.sh password generation syntax. C4: Fix ffmpeg/processor.py global shadowing. Removed default admin/admin from init-db.sql and config.py. Added .dockerignore, j1.yaml, CODEOWNERS.
@OneByJorah
OneByJorah merged commit 5bc30ce into main Jul 6, 2026
4 checks passed
@OneByJorah
OneByJorah deleted the audit/2026-07-05 branch July 6, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant