NextExpense/internal/ai
cclohmar a7381bde0c fix: final vulnerability sweep — storage auth, security headers, body limits, cookie flags
- Storage route moved behind auth middleware (was publicly accessible)
- Security headers: X-Content-Type-Options, X-Frame-Options, CSP, Referrer-Policy
- Request body size limit: 10 MB on all endpoints via MaxBytesReader
- Session cookie now sets Secure flag when BASE_URL uses HTTPS
- readFile() returns proper errors for dirs & oversized files (was nil,nil)
- Removed dead DEEPSEEK_API_KEY code from main.go
- Added fmt import to ai/receipt.go for error formatting
2026-05-31 02:01:12 +00:00
..
gemini.go fix: remove hardcoded credentials from .env.example and source 2026-05-30 15:08:01 +00:00
llm.go feat: configurable AI provider system (Gemini, OpenAI, Ollama) 2026-05-30 14:05:19 +00:00
openai.go feat: configurable AI provider system (Gemini, OpenAI, Ollama) 2026-05-30 14:05:19 +00:00
receipt.go fix: final vulnerability sweep — storage auth, security headers, body limits, cookie flags 2026-05-31 02:01:12 +00:00