Conversation
…k port, and public-page/auth hardening Full-app review turned up five issues, all fixed here: - The offline placeholder promised auto-updates but had no refresh mechanism, so a viewer opening the link before a session starts never saw it appear. - SIGTERM didn't actually stop waitress (serve() installs no signal handling of its own), so containers only stopped via Docker's SIGKILL, skipping the monitor's clean IMAP logout. Now uses create_server()+close(), with the expected shutdown-induced OSError from waitress's interrupted select loop handled explicitly rather than raising. - The Dockerfile HEALTHCHECK hard-coded port 8080 while WEB_PORT is configurable, silently breaking health checks for anyone changing it. - The public page interpolated the link into HTML attributes and inline JS without escaping; only the email-extraction regex made this safe in practice, and admin-set links bypassed it entirely. Now escaped per context, and /admin/link rejects anything not shaped like a LiveTrack URL. - Basic-Auth credential comparison used `==` instead of a constant-time compare. Verified end-to-end: docker build (embedded test stage), and a real docker run + docker stop timing test confirming shutdown now exits 0 in <1s instead of hitting the SIGKILL grace period, plus a WEB_PORT override actually reporting healthy. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…-shutdown-escaping fix: offline auto-refresh, graceful shutdown, healthcheck port, page/auth hardening
Release Please's PR-based flow is a better fit than semantic-release's direct-push-to-main approach: it only ever opens/updates a standing release PR from Conventional Commits, and a normal (reviewable) merge of that PR is what cuts the vX.Y.Z tag + GitHub Release -- nothing pushes to main directly. Also splits the CI workflow by concern: ci.yml (tests only), release-please.yml (versioning, on every push to main), and publish.yml (multi-arch Docker build + GHCR push, only on the vX.Y.Z tag release-please creates). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main.release-please.ymlaufmainund öffnet automatisch eine Release-PR (erwarteter nächster Versionssprung:0.1.0→0.2.0, da seit dem letztenv0.1.0-Tag sowohl einfeat:- als auch einfix:-Commit dabei sind). Diese Release-PR muss anschließend separat gemerged werden, um den Tag + GitHub Release + Docker-Publish auszulösen.Enthaltene Änderungen
python-semantic-releasedurch Release Please:release-please.yml(Release-PR-Pflege auf jedem Push zumain) +publish.yml(Docker-Build/Publish nur beimvX.Y.Z-Tag) statt einem monolithischenci.ymlTest plan
pytest -q— 49 passeddocker build— eingebetteter Test-Stage erfolgreichrelease-please.ymlerfolgreich eine Release-PR mit Version0.2.0öffnet🤖 Generated with Claude Code