Trek_CN/wiki
Julien G. 6072b969d6
Bug fixes - May 2nd 2026 (#941)
* fix: collab chat input hidden by mobile bottom nav bar

Closes #939

* chore: prepare database for nest + typeorm

* fix(ssrf): relax internal network resolution (#947)

* docs(ssrf): update Internal-Network-Access wiki to reflect relaxed guard

Loopback, link-local, and .local/.internal hostnames are now all
overridable with ALLOW_INTERNAL_NETWORK=true (commit 9a08368). Merge
the two-tier "always blocked / conditionally blocked" structure into a
single table, add a warning about cloud metadata exposure.

* fix(ssrf): let .local/.internal hostnames pass to IP-level checks

The pre-DNS hostname block was redundant: any .local/.internal host
that resolves to a private IP is already gated by isPrivateNetwork +
ALLOW_INTERNAL_NETWORK, and any that resolves to loopback/link-local
is caught by isAlwaysBlocked unconditionally.

Dropping the hostname pre-check means Docker/LAN deployments can reach
services on .local hostnames (e.g. immich.local) with
ALLOW_INTERNAL_NETWORK=true, while loopback and link-local IPs
(including 169.254.169.254) remain hard-blocked with no override.

Reverts the isAlwaysBlocked guard loosening from 9a08368.

* fix(auth): trim username and email on all write paths

Self-registration stored values verbatim, so trailing whitespace could
produce rows that lookup code (which trims input) silently misses.
Trim username and email before validation and INSERT in registerUser,
adminService.updateUser, and oidcService.findOrCreateUser. updateSettings
and adminService.createUser already trimmed correctly.

Adds a one-shot backfill migration (trimUserWhitespace) that trims
existing dirty rows; collisions are resolved by appending __migrated_<id>
to the value with a loud console.warn so operators can review affected
accounts.

18 new tests covering registration trim, duplicate detection, admin
update trim, trip-member lookup regression, and all migration branches.

* feat(notices): add v3014-whitespace-collision admin notice

Adds a dismissible banner for admins on v3.0.14+ that fires only when
the whitespace-trimming migration detected a username/email collision
(stored in app_settings as whitespace_migration_collision=true).

Notice conditions: existingUserBeforeVersion(3.0.14) + role=admin +
custom predicate reading the app_settings flag. Predicate registered in
registry.ts; migration step writes the flag when hadCollision=true.

All 15 translation files updated with title/body keys.
7 integration tests added (SN-COLLISION-1 through -7) covering all
condition branches: shown when all conditions met, hidden when flag
absent/false, hidden for non-admin, hidden for new user, hidden below
min app version, hidden after dismissal.
2026-05-03 17:39:45 +02:00
..
assets docs: add wiki guide for adding places to day itinerary with GIFs 2026-04-28 05:32:35 +02:00
_Footer.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
_Sidebar.md docs: add Proxmox VE LXC install guide and update CI ignore paths 2026-04-27 00:14:50 +02:00
Accommodations.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Addons-Overview.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-Addons.md docs: align Home.md + README addon list + Tags/Photo-Providers wording with dev state 2026-04-22 18:22:22 +02:00
Admin-Categories.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-GitHub-Releases.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-MCP-Tokens.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-Packing-Templates.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-Panel-Overview.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-Permissions.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Admin-Users-and-Invites.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Atlas.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Audit-Log.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Backups.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Budget-Tracking.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Collab-Chat.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Collab-Notes.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Collab-Polls.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Contributing.md docs: update contributing wiki page 2026-04-21 16:57:38 +02:00
Creating-a-Trip.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Dashboard-Widgets.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Day-Plans-and-Notes.md docs: add wiki guide for adding places to day itinerary with GIFs 2026-04-28 05:32:35 +02:00
Demo-Mode.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Development-environment.md docs(wiki): add Contributing and Development-environment to sidebar and cross-links 2026-04-21 16:52:38 +02:00
Display-Settings.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Documents-and-Files.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Encryption-Key-Rotation.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Environment-Variables.md fix: hot fixes 23-04-2026 (#856) 2026-04-23 19:49:36 +02:00
FAQ.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Home.md docs: align Home.md + README addon list + Tags/Photo-Providers wording with dev state 2026-04-22 18:22:22 +02:00
Install-Docker-Compose.md fix: resolve dead wiki links across install and config pages 2026-04-22 19:21:53 +02:00
Install-Docker.md fix: resolve dead wiki links across install and config pages 2026-04-22 19:21:53 +02:00
Install-Helm.md fix: resolve dead wiki links across install and config pages 2026-04-22 19:21:53 +02:00
Install-Proxmox.md docs: fix Proxmox update section to run inside LXC and add command 2026-04-27 00:28:48 +02:00
Install-Unraid.md fix: resolve dead wiki links across install and config pages 2026-04-22 19:21:53 +02:00
Internal-Network-Access.md Bug fixes - May 2nd 2026 (#941) 2026-05-03 17:39:45 +02:00
Invite-Links.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Journey-Journal.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Languages.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Login-and-Registration.md docs(wiki): document self-service password reset feature 2026-04-20 16:43:53 +02:00
Map-Features.md fix: hot fixes 23-04-2026 (#856) 2026-04-23 19:49:36 +02:00
Map-Settings.md fix(wiki): update mapbox scopes and url 2026-04-20 10:18:44 +02:00
MCP-Addon-Tools.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
MCP-Overview.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
MCP-Prompts.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
MCP-Scopes.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
MCP-Setup.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
MCP-Tools-and-Resources.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
My-Trips-Dashboard.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Notifications.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Offline-Mode-and-PWA.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
OIDC-SSO.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Packing-Lists.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Packing-Templates.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Password-Reset.md docs(wiki): document self-service password reset feature 2026-04-20 16:43:53 +02:00
PDF-Export.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Photo-Providers.md docs: document required permissions for Immich and Synology photo providers 2026-04-28 05:32:39 +02:00
Places-and-Search.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Public-Share-Links.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Quick-Start.md fix: resolve dead wiki links across install and config pages 2026-04-22 19:21:53 +02:00
Real-Time-Collaboration.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Reservations-and-Bookings.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Reverse-Proxy.md fix: resolve dead wiki links across install and config pages 2026-04-22 19:21:53 +02:00
Route-Optimization.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Security-Hardening.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Tags-and-Categories.md docs: align Home.md + README addon list + Tags/Photo-Providers wording with dev state 2026-04-22 18:22:22 +02:00
Todos-and-Tasks.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Transport-Flights-Trains-Cars.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Trip-Members-and-Sharing.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Trip-Planner-Overview.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Troubleshooting.md docs(wiki): add MCP OAuth troubleshooting entry for missing APP_URL 2026-04-23 20:02:32 +02:00
Two-Factor-Authentication.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Updating.md docs: add Proxmox VE LXC install guide and update CI ignore paths 2026-04-27 00:14:50 +02:00
User-Settings.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Vacay.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Weather-Forecasts.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00
Whats-Next-Widget.md docs: add full wiki with 74 pages, assets, and CI workflow 2026-04-20 10:11:53 +02:00