Skip to content

security: untrack db.sqlite3, remove hardcoded admin credentials, add LICENSE#1

Open
Repetto-A wants to merge 1 commit into
mainfrom
docs/security-and-readme-fixes
Open

security: untrack db.sqlite3, remove hardcoded admin credentials, add LICENSE#1
Repetto-A wants to merge 1 commit into
mainfrom
docs/security-and-readme-fixes

Conversation

@Repetto-A

Copy link
Copy Markdown
Owner

What

Security and housekeeping fixes for this public portfolio project.

Changes

  • git rm --cached db.sqlite3 — stop tracking the SQLite database file (was committed to the repo)
  • Add db.sqlite3 and *.db to .gitignore to prevent re-committing
  • Remove hardcoded admin credentials from README (admin / testpassword section) — replaced with python manage.py createsuperuser instruction
  • Add LICENSE file (MIT) — README claimed MIT but no LICENSE file existed
  • Add media/ to .gitignore

Why

A public repo with committed default credentials is a red flag to recruiters and a real (if minor) security smell. The db.sqlite3 file may contain seeded or test records that shouldn't be in version control.

Note

This does NOT purge db.sqlite3 from git history (that requires git filter-repo). Since this is a portfolio/demo project with test data, stopping tracking is sufficient. If the DB contained real user data, history purge would be needed.

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