๐ Cookie Security & Reverse Proxy Support
Version 2.0.1 adds configurable cookie security settings and proper reverse proxy support, fixing login issues for users behind HTTPS proxies or accessing over HTTP.
โจ New Features
Cookie Security Configuration
-
COOKIE_SECUREenvironment variable to override secure cookie requirement- Default:
truein production,falsein development - Set to
falsefor direct HTTP access (not recommended) - Includes warning when disabled in production
- Default:
-
COOKIE_SAMESITEenvironment variable to customize SameSite policy- Default:
strictin production,laxin development - Supports:
strict,lax,none
- Default:
Reverse Proxy Support โญ Recommended
TRUST_PROXYconfiguration for HTTPS reverse proxy deployments- Automatically defaults to
1(trust first proxy) in production - Supports custom configurations:
true,false, number of hops, IP/CIDR - Allows MeshMonitor to detect HTTPS via
X-Forwarded-Protoheader - More secure than disabling secure cookies
- Automatically defaults to
๐ Bug Fixes
- Fixed login issues behind reverse proxies (#153)
- Users experienced successful authentication but no persistent session
- Session cookies now work correctly with HTTPS reverse proxies
- Proper handling of
X-Forwarded-*headers
๐ Documentation
- Comprehensive troubleshooting guide for login/session issues
- Three deployment scenarios with clear configuration guidance:
- Scenario A: HTTPS Reverse Proxy (use
TRUST_PROXY=true) - Scenario B: Direct HTTP Access (use
COOKIE_SECURE=false) - Scenario C: Direct HTTPS Access (no config needed)
- Scenario A: HTTPS Reverse Proxy (use
- Reverse proxy examples for nginx, Traefik, and Caddy
- Diagnostic steps for cookie-related issues
- Updated environment variable documentation
๐ง Configuration Examples
For HTTPS Reverse Proxy (Recommended)
environment:
- NODE_ENV=production
- TRUST_PROXY=true
- SESSION_SECRET=your-secret-hereFor Direct HTTP Access (Not Recommended)
environment:
- NODE_ENV=production
- COOKIE_SECURE=false
- SESSION_SECRET=your-secret-here๐ฆ Deployment
Docker:
docker pull ghcr.io/yeraze/meshmonitor:2.0.1
# or
docker pull ghcr.io/yeraze/meshmonitor:latestHelm:
helm upgrade meshmonitor ./helm/meshmonitor --version 2.0.1๐ Related Issues
- Fixes #153 - Login succeeds but immediately logs out
- Includes #155 - TZ environment variable documentation
๐ Full Changelog
๐ค This release was created with Claude Code
๐ MeshMonitor v2.0.1
๐ฆ Installation
Docker (recommended):
docker run -d \
--name meshmonitor \
-p 8080:3001 \
-v meshmonitor-data:/data \
ghcr.io/Yeraze/meshmonitor:v2.0.1๐งช Testing
โ
All tests passed
โ
TypeScript checks passed
โ
Docker images built for linux/amd64, linux/arm64, linux/arm/v7
๐ Changes
See commit history for detailed changes.