Draft
Remove .env from repo, harden secrets handling, update deps and Docker setup#1
Conversation
…deps and Docker setup Co-authored-by: Itesh90 <154687259+Itesh90@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove .env file and standardize example file
Remove .env from repo, harden secrets handling, update deps and Docker setup
Mar 6, 2026
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.
The repo had a committed
.env, broken.gitignore(UTF-16 encoded), hardcoded credential values used asos.getenv()key names instorage.py, stale dependency pins, a docker-compose referencing a non-existentDockerfile, and a bash-specific shell expansion incompatible with containersh.Security
.envfrom git tracking (git rm --cached)backend/storage.py: credential values were literally used as env var names:Environment / Config
.gitignore: rewritten from broken UTF-16 to UTF-8; expanded with Python, venv, IDE, coverage, OS, and credential file patterns.env.example: new file covering all env vars across the codebase (APP_*,WEAVIATE_*,OPENAI_API_KEY,OPENROUTER_API_KEY,FILEBASE_*,STUDENT_API_KEY,SECRET_KEY, cache/rate-limit settings) with inline commentsDocker
Dockerfile: added (was referenced bydocker-compose.ymlbut missing); usespython:3.11-slimwith system deps for audio/CV (ffmpeg,libsndfile1)docker-compose.yml:version: '3.8'${RELOAD:+--reload}→ POSIX shif/then/elseenv_file: .envand fullenvironmentblock; bumped Weaviate image1.19.0 → 1.24.0Dependencies
requirements.txt: bumped all packages to current supported versions; added missingboto3(used bystorage.py) andpsutil(used bymain.py)fastapi 0.100→0.115,uvicorn 0.23→0.34,openai 1.0→1.68,langchain 0.1→0.3,torch 2.0→2.4,pydantic 2.0→2.10,pillow 10→11,pytest 7.4→8.3README
cp .env.example .envstep in installation.env.exampleOriginal prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.