5.2.2
This release makes the app's sign-in feel like the app it belongs to, ends TREK sessions when the identity provider signs a user out, closes three security gaps around password resets and live updates, and brings a round of phone fixes asked for in the discussions. No migration you need to prepare for: the two new columns are added on the first start. Postgres installs whose TREK_DB_URL names sslcert or sslkey should read the Added entry below before updating.
Added
Deployment
- The Helm chart takes an
extraObjectslist for Kubernetes objects of your own, such as a backup job, rendered with the release (#3232). - TREK connects to a Postgres server that asks for a client certificate (#3232).
TREK_DB_URLtakessslcertandsslkey, for the app and for backups and restores. A URL that names them now needs both files readable andsslmode=verify-full, otherwise TREK refuses to start; before, they were ignored.
Fixed
Security
- A password reset link kept working after the account's email changed (GHSA-m2m5-wpwm-ff74). A link stops working now as soon as the account's email or password changes, whether the user or an admin changes it, so a link sent to a former address can no longer set a new password. Thanks to Rex Liu for the report.
- A member removed from a trip, or a contributor taken off a journey, kept hearing it on a connection that was already open (GHSA-ggc6-wm39-6mcm, GHSA-v9pf-4vxh-732f). Their live updates, the book's pointers and presence now stop at once, as they do when an account is deleted, its sessions end or a backup is restored.
- A sign-in code for the mobile app, or an authorization code an MCP client was granted, could still be redeemed after the browser session it came from had ended. A password reset, a password change or signing out now also stops a code issued shortly before.
Sign-in
- Signing a user out at the identity provider left their TREK sessions running for up to 30 days (#3243). TREK now ends them through OIDC back-channel logout: enter
<APP_URL>/api/auth/oidc/backchannel-logoutas the client's back-channel logout URL in Authentik, Keycloak or Pocket ID. - In the iOS and Android app, the sign-in screen looked like a web form and flashed white on the way in (#3241). It now continues the app's own first screens with the same landscape, the connected server, the same fields and buttons and the device's language, and the app opens right after signing in instead of playing the takeoff animation.
Phone and app
- A journey's photos and videos opened in a box under the notch, with the close button out of reach (#3244). They open full screen now, and the trip files viewer keeps its header below the status bar too.
- A place's address and a booking's location did nothing when tapped (#3244). They open directions now.
- Transports and bookings that are over stayed mixed in with the upcoming ones (#3244). They move into a folded Past section at the end of their tab.
- A stop could only be reordered within its day (#3244). Tapping its day in the place sheet now moves it to another day, with its time and notes.
- A saved journal entry opened straight in the editor, where it was easy to change by accident (#3244). It opens to be read now, with a pencil into the editor.
- The photos of a journal entry could only be moved to the front (#3244). A long press and a drag now put them in order, as on the desktop.
- The stops in the plan carried no numbers (#3244). Each now shows the number of its pin on the map.
- A place shared from Google Maps or Amap to the app could only be kept as a link or read as a booking (#3244). It can be added to a trip as a place now, looked up right away.
- Whether a trip was saved for offline use showed only in the offline settings (#3244). The trip's own menu says it now, and as of when.
- On Android phones with the three-button navigation bar, the buttons on the app's first screens sat under the bar (#3221).
Planner, maps and tours
- The road lines between places showed as straight lines on every reopened trip until the routing service answered again (#3228). They show right away now, also for a day the routing service could not answer in time.
- On the trip map, the whole-trip overview and the day details covered each other (#3234). Both stay open where there is room, otherwise the one opened last stays, and making room never switches off the overview you turned on.
- The dropdowns of the tour editor ran out of the sidebar (#3235). They open above or below their field where there is room, scroll inside, and close when their field scrolls out of view.
- A walk's stop that stands for a trip place showed only its name (#3244). Tapping it opens its description, address and website.
Collections
- The notes of a saved place were kept but never shown (#3244). They are shown and editable now, on the phone and on the desktop.
Bookings and documents
- A booking imported from a document that calls it confirmed was saved as pending (#3238). It is saved as confirmed now, from a file, a forwarded mail or the assistant.
- The cost row of an imported booking promised to open the Costs editor (#3237). It says now that the expense is added to Costs when the booking is saved.
- The trip PDF printed the raw markdown of day notes, booking notes and the day intro (#3236). It prints their formatting the way the planner shows it.
- A document stored for offline use loaded forever when the connection stalled (#3232). It opens from the device after a few seconds now.
Assistant and weather
- The trip assistant failed with OpenAI style and Azure connections with
array_above_max_length. Every request now stays within the 128 tools these providers accept; the trip's bookings, packing lists and to-dos, budget changes and tags load on demand like the addons do. - On Anthropic connections the assistant stopped answering follow-up messages (#3094). Once a conversation held an answer the model thought through, every further message and "Try again" failed with "An error occurred"; it answers again now.
- The detailed weather for a trip day exactly 16 days out showed "No weather data" (#3216). It shows that day's climate again.
Admin
- In the default settings, the reset link of the Mapbox token or CARTO key could bring back a key typed just before (#3225). It reliably clears it now.
Internal
- The Android app is also published as an APK at liketrek/trek-android for installs outside Google Play (Obtainium): the release job fetches the APK Google Play builds of each app build, with the same signature, so phones can move between the two (#3231).
- Dependency updates: Express 5 for the body parsers and static files, NestJS 11.2.12, MikroORM 7.2.12 with better-sqlite3 13.2.0 and kysely 0.29.9, react-dropzone 20, msw 3 and @types/node 26, with the behaviour of uploads, pasted files, static assets and OAuth writes kept as it was (#3224, #3225).
Sponsor
TREK's servers run on dataforest cloud: fast AMD EPYC machines in Frankfurt, up to 20 TB of traffic included, block storage and one-click apps, billed by the hour with no fixed prices, and a big thank you for sponsoring TREK.
