Skip to content

Ruff test#7

Merged
IanDTM merged 7 commits into
masterfrom
ruff-test
Dec 31, 2025
Merged

Ruff test#7
IanDTM merged 7 commits into
masterfrom
ruff-test

Conversation

@IanDTM
Copy link
Copy Markdown
Owner

@IanDTM IanDTM commented Dec 31, 2025

No description provided.

Copilot AI and others added 7 commits December 31, 2025 18:31
…input validation

- Replace hardcoded SECRET_KEY with environment variable
- Make CORS origins configurable via ALLOWED_ORIGINS env var
- Add input sanitization for player names to prevent XSS
- Implement score validation to prevent cheating
- Add strict input validation for WebSocket handlers
- Make unsafe Werkzeug conditional on debug mode
- Add comprehensive security documentation

Co-authored-by: IanDTM <8480521+IanDTM@users.noreply.github.com>
- Add MAX_SCORE_MULTIPLIER constant for better maintainability
- Add input validation for submit_score data parameter
- Support both 'true' and '1' for FLASK_DEBUG environment variable

Co-authored-by: IanDTM <8480521+IanDTM@users.noreply.github.com>
Co-authored-by: IanDTM <8480521+IanDTM@users.noreply.github.com>
Document log message formatting improvement as backlog issue
Fix critical security vulnerabilities: secrets, CORS, XSS, input validation
@IanDTM IanDTM merged commit c22bc9c into master Dec 31, 2025
1 check passed
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.

2 participants