github endurain-project/endurain v0.19.0-beta2

latest releases: v0.21.0-beta2, v0.21.0-beta1, v0.20.2...
pre-releaseone month ago

⚠️ Warning:

  • The DB has schema changes. Backup your DB before applying the update.
  • This is a beta pre-release and is intended for validation before stable release.
  • Review new environment variable defaults and configuration changes below.

Environment Variables & Configuration

New Variables

  • ALLOW_API_KEY_QUERY_PARAM (default: False) - Allows API keys to be passed as a ?api_key= query parameter. Disabled by default because query-string credentials appear in access logs and browser history. Enable only if you have integrations that cannot set custom headers.
  • CSP_ADDITIONAL_CONNECT_SRC (default: empty) - Comma-separated list of extra origins appended to the Content-Security-Policy connect-src directive. Set this when Endurain is behind a forward-auth reverse proxy (e.g. Pangolin) that redirects API calls to its own domain for session validation. Without its origin here the browser blocks the redirect with a CSP error and the app fails to load.

Changed Defaults

  • ALLOWED_REDIRECT_SCHEMES - Now defaults to endurain instead of being empty. This enables OAuth redirect flows for the built-in Endurain URI scheme on mobile. If you set this explicitly, the provided list replaces the default (doesn't merge). To allow only relative paths (old behavior), set to empty: ALLOWED_REDIRECT_SCHEMES=.

Changes from v0.19.0-beta1

  • Show sleep stage tooltip times in local timezone (#504) Codeberg#733
  • Restore admin user identity-provider endpoints removed in Codeberg#685 (Codeberg#728)
  • Skip read-only computed properties in edit_user mass-assignment (Codeberg#727)
  • Add major.minor Docker manifest tags for version pinning (Codeberg#724)
  • Repair health_sleep columns left as numeric by v0.16.0 pre-release (Codeberg#719)
  • Fix issue on manufacturer .fit file import (Codeberg#717)
  • Update activity graph selector menu labels on language switch (#662) Codeberg#714
  • Show graph summary stats on desktop activity view (#538) Codeberg#711
  • Fixes bug when constructing some asset paths (Codeberg#702)
  • Continued type-safety and mypy-driven backend improvements Codeberg#712.

Backend

  • Refactored auth boundaries around IdentityService and canonical auth modules (#627).
  • Consolidated auth/users boundaries and removed deprecated auth paths/properties (#627).
  • Migrated MFA data model and logic toward users_mfa/auth_mfa structure (#627).
  • Improved activity-stream ingestion by pre-computing HR zone percentages (Codeberg#700, Codeberg#693).
  • Added hostname support in TRUSTED_PROXIES (Codeberg#667).
  • Fixed profile export/import silent data loss risk (Codeberg#669).
  • Improved logging handler setup to support multiple handlers (Codeberg#692).
  • Fixed multi-sport Garmin Connect activity retrieval query handling.
  • Fixed Strava CSV gear matching by trimming trailing whitespace (Codeberg#668).
  • Added secret generation tooling and related backend updates.
  • Continued type-safety and mypy-driven backend improvements (Codeberg#679).

Frontend

  • Added a new login image for version 0.19.0.
  • Added explicit config error display when ENDURAIN_HOST is misconfigured (Codeberg#663).
  • Resolved frontend lint/format debt and dependency maintenance updates (Codeberg#648).
  • Added newsletter subscription form and styling updates.

Testing

  • Expanded backend test coverage from about 57% to about 80% (Codeberg#658).
  • Added comprehensive auth module tests: identity providers, MFA workflow, token hashing, maintenance paths (#627).
  • Added CI backend unit test workflow for pull requests (Codeberg#653).
  • Improved exception-path testing across auth and MFA flows (Codeberg#685).

CI/CD and Security

  • Hardened dependency supply chain and automation strategy in workflows (Codeberg#670).
  • Added and refined Conventional Commits validation workflow/rules.
  • Updated workflow trigger strategy and PR automation (including AI review workflow).
  • Improved HMAC handling in CI with Python/OpenSSL fallback behavior.
  • Migrated docs workflow steps to uv and reduced redundant setup (Codeberg#671).
  • Enforced stricter renovate/pinning behavior: minimum release age (Codeberg#689) and digest handling (Codeberg#687, #654).
  • Updated runner usage and workflow reliability adjustments (Codeberg#688).
  • Added format and lint check to CI (Codeberg#630).

Docs and Maintenance

  • Fixed docs references and module placement alignment with codebase structure.
  • Updated feature freeze and project process documentation.
  • Removed obsolete Forgejo runner docs/config remnants.
  • Performed broad dependency and lint maintenance across backend/frontend (Codeberg#644, Codeberg#646, Codeberg#654).
  • Refactored test structure and removed import path hacks (Codeberg#654).

Contributors

  • @​hugobatista
  • @​joaovitoriasilva
  • @​emon in Codeberg#708, Codeberg#710, Codeberg#711, Codeberg#714, Codeberg#717, Codeberg#719, Codeberg#727, Codeberg#728 and Codeberg#733
  • @​SethGower in Codeberg#702

Don't miss a new endurain release

NewReleases is sending notifications on new releases.