1208 Commits
Author SHA1 Message Date
Lauri Ojansivu 2c61454c17 Keep custom field deselection compatible with FerretDB
Document and pin the partial-document pull used to remove a custom field without depending on its stored value. FerretDB now implements the MongoDB matching semantics this operation requires.

Thanks to Heart1010 and xet7 !

Fixes #6611,
2026-08-30 13:24:32 +03:00
Lauri Ojansivu 78a3a21c39 Keep resume tokens in HttpOnly cookies
Enable Meteor 3 native HttpOnly resume authentication with in-memory client credentials, remove the JavaScript cookie and local-storage synchronization, and harden header-login cookies.

Thanks to binary-lover and xet7 !
2026-08-29 18:31:41 +03:00
Lauri Ojansivu 96b42c3d38 Render notification titles safely in email
Escape the completed localized notification before creating HTML line breaks and remove subject newlines so stored card, list, board, actor, comment, and translation values remain text.

Thanks to binary-lover and xet7 !
2026-08-29 18:31:41 +03:00
Lauri Ojansivu 7737762143 Scope global search selectors to authorized boards
Reject executable selectors before database access, conjoin client selectors with the caller board scope, and independently sanitize and rescope stored pagination selectors from older releases.

Thanks to crypto-nidh and xet7 !
2026-08-29 18:15:40 +03:00
Lauri Ojansivu 162740e885 Keep notification title placeholders out of translations
Remove the board-only and board/card notification layouts from every locale bundle. Format those structural titles in server code, retain translation fallback for prose titles, and cover both paths plus all locale files.\n\nThanks to xet7 !
2026-08-29 12:50:20 +03:00
Lauri Ojansivu dffe85cce4 Block unauthorized cross-board rule actions
Validate automation destinations before storing a rule and again before executing legacy or imported move, link, and bulk-move actions. Record denied attempts through the bounded RuleBleed canary.\n\nThanks to crypto-nidh and xet7 !
2026-08-29 09:43:23 +03:00
Lauri Ojansivu 8361a339b4 Show branded dashboard during FerretDB preparation 2026-08-29 06:01:39 +03:00
Lauri Ojansivu aedcb600b9 Use Meteor resume login without a database override 2026-08-29 06:01:39 +03:00
Lauri Ojansivu ca2838ab2f Restore database-independent MongoDB selectors 2026-08-29 06:01:39 +03:00
Lauri Ojansivu b86a9914cc Revert "Bound empty board creation and publication scans"
This reverts commit 8229e170983c62754baee81103dd4b0bbf628378.
2026-08-29 06:01:39 +03:00
Lauri Ojansivu b7dc63571f Bound empty board creation and publication scans 2026-08-29 06:01:39 +03:00
Lauri Ojansivu 0ea301d7ee Avoid full user scan during registration 2026-08-29 06:01:39 +03:00
Lauri Ojansivu 3240ddd1b9 Supervise DEBUGSPEED instrumentation and logs 2026-08-29 06:01:39 +03:00
Lauri Ojansivu 186035df54 Add opt-in database speed diagnostics 2026-08-29 06:01:39 +03:00
Lauri Ojansivu 8d427583ef Harden avatar attachment and swimlane boundaries
Serve browser-executable avatar and legacy attachment MIME types as sandboxed opaque downloads, and require board write permission before creating a default swimlane. Summarize rejected swimlane creation attempts in Admin Panel Problems and add positive plus repository-wide negative regression coverage.

Thanks to crypto-nidh and xet7 !
2026-08-29 06:01:38 +03:00
Lauri Ojansivu 29fd503317 Refresh lazy card windows after card changes
Keep FerretDB's bounded card window as a fetched snapshot, but observe the unrestricted indexed selector and diff a fresh window whenever a matching card changes. Publish added, changed and removed DDP messages so remote edits and cross-list moves render without a browser reload. Cover additions, edits, removals, unchanged cards, cleared fields and a forced-lazy browser scenario.

Thanks to hmeunier95 and xet7 !

Fixes #6645,
2026-08-28 17:40:10 +03:00
Lauri Ojansivu 6acfb396e4 Confirm REST user deletion results
Use the database removal count to distinguish a confirmed deletion from a missing user and unexpected outcomes. Extend OpenAPI generation with repeatable response contracts, document the 200 and 404 bodies, and cover authorization, failures, generated documentation, and the live REST path.

Thanks to AhmedLukman and xet7 !

Integrates PR #6642.
2026-08-28 07:09:45 +03:00
Lauri Ojansivu 18bcbdd0d4 Bind search pagination sessions to their users
Require both pagination publications to authenticate the subscriber and load only a search session owned by that same user. Record attributable logged-out probes as SessionBleed without letting logging affect the denial.

Thanks to crypto-nidh and xet7 !
2026-08-27 10:19:56 +03:00
Lauri Ojansivu 04bd60dd3f Keep cross-board move destinations reactive
Give move and copy dialogs an authorization-filtered destination subscription and query its Minimongo results reactively, so boards created through WeKan remain selectable. Replace the REST-only #2494 regression with a browser-driven board, list, card and Move Card workflow across all three engines.\n\nThanks to rlach and xet7 !\n\nFixes #2494,
2026-08-27 01:29:55 +03:00
Lauri Ojansivu 12f2fddc2c Fix OIDC and account metadata security boundaries.
Thanks to crypto-nidh and xet7 !
2026-08-26 22:41:44 +03:00
Lauri Ojansivu 88d37ae98a Reject stale LDAP passwords in REST email login
Apply the existing LDAP migration password guard before the REST route can check a local hash. Preserve uniform failure timing and cover the browser hook, REST ordering, and negative response wiring.

Thanks to akitzing and xet7 !

Fixes #4419,
2026-08-25 19:45:38 +03:00
Lauri Ojansivu b294ecfb01 Authenticate LDAP users through the REST login route
Route existing and first-time LDAP username credentials through Meteor server login handlers instead of requiring a local bcrypt password. Preserve uniform failures, throttling, two-factor checks, REST token creation, and local-password behavior.

Thanks to mariogalan, ViViDboarder, mgiacomoli, HaKePlan and xet7 !

Fixes #3707,
2026-08-25 19:29:41 +03:00
Lauri Ojansivu ca59a68fc7 Accept first CAS users without OAuth services
Guard the OIDC-only account normalization path when a custom login handler supplies no services object. The CAS handler already provides a validated username, verified email, profile and authentication method at the top level, so first login now reaches normal account insertion without fabricating OAuth data. Add positive wiring and negative account-conflict regressions.

Thanks to faelys, Meeques, jgribonvald and xet7 !

Fixes #3204,
2026-08-25 19:11:26 +03:00
Lauri Ojansivu ac0d9a3cd1 Save the first email on accounts without one
Treat a missing emails array as an empty profile address and let an authenticated user save their own email when Allow Email Change is enabled. Keep global administrators authorized, reject cross-user and disabled-setting writes, and store the new address unverified. Add focused and live Chromium regressions for the Sandstorm-shaped account.

Thanks to jpfleury and xet7 !

Fixes #2445,
2026-08-25 18:58:51 +03:00
Lauri Ojansivu c69bf503c3 Bound high-volume database queries
Scope attachment and checklist discovery to authorized boards, project only fields consumed by filename search, retain only the requested text-ranking window in memory, page Due Cards without truncating the result set, and add compound indexes for lazy and due-card query shapes.\n\nThanks to xet7 !
2026-08-25 15:40:39 +03:00
Lauri Ojansivu 00026ff231 Reduce FerretDB board publication polling
Default FerretDB launchers to adaptive card loading, keep unrelated public boards out of All Boards, index the narrowed query shapes, and share linked-card discovery within one composite parent evaluation without TTL authorization caching.

Thanks to xet7 !
2026-08-25 15:04:22 +03:00
Lauri Ojansivu a1dfa88b49 Report blocked security attempts
Add bounded, attributed Problems events for denied MiniProfileBleed, PositionHistoryBleed, and CasBleed attempts. Keep UserSearchBleed and SubtaskExportBleed silent because their safe paths are indistinguishable from ordinary use. Also prevent clients from rewriting validated position history.
2026-08-25 01:26:28 +03:00
Lauri Ojansivu 4ce5cf6e10 Fix six reported security issues
Authenticate and minimize user publications, escape and throttle user search, enforce board boundaries for position history and exports, and require explicit CAS account linking.

Thanks to Char0n1507, Reload3d, crypto-nidh and xet7 !
2026-08-25 01:04:52 +03:00
Lauri Ojansivu 6ec619e438 Bound platform resources and report runtime failures. 2026-08-23 00:16:15 +03:00
Lauri Ojansivu 1fa0b158ca Fix REST authorization and error handling.
Thanks to Char0n1507, senti-man and xet7 !
2026-08-22 23:50:26 +03:00
Lauri Ojansivu 216146edc9 Restrict Organization and Team DDP writes.
Thanks to Char0n1507 and xet7 !

Fixes GHSA-p4cq-83j9-7g73.
2026-08-21 23:41:09 +03:00
Lauri Ojansivu d1c75e9950 Use canonical REST board write access.
Thanks to Char0n1507 and xet7 !

Fixes GHSA-f396-42fx-vr88.
2026-08-21 23:08:34 +03:00
Lauri Ojansivu e062042c15 Require write access for ICS imports.
Thanks to Char0n1507 and xet7 !

Fixes GHSA-fpm6-r5fg-2mrg.
2026-08-21 22:54:42 +03:00
Lauri Ojansivu 394a89fbc3 Restore card history and destination lists.
Thanks to rmb82 and xet7 !

Fixes #6619,
Fixes #6620.
2026-08-21 22:48:57 +03:00
Lauri Ojansivu f9f9fa4c2d Finish browser regression corrections.
Refresh linked-card and date publications after async updates, keep popup keyboard focus contained, correct the phone board-list scroll chain, and make the browser regressions use stable interaction targets. Add coverage for linked-card fields and editing, existing dates, minicard title editing, popup focus, accessibility, and phone board grids.

Thanks to xet7 !
2026-08-19 02:17:23 +03:00
Lauri Ojansivu 491781c449 Restore the complete WeKan Node test suite.
Backfill the new default-on opened-card custom-fields setting for existing boards. Keep regression guards aligned with the intended visibility, date controls, resizable card width, supplied initials and board publication layout, and exclude downloaded Go toolchains from the FerretDB source scan.\n\nThanks to xet7 !
2026-08-19 00:10:46 +03:00
Lauri Ojansivu ff9d0bab8b Add country login locations to Admin Panel People.
Place a Location column immediately before account Status. Each user shows a flag and successful-login count for every country known from that user's addresses.

Clicking a country opens a Table.md report for that person. Its left menu lists countries busiest first, while the selected country shows city, IPv4, IPv6, and the person's first and last login times for each address. Search, pagination and Back use the shared table controls.

Location details are fetched once per People page and restricted through the same site-admin or tenant-admin scope as the People list. Unknown locations are not guessed, stale page responses are ignored, and new logins retain their supplied location on the per-user address tally.

Focused positive and negative coverage checks country totals, ordering, both address families, city rows, timestamps, menu/table wiring, authorization and missing geography.

Thanks to xet7 !
2026-08-18 23:07:48 +03:00
Lauri Ojansivu 3539f2bbf3 Group Admin Panel Offices login addresses by person.
Show each person's successful-login addresses together, with separate IPv4 and IPv6 columns, the latest country flag and city supplied by Cloudflare or another supported proxy, and that person's login count for each address.

Search continues to match usernames, full names, addresses and locations. Address metadata for each page is fetched in one batch, and people sharing an address remain separate groups with their own counts.

Focused coverage checks grouping, shared addresses, both address families, proxy location headers, missing locations and the person-first server response.

Thanks to xet7 !
2026-08-18 22:48:26 +03:00
Lauri Ojansivu 6a437ef31d Save currency custom field values.
Persist finite currency values through an acknowledged authorized server method, bind the input to the direct field value, and show the standard X close control beside Save.

Thanks to xet7 !
2026-08-18 19:33:48 +03:00
Lauri Ojansivu 49de60eb04 Edit linked card content from either board.
Delegate source-card edits through a visible active link when the user has write access on the board containing that link. Route content fields, attachments, checklists, subtasks, watchers, labels, custom fields, voting and poker to the source while retaining placement on the linked card.

Thanks to hever and xet7 !

Fixes #1995.
2026-08-18 18:45:14 +03:00
Lauri Ojansivu 8fac3ab891 Mirror every visible source field on linked cards.
Thanks to xet7 !
2026-08-18 18:32:38 +03:00
Lauri Ojansivu 798390c6fc Restore cross-board linked-card creation.
Thanks to ClemStrummer and xet7 !

Fixes #6613.
2026-08-18 18:10:47 +03:00
Lauri Ojansivu a7879012c9 Fix custom-field interactions and deleted-field exports.
Thanks to Heart1010 and xet7 !

Fixes #6611.
2026-08-18 18:10:47 +03:00
Lauri Ojansivu 0aad02722c Fix archived board deletion and bulk card archiving.
Archive board deletion is available through the gated, confirmed board
multi-selection action. Card multi-selection now uses one awaited and
server-authorized bulk archive operation, preserving the selection and showing
the server error when it fails.

Thanks to Nissulya and xet7 !

Fixes #6608.
2026-08-18 00:30:02 +03:00
Lauri Ojansivu 5a58328465 Check permanent-delete arguments before async work. 2026-08-18 00:17:42 +03:00
Lauri Ojansivu 5f1d422117 Filter Recovery events by operation outcome. 2026-08-17 23:58:04 +03:00
Lauri Ojansivu 7a0b7b7cdb Audit failed permanent-delete attempts with status and address.
Record successful, failed, and unauthorized permanent-delete attempts in Recovery with Boolean Done and deleted-data fields, actor ID and username, proxy-aware IPv4 or IPv6, and requested board IDs and titles. Render Done first with green success, red failure, and yellow deletion icons. Preserve original errors after recording failed attempts.

Thanks to xet7 !
2026-08-17 23:54:36 +03:00
Lauri Ojansivu 134bd48de5 Audit permanent-delete changes and board purges.
Route the Admin Panel permanent-delete toggle through a Global Admin-only server method and record actual enabled or disabled changes in Recovery with the actor username and ID. After each successful permanent board removal, record the actor plus board ID and title. Do not log no-op setting writes, failed removals, or unauthorized calls.

Thanks to xet7 !
2026-08-17 23:43:06 +03:00
Lauri Ojansivu 2eb3e0d4b8 Require the Global Admin flag for Archive deletion.
Require Users.isAdmin to be exactly true before showing the Archive Delete action or accepting its server method. Board-admin membership and truthy non-Boolean values do not satisfy the site-wide Global Admin gate.

Thanks to xet7 !
2026-08-17 23:32:31 +03:00
Lauri Ojansivu c1522ad2a6 Avoid throttling FerretDB when it is busy. 2026-08-17 23:07:50 +03:00