Selbst-Updater neu gebaut, Diagnoseseiten abgesichert
Some checks failed
CI / PHP Lint-1 (push) Successful in 43s
CI / PHP Lint (push) Successful in 45s
CI / PHP Lint (pull_request) Successful in 38s
CI / Unit Tests & Static Analysis (push) Failing after 43s
CI / PHP Lint-1 (pull_request) Successful in 40s
CI / Unit Tests & Static Analysis (pull_request) Failing after 41s
Some checks failed
CI / PHP Lint-1 (push) Successful in 43s
CI / PHP Lint (push) Successful in 45s
CI / PHP Lint (pull_request) Successful in 38s
CI / Unit Tests & Static Analysis (push) Failing after 43s
CI / PHP Lint-1 (pull_request) Successful in 40s
CI / Unit Tests & Static Analysis (pull_request) Failing after 41s
Aktualisierung per Klick im Administrationsbereich, ohne Zugang zum Server. Der bisherige Updater lud ein ZIP und entpackte es ungeprüft über die Produktion; das ist vollständig ersetzt. Neu in updater/: - Version: Release-Version als Konstante, installierter Commit-SHA in storage/.version (Datei, nicht Datenbank - der Updater muss den Stand auch bei hängender Datenbank lesen können) - Progress: Fortschrittsdatei mit eigenem Fehlerzustand (pct = -1) und Verfallszeit, damit ein abgestürzter Lauf den nächsten nicht blockiert - Maintenance: Wartungsmarkierung mit Ablauf, die sich beim Prüfen selbst aufräumt - ProxyClient: nur HTTPS, Zertifikatsprüfung an, begrenzte Weiterleitungen, 503 mirror_pending/not_released als Bitte um Geduld - Updater: Prüfsumme gegen X-Content-Sha256, zweistufiger ZIP-Slip-Schutz, geschützte Pfade, atomares Schreiben je Datei, nie löschen - AutoMigrate: zieht Migrationen beim ersten Seitenaufruf nach, nur bei geändertem Fingerabdruck und mit Sperre gegen Parallellauf - guard.php: Wartungs-Wächter für die Einstiegsseiten, JSON für die Schnittstellen; ausgenommen bleiben Update-Seite, Anmeldung und Health-Check - Changelog: zerlegt CHANGELOG.md und rendert Markdown ohne unsichere Links Oberfläche: Seite "Aktualisierung" mit Stand, Kanal, Suche, Fortschritt, Migrationsliste und Versionsgeschichte. Der Datenschutzhinweis steht dauerhaft neben der Schaltfläche, nicht in einem Dialog. Fehlt changelog_preview in der Antwort, bleibt es bei "neue Fassung verfügbar" - kein leerer Kasten, kein erfundener Ersatztext. Commit-Texte werden nirgends angezeigt. Außerdem (Punkt 2 der Liste): - cron_test.php entfernt: ohne jede Anmeldung erreichbar, meldete Datenbankfehler samt Meldung und die Spalten der vouchers-Tabelle - test.php verweigert ohne config.php die Auskunft; bisher lief die Diagnose auf einer frisch entpackten Installation ohne Anmeldung PHPStan prüft jetzt den gesamten updater/-Ordner. 18 neue Tests (93 Tests, 243 Assertions), Ablauf gegen den echten Update-Dienst durchgespielt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
3a5b95119c
commit
25b8c51362
83 changed files with 2690 additions and 1042 deletions
46
lang/en.php
46
lang/en.php
|
|
@ -17,7 +17,7 @@ return [
|
|||
'nav_security' => 'Security (2FA)',
|
||||
'nav_integrations' => 'Integration & Maintenance',
|
||||
'nav_backup' => 'Backup & Restore',
|
||||
'nav_update' => 'System Update',
|
||||
'nav_update' => 'Update',
|
||||
'nav_back' => 'Back to Home',
|
||||
'nav_administration'=> 'Administration',
|
||||
|
||||
|
|
@ -667,4 +667,48 @@ return [
|
|||
'never' => 'Never',
|
||||
'unknown' => 'Unknown',
|
||||
'or' => 'or',
|
||||
|
||||
// Self updater
|
||||
'update_title' => 'Update',
|
||||
'update_subtitle' => 'Check for new versions and install them without server access.',
|
||||
'update_installed' => 'Installed version',
|
||||
'update_version' => 'Version',
|
||||
'update_state' => 'Revision',
|
||||
'update_state_unknown' => 'Not determined yet – run a check once.',
|
||||
'update_channel' => 'Channel',
|
||||
'update_channel_change' => 'Change channel',
|
||||
'update_channel_save' => 'Apply channel',
|
||||
'update_channel_hint' => 'The development channel carries pre-releases. For production use, pick "stable".',
|
||||
'update_search' => 'Check for updates',
|
||||
'update_search_btn' => 'Check for updates',
|
||||
'update_install_btn' => 'Update now',
|
||||
'update_migrations' => 'Database migrations',
|
||||
'update_migrations_hint' => '{total} migrations in total, {open} of them pending.',
|
||||
'update_migrations_btn' => 'Run migrations',
|
||||
'update_migration_file' => 'File',
|
||||
'update_migration_state' => 'Status',
|
||||
'update_migration_applied' => 'Applied',
|
||||
'update_migration_open' => 'Pending',
|
||||
'update_history' => 'Changelog',
|
||||
'update_history_empty' => 'No changelog shipped with this version.',
|
||||
'update_privacy_title' => 'Privacy notice',
|
||||
'update_privacy_intro' => 'Checking for updates and downloading a new version transmits data to update.loheide.cloud. Transmitted are:',
|
||||
'update_privacy_item_state' => 'the version installed on your side, so the service knows what is new',
|
||||
'update_privacy_item_tech' => 'for technical reasons: your IP address, date and time of the request',
|
||||
'update_privacy_purpose' => 'Purpose: delivering the update.',
|
||||
'update_privacy_not' => 'No content from this application is transmitted: no documents, no database, no input. The connection is encrypted.',
|
||||
'update_privacy_retention' => 'Requests to the update endpoints are kept on the server for 400 days and deleted afterwards.',
|
||||
'update_privacy_link' => 'Privacy policy of this installation',
|
||||
'update_js_checking' => 'Checking …',
|
||||
'update_js_current' => 'This installation is up to date.',
|
||||
'update_js_available' => 'A new version is available.',
|
||||
'update_js_behind' => '{count} revision(s) behind',
|
||||
'update_js_target' => 'Target version:',
|
||||
'update_js_installing' => 'Preparing the update …',
|
||||
'update_js_done' => 'Update completed.',
|
||||
'update_js_failed' => 'The update failed.',
|
||||
'update_js_more' => 'View the full changelog',
|
||||
'update_js_channel_switch' => 'The reported revision comes from channel {to} (previously {from}).',
|
||||
'update_js_confirm' => 'Update now? The site will be briefly unavailable.',
|
||||
'update_js_migrated' => '{count} migration(s) applied.',
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue