8000
Skip to content

feat: Secure Tailscale session auth, global logout, and automated Funnel lifecycle management (Oz Addons v1.3.0) - #11

Open
wizofoz244 wants to merge 195 commits into
masterfrom
feature/tailscale-funnel-session-auth-sync
Open

feat: Secure Tailscale session auth, global logout, and automated Funnel lifecycle management (Oz Addons v1.3.0)#11
wizofoz244 wants to merge 195 commits into
masterfrom
feature/tailscale-funnel-session-auth-sync

Conversation

@wizofoz244
Copy link
Copy Markdown
Owner

Summary

This PR implements complete secure session lifecycle management over HTTPS Tailscale Funnel, decouples password authentication from the usehttps flag, introduces a global 'Logout All Devices' cryptographic session revocation feature, automates Tailscale Funnel lifecycle synchronization in startgenmon.sh, and bumps the custom add-on version to Oz Custom Addons v1.3.0.

Fixes #10

Key Changes

  • genserv.py:
    • Removed conflicting non-secure manual resp.set_cookie() override in logout(), allowing Flask's secure session clearing to execute.
    • Decoupled HTTPAuthUser, HTTPAuthPass, and LDAP authentication loading from usehttps.
    • Added @app.route("/logout_all") to rotate app.secret_key and invalidate all global sessions.
  • static/js/genmon.js:
    • Decoupled Password Authentication and Session & Remember Me panels from usehttps.
    • Added the Logout All Devices button with admin confirmation modal in Settings -> Security.
    • Updated dashboard footer to display Oz Custom Addons v1.3.0.
    • Fixed custom device name input reloading in Web Push preferences modal.
  • startgenmon.sh:
    • Added get_genmon_conf_value() and tailscale_sync() to automatically detect ports/protocols (https+insecure://127.0.0.1:8443 vs http://127.0.0.1:8000).
    • Added automatic Tailscale Funnel synchronization on start, restart, stop, and hardstop.
    • Added real-time Tailscale Funnel URL and target verification to the status report (./startgenmon.sh status).
  • DEPLOYMENT_GUIDE.md:
    • Added Section 11 detailing Tailscale Funnel port architecture and remote HTTPS deployment.
    • Added Section 12 detailing PWA Web Push notification architecture and VAPID APNs configuration.

Verification

  • Verified curl -I https://genmon.pony-grouper.ts.net returns HTTP/2 200 OK.
  • Verified login, secure cookie retention, and logout over Tailscale Funnel.
  • Verified process verification output in ./startgenmon.sh status with live Tailscale status.
  • Verified global session invalidation on /logout_all.

jgyates and others added 30 commits August 1, 2026 00:17
…-detail

Accessibility update - dashboard detail
Accessibility updates - About, Monitor, Outage
Replaced transparent backgrounds with solid white to prevent iOS from rendering them as black overlays in dark mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(auth & tailscale): Secure Tailscale session management, global session revocation, and automated Funnel lifecycle integration

3 participants

0