Статус: COMPLETED
Структурированная сводка для этой задачи не записана. Показан сохранённый результат без изменений.
Passwordless owner sign-in is built, tested and deployed to the live staging app. Opening https://iovon.blowfish-kitchen.ts.net:8447/ from a device on the owner's tailnet now signs in as khodunov@gmail.com with no password. I did not commit anything to git.
Tailscale-User-Login header. The request's Host must be the tailnet host, and the last X-Forwarded-For address must be a Tailscale address. The local Tailscale daemon must also map that address to the owner's login on an untagged node. Apache adds the real public address last, so requests through https://saas.iovon.com can't impersonate the owner.Test evidence
tests/saas-039-regression.php passes 18 checks. They cover refusal of other tailnet users, tagged nodes, the public Host and spoofed addresses. The test also signs in through the real local Tailscale daemon.khodunov@gmail.com and the Crumb Corner project.What I changed on the live system: two files, app/tailscale-auth.php (new) and console/index.php, plus the config file /var/www/console-saas-data/tailscale-owner.json. Nothing changed in Apache, systemd or credentials. No restart was needed.
Rollback: restore the backed-up index.php from /home/iovon/ai-factory/backups/saas039-*/console/index.php, then delete app/tailscale-auth.php. To switch the feature off without touching code, delete the config file. The report has the exact commands.
Files are in /home/iovon/ai-factory/workspaces/saas-website:
docs/e2e/SAAS-039-REPORT.mdapp/tailscale-auth.phptests/saas-039-regression.phpОжидает вашего решения: принять, вернуть на доработку или отложить.