Skip to content

Repository files, collaboration, releases and project activity.

ARCHFORGE HISTORY

Blame · FIX-ADMIN-LOGIN-1.0.6.md

Branch main · the Commit author is not necessarily a verified ArchForge account.

299229ecf6archadmin2026-10-121 # Debian 13 — Git-based login recovery (1.0.6)
299229ecf6archadmin2026-10-122 
299229ecf6archadmin2026-10-123 If `https://status.archforge.nl/admin/login` still returns **403 Invalid origin** after updating to 1.0.5, do **not** reinstall the status server or erase the SQLite database.
299229ecf6archadmin2026-10-124 
299229ecf6archadmin2026-10-125 1. Extract the 1.0.6 update ZIP over the existing ArchForge Git repository on your computer; commit and push the changes to its main branch. Never commit `/etc/archforge-status/status.env` or your SQLite database.
299229ecf6archadmin2026-10-126 2. On VPS 2, as root:
299229ecf6archadmin2026-10-127 
299229ecf6archadmin2026-10-128 ```bash
299229ecf6archadmin2026-10-129 cd ~/archforge-external-status
299229ecf6archadmin2026-10-1210 git pull --ff-only
299229ecf6archadmin2026-10-1211 bash ./repair-admin-login.sh
299229ecf6archadmin2026-10-1212 ```
299229ecf6archadmin2026-10-1213 
299229ecf6archadmin2026-10-1214 The script checks it is running from a 1.0.6 checkout, that Caddy's HTTPS host is configured, and that the installed app is available. It backs up the environment file privately, synchronizes only the public URL if needed, uses the existing deployment backup/rollback mechanism, then reads the newly running app version from `/healthz`. Finally, it sends dummy form submissions to the local app with a fresh CSRF cookie. Canonical HTTPS and privacy-protected same-origin POSTs must reach the normal invalid-credentials response; cross-site requests must receive 403. It does not send, read or reset your real credentials or authenticator secret.
299229ecf6archadmin2026-10-1215 
299229ecf6archadmin2026-10-1216 The application remains accessible at `https://status.archforge.nl/admin/login`. Refresh the login page in a new tab after running the tool.
299229ecf6archadmin2026-10-1217 
299229ecf6archadmin2026-10-1218 If the script fails, share **only its `[ERROR]` line**. If it completes but the browser still fails, share the exact new error text (403 Invalid origin, 403 Invalid or expired form token, 401 invalid credentials, or something else). Do not send an `.env`, cookies, passwords, backup contents or 2FA secrets.
299229ecf6archadmin2026-10-1219 
299229ecf6archadmin2026-10-1220 **Scope:** this project touches only VPS 2; ArchForge 11.3.6 on the primary VPS is unchanged.