Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Security
- Dependencies with known vulnerabilities: Flask 3.1.3, Werkzeug 3.1.9, requests 2.34.2, python-dotenv 1.2.4 and pdfplumber 0.11.10 (pdfminer.six 20260107, which no longer loads pickled CMaps from a crafted PDF). Pillow, cryptography, urllib3, idna, soupsieve and Mako are pinned to fixed versions although the app does not import them.

### Added
- `/health` for a monitor: public, answers `ok` and the running commit, or 503 when the database does not answer.
- `/ops/metrics`: counts for a monitor (days logged in the last week, worked and absences, days logged in total, users), with `Authorization: Bearer <OPS_METRICS_TOKEN>`. Without `OPS_METRICS_TOKEN` it answers 404. Never hours, dates or notes.
Expand Down
20 changes: 15 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
Flask==3.1.0
Werkzeug==3.1.3
Flask==3.1.3
Werkzeug==3.1.9
Flask-SQLAlchemy==3.1.1
Flask-Migrate==4.1.0
Flask-Login==0.6.3
Flask-WTF==1.2.2
Flask-Babel==4.0.0
SQLAlchemy==2.0.37
requests==2.32.3
requests==2.34.2
psycopg2-binary==2.9.10
python-dotenv==1.0.1
python-dotenv==1.2.4
beautifulsoup4==4.13.4

pdfplumber==0.11.0
pdfplumber==0.11.10
openpyxl==3.1.2
gunicorn==23.0.0

# Not imported by the app, pinned for their security fixes: Pillow and cryptography come with
# pdfplumber (pdfminer.six), urllib3 and idna with requests, soupsieve with beautifulsoup4,
# Mako with Flask-Migrate (alembic).
Pillow==12.3.0
cryptography==50.0.2
urllib3==2.8.0
idna==3.20
soupsieve==2.10
Mako==1.3.12
Loading