Skip to content

Security hardening 2026 07 - #1

Merged
krlex merged 3 commits into
mainfrom
security-hardening-2026-07
Jul 16, 2026
Merged

Security hardening 2026 07#1
krlex merged 3 commits into
mainfrom
security-hardening-2026-07

Conversation

@krlex

@krlex krlex commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Motivation

Changes

Testing

  • Existing tests pass locally
  • New tests added (where applicable)
  • Manual verification documented above

Notes for reviewers

Checklist

  • Commits are signed with a real name and email
  • CHANGELOG.md updated (under ## [Unreleased])
  • Documentation updated (README / docs/ / Pages) if behavior changed
  • No secrets, credentials, or internal hostnames committed

krlex added 3 commits June 24, 2026 17:30
- CORS no longer combines a wildcard origin with credentials (M13).
- /api/v1/chat honours an optional shared bearer token and caps concurrent
  generations (429 on overload) to prevent GPU/CPU exhaustion (M14).
- Constant-time token comparisons (L10); chat errors no longer leak internal
  exception text (L12); history role/content is validated so a caller can't
  inject a system message or crash on malformed entries (L11).
- Document that Chroma/Ollama 0.0.0.0 binds are container-confined (L13).
@krlex
krlex merged commit e6fa7c1 into main Jul 16, 2026
1 check passed
@krlex
krlex deleted the security-hardening-2026-07 branch July 30, 2026 14:05
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