What's changed
Two new security features have been added to Fireshare along with a couple other minor improvements and fixes.
Security & Authentication
- Two-factor authentication (TOTP) - optional MFA for logins, with a new multi-step login flow (code entry + error handling). See Security.md for setup.
- Login IP whitelisting - restrict which IPs are allowed to attempt a login.
- Login button is now hidden in the navbar when logins are disabled due to IP whitelisting.
LDAP Fixes
Note: These LDAP fixes were primarily tested with AI as I do not have an easy way to test and validate LDAP. If there are any issues please report them ASAP.
- LDAPS now works out of the box. The images ship CA certs but OpenLDAP had no CA configured, so every
ldaps://handshake failed with a bare "Can't contact LDAP server". Connections now verify against the system CA bundle. - New
LDAP_TLS_CACERTandLDAP_TLS_REQCERToptions for private/internal CAs. LDAP_STARTLSis now actually implemented (it was previously read but unused).⚠️ Boolean env vars are parsed properly.LDAP_ENABLE,LDAP_STARTLS, andDISABLE_ADMINCREATEpreviously treated any value as true — includingfalse. If you set one of these tofalse/0/no, it now does what you meant. Double-check these before upgrading.- Fireshare keeps serving if the LDAP server is unreachable at startup, so local accounts can still log in.
- Stale service binds reconnect automatically instead of breaking every login until a restart.
- Added connect/operation timeouts, clearer TLS failure logging, and fixed a connection leak on failed logins.
Library Scanning
MINUTES_BETWEEN_VIDEO_SCANS=0now disables the automatic scan entirely - useful if you'd rather scan on demand from the admin panel. Startup logs tell you which mode you're in.- An invalid value falls back to the default of
5with a warning, instead of silently turning scanning off.
UI/UX
- View count icon turns red on private videos/images so they're easier to spot at a glance.
- More reliable touch-device detection on video cards (now uses modern media queries). @Hyrull
Responsive Layout
- Reworked the video modal layout for short and narrow viewports - the video and info panel stay usable and balanced on any screen size.