mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 08:02:12 +00:00
v1.4.37 — final web polish before iOS focus
Carries the v1.4.36 perf carry-over for the full /api/analytics route (correlations + healthScore + bp_in_target on the rollup- coverage probe, 111s cold worst-case down to ~1.5-3s on power-user accounts), consolidates Apple Health step samples into a one-row- per-day list view with chevron drill-down and a nightly drain (~50x table compression once it converges), restores IntakeHistoryListV2 to the pre-v1.4.28 contract, converges every Coach affordance behind a single feature gate with an invariant test pin, lifts the medication-detail Mounjaro card to byte- equivalent parity with Ramipril, brings the Insights overview hero row to height parity, hardens getClientIp behind a new TRUST_CF_CONNECTING_IP env flag, ships the Arztbericht hero card on Settings -> Export, adds the Medikamenteneinnahme quick-add overlay to the dashboard, drops the timezone override toggle for a silent browser-zone auto-seed, and fixes the v1.4.36 red CI workflows. Documentation refreshed across all three repos with five new architecture diagrams in the Dracula palette. Unit suite 4354 -> 4486 passing; typecheck + lint clean.
This commit is contained in:
1 parent
0e2a99f8e7
commit
88028fa082
121 files changed
+13912
-1437
No files matched your search
@@ -110,6 +110,38 @@ API_TOKEN_HMAC_KEY="REPLACE-WITH-OUTPUT-OF-openssl-rand-hex-32"
|
||||
# LOKI_PASSWORD=""
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Reverse-proxy trust (optional, defaults match a single-proxy stack)
|
||||
# -----------------------------------------------------------------------------
|
||||
# When HealthLog sits behind Cloudflare (Tunnel, Workers, classic proxy),
|
||||
# the visitor IP arrives in the `CF-Connecting-IP` header — the upstream
|
||||
# `X-Forwarded-For` chain stops at the Coolify / Caddy loopback and the
|
||||
# admin sign-in geo lookup has no signal to resolve from.
|
||||
#
|
||||
# Set this to "1" ONLY when every public request to HealthLog terminates
|
||||
# at Cloudflare (Tunnel, Workers, classic proxy) before it reaches your
|
||||
# origin. Deployments behind nginx, Caddy, Traefik, an AWS ALB, or any
|
||||
# direct-to-Next.js exposure MUST leave this off.
|
||||
#
|
||||
# Security implications when the flag is mis-set:
|
||||
# - `cf-connecting-ip` becomes the IP-rate-limit bucket key for
|
||||
# login / chat / coach. An attacker who can set the header rotates
|
||||
# it per request and defeats every IP-keyed throttle.
|
||||
# - The same value lands in the `audit_logs.ipAddress` column for
|
||||
# every `measurement.create`, `medication.intake`, sign-in, and
|
||||
# admin action. A misconfigured flag lets any caller forge the
|
||||
# IP recorded against their actions across the audit trail.
|
||||
# - The admin sign-in overview's "Standort" column reads the same
|
||||
# value via geo-backfill; a malicious caller can poison the column
|
||||
# with a chosen IP per request.
|
||||
#
|
||||
# Code-level validation is strict (only "=== '1'" enables, value is
|
||||
# regex- and length-bounded), but the gating decision is up to the
|
||||
# operator — there is no way for the server to detect whether the flag
|
||||
# matches the real deployment topology. When in doubt, leave it off.
|
||||
# TRUST_CF_CONNECTING_IP=""
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Process split (optional, single-container deploys ignore this)
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user