Repository navigation
shelf@2.5.2
Security release
This release contains a security fix for GHSA-p4mx-554x-7h6w: on self-hosted instances that run with one of the example SESSION_SECRET values from the repository, a user with an account on the instance could sign in as any other user, including workspace Owners and Administrators (improper authentication). Severity: Medium (CVSS 6.8).
Affected versions: all versions prior to 2.5.2, only on instances whose SESSION_SECRET is a published example value. Instances with their own random secret were not exposed, and app.shelf.nu was not affected.
Self-hosted operators should upgrade, and rotate SESSION_SECRET and INVITE_TOKEN_SECRET if either was ever an example value. From this release, a production server that starts with an example secret logs an INSECURE CONFIGURATION error at every boot.
Upgrade
docker pull ghcr.io/shelf-nu/shelf.nu:2.5.2
# or, if you track :latest
docker pull ghcr.io/shelf-nu/shelf.nu:latestThen restart your container. No database migration is required. To rotate a secret, set it to the output of openssl rand -hex 32 and restart: changing SESSION_SECRET signs every user out once, and changing INVITE_TOKEN_SECRET invalidates invite links already sent.
🚀 Features
- feat(bookings): block Base and Self Service from deleting bookings, add Discard draft by @DonKoko in #3365
- feat(bookings): show models like assets in the booking Models tab by @DonKoko in #3393
🐛 Fixes
- fix(auth): add a "Back to login" link on the SSO login page by @carlosvirreira in #3363
- fix(companion): add the iOS microphone purpose string Apple now requires by @carlosvirreira in #3383
- fix(companion): add the iOS motion purpose string Apple now requires by @carlosvirreira in #3384
- fix(hydration): report timeouts that fired early as their own info issue by @DonKoko in #3386
- fix(assets): show the asset's own model on the edit form by @carlosvirreira in #3368
- fix(companion): open web links that launch the app on their screen by @carlosvirreira in #3385
- fix(assets): search all tags in bulk tag dialogs by @carlosvirreira in #3364
- fix(companion): handle a failed Settings link and keep the date picker above its minimum by @DonKoko in #3391
- fix(scanner): resolve outside QR urls from a handheld scanner as ExternalQR by @carlosvirreira in #3390
- fix(api): return every location to mobile clients that send no paging params by @carlosvirreira in #3388
- fix(companion): resolve linked outside QR urls in the scanner by @carlosvirreira in #3392
- fix(bookings): use the shared popover picker for the check-out From location by @DonKoko in #3389
- fix(ui): let dropdown menus open and act from the keyboard by @DonKoko in #3395
- fix(security): workspace scoping, session binding and role visibility hardening by @DonKoko in #3387
- fix(companion): harden sign-out cleanup and link handling by @carlosvirreira in #3362
- fix(companion): make photo uploads work again on 1.8.0 by @carlosvirreira in #3401
- fix(assets): pre-fill defaults of a model found by searching by @carlosvirreira in #3370
- fix(companion): make Audits open again on 1.8.0 by @carlosvirreira in #3402
- fix(layout): keep the search field usable in narrow windows by @DonKoko in #3404
- fix(companion): use React Native's fetch on SDK 58 by @carlosvirreira in #3403
- fix(companion): open booking scanning on its own screen so the Scan tab stays plain by @carlosvirreira in #3399
⚡ Performance
- perf(inline-create): load the create forms only when the dialog opens by @DonKoko in #3378
- perf(reports): stop bundling every Lucide icon, group icons into one file by @DonKoko in #3380
- perf(booking): count a partial check-out's units in one statement per unit count by @DonKoko in #3394
- perf(lists): open remembered filters from the sidebar instead of redirecting to them by @DonKoko in #3400
🧹 Chores
- chore(rules): never put customer data in the public repo by @carlosvirreira in #3377
- ci: gate review requests on unresolved review threads by @DonKoko in #3382
Full Changelog: https://github.com/Shelf-nu/shelf.nu/compare/shelf@2.5.1...shelf@2.5.2