Repository navigation
Conversation
…Caddy) TeleLogin can now protect any app behind a reverse proxy with no app code: - Hosted browser login (/login, /sso/start, /sso/complete, /logout) with a revocable SSO session created at Telegram approval and an HttpOnly cookie delivered once; optional SSO_COOKIE_DOMAIN for sibling subdomains (public suffixes rejected offline via tldextract). - /sso/verify forward-auth endpoint (401 + X-TeleLogin-Login for nginx, redirect=1 for Traefik/Caddy) returning percent-encoded X-TeleLogin-User and a stable X-TeleLogin-User-Id (new users.public_id). - App registry with per-app access policy (allowlist|all), allowlist and trusted return origins; app-scoped redirect validation. - Operator CLI (python -m src.admin): app add/list/show/remove/policy/ allow/disallow/origin, user invite/list/remove, gen-secrets. - REGISTRATION_MODE=open|closed; API port now bound to 127.0.0.1. - Proxy examples for nginx, Traefik and Caddy (prefix and subdomain shapes), docs/INTEGRATION.md, and a real-proxy e2e suite run in CI. Built by Codex from the reviewed plan (Codex plan review, 5 rounds). Inspected twice by fresh Claude sessions; findings of the first inspection fixed by Codex. The three findings of the second inspection were fixed by Claude and are NOT covered by an independent inspection (budget exhausted, user decision): FORWARDED_ALLOW_IPS default '*' for the loopback-bound Compose port, stripping underscore identity-header variants in all proxy examples (+ e2e check), and /sso/complete persisting 'denied' after a pre-collection revoke (+ test). Verification: 119 tests pass, ruff clean, no deprecation warnings; e2e passes for nginx, Traefik and Caddy in prefix and subdomain shapes. Co-Authored-By: Claude Opus 5.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.
…Caddy)
TeleLogin can now protect any app behind a reverse proxy with no app code:
Built by Codex from the reviewed plan (Codex plan review, 5 rounds). Inspected twice by fresh Claude sessions; findings of the first inspection fixed by Codex. The three findings of the second inspection were fixed by Claude and are NOT covered by an independent inspection (budget exhausted, user decision): FORWARDED_ALLOW_IPS default '*' for the loopback-bound Compose port, stripping underscore identity-header variants in all proxy examples (+ e2e check), and /sso/complete persisting 'denied' after a pre-collection revoke (+ test).
Verification: 119 tests pass, ruff clean, no deprecation warnings; e2e passes for nginx, Traefik and Caddy in prefix and subdomain shapes.