Compare commits

..
7 Commits
Author SHA1 Message Date
derekcandClaude Opus 5.5 c54d2b251f docs(release-notes): v2026.11
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:57:05 -08:00
derekcandClaude Opus 5.5 7d1d614a05 docs(readme): update for v2026.11
- Updated: FastAPI 0.165.0, Starlette 1.10.0, SQLAlchemy 2.1.9, MySQL 8.4.13, Nginx 1.31.9
- Added: log page entry date defaults to today in the user's saved timezone

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:56:45 -08:00
derekcandClaude Opus 5.5 c9788a0926 chore(deps): bump mysql:8 8.4.11 → 8.4.13 (digest pin)
Same 8.4 LTS series. The server ran its automatic data dictionary
upgrade (80411 → 80413) on first start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:56:31 -08:00
derekcandClaude Opus 5.5 e63ce47652 chore(deps): bump nginx:alpine 1.31.7 → 1.31.9 (digest pin)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:54:46 -08:00
derekcandClaude Opus 5.5 1ff07eac85 chore(deps): bump sqlalchemy 2.0.50 → 2.1.9
No code changes required. Verified with aiomysql 0.3.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:54:33 -08:00
derekcandClaude Opus 5.5 a953da7d37 chore(deps): bump fastapi 0.143.3 → 0.165.0
Pulls in starlette 1.10.0. No code changes required.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:53:33 -08:00
derekcandClaude Opus 5.5 f3e5a60f6c chore(deps): bump pydantic-settings, python-multipart, pytz, email-validator
- pydantic-settings 2.16.0 → 2.16.3
- python-multipart 0.0.32 → 0.0.34
- pytz 2026.5 → 2026.6
- email-validator 2.3.0 → 2.4.0

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 14:52:50 -08:00
4 changed files with 79 additions and 12 deletions

No files matched your search

+4 -4
View File
@@ -24,10 +24,10 @@ Built with FastAPI, vanilla JS, and MySQL — fully containerized with Docker Co
| Layer | Technology | | Layer | Technology |
|---|---| |---|---|
| Backend | FastAPI 0.143.3 (Starlette 1.8.0, Python 3.12), async SQLAlchemy 2.0.50, Uvicorn 0.54.0 | | Backend | FastAPI 0.165.0 (Starlette 1.10.0, Python 3.12), async SQLAlchemy 2.1.9, Uvicorn 0.54.0 |
| Database | MySQL 8.4.11 | | Database | MySQL 8.4.13 |
| Frontend | Vanilla HTML/CSS/JS (no framework) | | Frontend | Vanilla HTML/CSS/JS (no framework) |
| Reverse Proxy | Nginx 1.31.7 (Alpine) | | Reverse Proxy | Nginx 1.31.9 (Alpine) |
| Auth | JWT via `python-jose` 3.5.0, passwords hashed with `passlib[bcrypt]` 1.7.4 (bcrypt 4.0.1) | | Auth | JWT via `python-jose` 3.5.0, passwords hashed with `passlib[bcrypt]` 1.7.4 (bcrypt 4.0.1) |
| Rate limiting | `slowapi` 0.1.10 | | Rate limiting | `slowapi` 0.1.10 |
| Notifications | `ntfy` (optional) | | Notifications | `ntfy` (optional) |
@@ -90,7 +90,7 @@ bourbonacci/
| `/login.html` | No | Login form — redirects to `/index.html` on success | | `/login.html` | No | Login form — redirects to `/index.html` on success |
| `/register.html` | No | Registration form | | `/register.html` | No | Registration form |
| `/dashboard.html` | Yes | My Bottle — stats, fill bar, full entry log with delete | | `/dashboard.html` | Yes | My Bottle — stats, fill bar, full entry log with delete |
| `/log.html` | Yes | Log an add or remove entry | | `/log.html` | Yes | Log an add or remove entry (date defaults to today in your saved timezone) |
| `/profile.html` | Yes | Edit display name, timezone, bottle size, password | | `/profile.html` | Yes | Edit display name, timezone, bottle size, password |
| `/admin.html` | Admin | User management — reset PW, disable, impersonate, delete | | `/admin.html` | Admin | User management — reset PW, disable, impersonate, delete |
+6 -6
View File
@@ -1,13 +1,13 @@
fastapi==0.143.3 fastapi==0.165.0
uvicorn[standard]==0.54.0 uvicorn[standard]==0.54.0
sqlalchemy[asyncio]==2.0.50 sqlalchemy[asyncio]==2.1.9
aiomysql==0.3.2 aiomysql==0.3.2
pydantic-settings==2.16.0 pydantic-settings==2.16.3
python-jose[cryptography]==3.5.0 python-jose[cryptography]==3.5.0
passlib[bcrypt]==1.7.4 passlib[bcrypt]==1.7.4
bcrypt==4.0.1 bcrypt==4.0.1
python-multipart==0.0.32 python-multipart==0.0.34
pytz==2026.5 pytz==2026.6
email-validator==2.3.0 email-validator==2.4.0
slowapi==0.1.10 slowapi==0.1.10
httpx==0.28.1 httpx==0.28.1
+2 -2
View File
@@ -1,6 +1,6 @@
services: services:
nginx: nginx:
image: nginx:alpine@sha256:892bb2152464f0c5d8972593a5f5afaf8054552580b699d95f8ff4af08c2d33d image: nginx:alpine@sha256:0563c36f94a6d3ec3584161b77859f740f7e20b4853f52c796a864ce6908e8ea
ports: ports:
- "8057:80" - "8057:80"
volumes: volumes:
@@ -37,7 +37,7 @@ services:
start_period: 30s start_period: 30s
db: db:
image: mysql:8@sha256:24989179f58856db763f418010c1169fecc944e3ec1ea7e921572d83eb070f70 image: mysql:8@sha256:a81d043930e51745522bd5c430961cf8286f0a23f0a9a2a6e0108f7ea71b0902
environment: environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}
+67
View File
@@ -0,0 +1,67 @@
# 2026.11 Release Notes
## 2026-11-18: v2026.11 release
### Summary
This is the first tagged release. It upgrades FastAPI, SQLAlchemy (to the 2.1 series), MySQL, Nginx and the Python base image, and includes the log-page timezone fix from October.
### Changes since c9833eb (2026-10-17 dependency upgrade, inclusive)
No earlier release tag exists, so this release starts from the October 17 dependency upgrade.
#### Changed
- Dependency and image upgrade: FastAPI with Starlette 1.8.0, Uvicorn, python-multipart, pydantic-settings, pytz, email-validator and slowapi. Updated the Nginx and MySQL digest pins and renamed the deprecated HTTP 422 status constant (c9833eb)
#### Fixed
- The log page now defaults the entry date to today in the user's saved timezone, falling back to the browser's timezone, instead of UTC. Late-evening entries no longer default to tomorrow (68e66c5)
#### Internal
- README documents current dependency versions (850f0fc)
### Deployment notes
- MySQL 8.4.11 → 8.4.13 runs an automatic, in-place data dictionary upgrade on first start (about 1 minute). Once that happens, the old 8.4.11 image cannot reopen the data directory. To roll back, restore from the backup below.
- The backend image must be rebuilt (`docker compose build backend`) to pick up the new Python packages and the Python 3.12.16 base.
- No env var, port, volume or schema changes.
### Documentation
- README stack table updated to FastAPI 0.165.0 / Starlette 1.10.0 / SQLAlchemy 2.1.9 / MySQL 8.4.13 / Nginx 1.31.9
- README pages table: noted that the log page's date defaults to the user's timezone
### Dependency updates
| Component | From | To | Type | Notes |
|---|---|---|---|---|
| pydantic-settings | 2.16.0 | 2.16.3 | patch | |
| python-multipart | 0.0.32 | 0.0.34 | patch | |
| pytz | 2026.5 | 2026.6 | minor | tzdata refresh |
| email-validator | 2.3.0 | 2.4.0 | minor | |
| fastapi | 0.143.3 | 0.165.0 | minor (0.x) | starlette 1.8.0 → 1.10.0 |
| sqlalchemy[asyncio] | 2.0.50 | 2.1.9 | minor | Works with aiomysql 0.3.2 |
| nginx:alpine | 1.31.7 | 1.31.9 | patch | digest pin |
| mysql:8 | 8.4.11 | 8.4.13 | patch | digest pin, same 8.4 LTS |
| python:3.12-slim | 3.12.15 | 3.12.16 | patch | picked up on rebuild (tag is not pinned) |
### Security
- Upstream patch releases for MySQL, Nginx and Python 3.12 picked up via the image updates
- PYSEC-2026-4298 (python-jose 3.5.0) and PYSEC-2026-1325 (ecdsa 0.19.2): no fix is available. Still deferred because they are not exploitable here (HS256 only, ecdsa unused).
### Code changes
- None
### Deferred / skipped
- bcrypt 4.0.1 → 5.0.0: version 5 breaks passlib 1.7.4. It needs passlib removed first (changes `security.py` only; keep the 72-byte truncation).
- python-jose → PyJWT: deferred (see Security)
- Python 3.13 / 3.14: 3.12 is supported until October 2028. Upgrade in a later release.
### Verification
- The project has no test suite or linter (same as baseline)
- Backend container built with `--no-cache` from a fresh install
- Smoke test after each update: `/`, `/health`, `/api/public/stats` → 200. Admin login plus `/api/users/me`, `/api/entries`, `/api/entries/stats`, `/api/admin/users` → 200. `nginx -t` passes. TRACE → 405. Security headers present.
### Rollback
- Starting commit: `68e66c5cd9c55e80c7fa6b1b01ddbbc400d672cb`
- Image tags:
- `mysql:8-pre-update-bourbonacci-2026-11-18`
- `nginx:alpine-pre-update-bourbonacci-2026-11-18`
- `bourbonacci-backend:latest-pre-update-bourbonacci-2026-11-18`
- Database backup: `~/backups/bourbonacci/bourbonacci-pre-update-2026-11-18.sql.gz` (2.8 KB)
- Restore command (also needed if you roll MySQL back to 8.4.11: first recreate the `mysql_data` volume on the old image):
```
gunzip -c ~/backups/bourbonacci/bourbonacci-pre-update-2026-11-18.sql.gz | docker compose exec -T db sh -c 'exec mysql -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE"'
```