diff --git a/TODO.md b/TODO.md index 91f7f936ac..abe03dee42 100644 --- a/TODO.md +++ b/TODO.md @@ -19,3 +19,29 @@ the changelog only says what changed. - The WebKit stage cannot run in the Flatpak sandbox: MiniBrowser needs its own sandbox, and turning that off is not allowed there. Run it on a host. + +## Found while documenting the menus, to fix + +- Member menu / Edit Profile: with Admin Panel / People / Login **Username + change** allowed, a user's new username is not saved - `setUsername` + (`server/models/users.js`) writes only when the caller is a site admin, while + `setEmail` beside it allows a self change when the setting says so. The popup + closes as if it had saved. Found on 2026-11-19. +- Member menu / Support: the Support page template has a case for signed-out + visitors, but the `/support` route sends them to sign-in first, so that case is + never reached; and `supportPopup` with its `.js-support` handler is no longer + opened by the menu, which links to `/support`. Decide whether signed-out + visitors should see the page, and remove the unused popup. +- Card menu / Create board from this card: the entry sits under `unless + canModifyCard` in `cardDetailsActionsPopup` (`client/components/cards/ + cardDetails.jade`), so a member who can edit the card does not see it, while + the `createBoardFromCard` method requires write access. It was in both + branches when added (17c6d8d9b9); a later refactor kept only this one. Check in + the running app and restore it for members who can edit the card. +- Board menu / All Boards Settings: the board menu entry is commented out + ("Bug Board icons random dance", [#4214](https://github.com/wekan/wekan/issues/4214)), so the popup cannot be reached. +- Admin Panel / People / Shared templates: which group kinds the "Share template + with" picker offers comes from the browser's `localStorage` + (`sharedTemplatesScopes`), so it differs per browser and is empty in a browser + where the admin never ticked them. An instance setting belongs in Settings. + diff --git a/docs/API/Optional-APIs.md b/docs/API/Optional-APIs.md index 313d45f848..4859b6c365 100644 --- a/docs/API/Optional-APIs.md +++ b/docs/API/Optional-APIs.md @@ -1,6 +1,6 @@ # Optional APIs: Trello, Jira, GitHub and Gitea compatible -Admin Panel → Settings → Visibility → **Optional APIs** turns on REST APIs in +Admin Panel → Settings → Features → **Optional APIs** turns on REST APIs in the shape of other trackers' APIs (#4930). An app or script written for Trello, Jira, GitHub or Gitea can then use this WeKan as its backend: what it saves is stored in WeKan's database, on WeKan boards, and is seen in WeKan like any diff --git a/docs/Databases/FerretDB/1/Verified-Recovery.md b/docs/Databases/FerretDB/1/Verified-Recovery.md index c8ff2f6b90..105b2f1fe0 100644 --- a/docs/Databases/FerretDB/1/Verified-Recovery.md +++ b/docs/Databases/FerretDB/1/Verified-Recovery.md @@ -114,7 +114,7 @@ may mark an abandoned redo branch `superseded`. The existing filesystem-integrity inventory covers attachments and avatars. The same paced audit also covers registered logs and verified recovery generations. Missing files, changed sizes, invalid signed baselines and changed checksums are -reported in Admin Panel → Problems → Security. Intentional application deletion +reported in Admin Panel → Problems → Security Report. Intentional application deletion removes its inventory entry as part of the authorized operation and is not called tampering. diff --git a/docs/Design/Multitenancy/Multitenancy.md b/docs/Design/Multitenancy/Multitenancy.md index 5b672fd46d..b36c8419ce 100644 --- a/docs/Design/Multitenancy/Multitenancy.md +++ b/docs/Design/Multitenancy/Multitenancy.md @@ -364,7 +364,7 @@ never quietly narrowed. #### D.9 The singletons (problem 6) -Per-tenant branding reuses the fields Admin Panel / Settings / Visibility already +Per-tenant branding reuses the fields Admin Panel / Settings / Appearance already has: the org document carries an `org`-prefixed copy of each, and a non-empty one replaces the instance value for that tenant's requests (`tenantBranding()`), so no rendering code changed — the client reads the same @@ -382,7 +382,7 @@ host. | `orgLegalNotice` | the legal notice URL | **The site theme** is the one branding field an Organization's own admin sets from -the Admin Panel rather than from the org row: Admin Panel / Settings / Visibility / +the Admin Panel rather than from the org row: Admin Panel / Settings / Appearance / **Change color**, the same shared picker as Board Settings and Member Settings ([Change color](../../Features/General/Theme/Change-Color.md)). The site admin's pane says under the title that their colour is the one every Organization without one of its own inherits; an diff --git a/docs/Features/Admin-Panel/Admin-Panel-URLs.md b/docs/Features/Admin-Panel/Admin-Panel-URLs.md index 65c9728a9a..430d12a520 100644 --- a/docs/Features/Admin-Panel/Admin-Panel-URLs.md +++ b/docs/Features/Admin-Panel/Admin-Panel-URLs.md @@ -36,7 +36,12 @@ The bare `/admin/settings` still resolves; it *redirects* to | URL | Pane | Pane id | | --- | --- | --- | | `/admin/settings/version` | Version | `version-setting` | -| `/admin/settings/visibility` | Visibility | `tableVisibilityMode-setting` | +| `/admin/settings/appearance` | Appearance | `tableVisibilityMode-setting` | +| `/admin/settings/features` | Features | `features-setting` | +| `/admin/settings/feature-profiles` | Feature profiles | `feature-profiles-setting` | +| `/admin/settings/security` | Security | `privacy-security-setting` | +| `/admin/settings/activities` | Activities and notifications | `activities-setting` | +| `/admin/settings/delete` | Delete | `delete-setting` | | `/admin/settings/announcement` | Announcement | `announcement-setting` | | `/admin/settings/accessibility` | Accessibility | `accessibility-setting` | | `/admin/settings/translation` | Translation | `translation-setting` | @@ -75,9 +80,6 @@ OAuth providers and Passwordless login each have their own menu entry. | URL | Pane | Pane id | | --- | --- | --- | | `/admin/problems/summary` | Summary | `report-summary` | -| `/admin/problems/security` | Security | `features-security` | -| `/admin/problems/delete` | Delete | `features-delete` | -| `/admin/problems/notifications` | Notifications | `features-notifications` | | `/admin/problems/backup` | Backup (status and history; settings stay in Attachments / Backup) | `features-backup` | | `/admin/problems/security-report` | Security Report | `report-security` | | `/admin/problems/impersonation` | Impersonation Report | `report-impersonation` | @@ -179,6 +181,19 @@ They used to hand the pane over in a `Session` value the page consumed once. Every pane has an address now, so they redirect to it: the pane ends up in the URL, where it can be linked, bookmarked and gone back to. +### Panes that moved + +A pane that moved keeps its old address as a redirect, decided by `MOVED_PANES` +in `models/lib/adminUrls.js` (`movedPanePath`) and applied by the routes before +anything renders - both on the new form and on the old two-segment form: + +| Old URL | Redirects to | Since | +| --- | --- | --- | +| `/admin/settings/visibility` | `/admin/settings/appearance` | 2026-11-19 | +| `/admin/problems/security` | `/admin/settings/security` | 2026-11-19 | +| `/admin/problems/delete` | `/admin/settings/delete` | 2026-11-19 | +| `/admin/problems/notifications` | `/admin/settings/activities` | 2026-11-19 | + ## How a page opens the pane The route resolves the slug and puts the **pane id** in a Session value — diff --git a/docs/Features/Admin-Panel/Admin-Panel.md b/docs/Features/Admin-Panel/Admin-Panel.md index 8a1d8613e5..96147720bf 100644 --- a/docs/Features/Admin-Panel/Admin-Panel.md +++ b/docs/Features/Admin-Panel/Admin-Panel.md @@ -5,11 +5,25 @@ your member menu (top right). Site administrators have instance-wide access; Organization administrators have access only to their permitted scope. **The directory you are in mirrors the menu.** A menu path is a docs path: -Admin Panel / Settings / Visibility is -[`Settings/Visibility.md`](Settings/Visibility.md), Admin Panel / People / Teams is +Admin Panel / Settings / Appearance is +[`Settings/Appearance.md`](Settings/Appearance.md), Admin Panel / People / Teams is [`People/Teams.md`](People/Teams.md), and so on. The tab bar has four sections, and each has its own left menu — the shared design behind both is -[Left Menu](../All-Boards/Left-Menu.md). +[Left Menu](../All-Boards/Left-Menu.md). Every pane has its own address, +`/admin//` ([Admin Panel URLs](Admin-Panel-URLs.md)). + +**One question per tab:** + +| Tab | Answers | +| --- | --- | +| [Settings](Settings/README.md) | What does this WeKan offer, how does it look, and how does it behave? | +| [People](People/README.md) | Who may sign in, who do they belong to, and what may they do? | +| [Attachments](Attachments/README.md) | Where are files kept, how big may they be, and are they backed up? | +| [Problems](Problems/README.md) | What is going wrong, what is running, and what happened? | + +Which setting decides whether somebody sees or may use something - the instance, +a feature profile, the board, a role - is explained in one place: +[Who sees and can do what](Who-Sees-What.md). ## Settings @@ -19,12 +33,18 @@ running. [Section index](Settings/README.md). | Menu path | Page | | --- | --- | | Admin Panel / Settings / Version | [Version.md](Settings/Version.md) | -| Admin Panel / Settings / Visibility | [Visibility.md](Settings/Visibility.md) | +| Admin Panel / Settings / Appearance | [Appearance.md](Settings/Appearance.md) | +| Admin Panel / Settings / Features | [Features.md](Settings/Features.md) | +| Admin Panel / Settings / Feature profiles | [Feature-Profiles.md](Settings/Feature-Profiles.md) | +| Admin Panel / Settings / Security | [Security.md](Settings/Security.md) | +| Admin Panel / Settings / Activities and notifications | [Activities-and-Notifications.md](Settings/Activities-and-Notifications.md) | +| Admin Panel / Settings / Delete | [Delete.md](Settings/Delete.md) | | Admin Panel / Settings / Announcement | [Announcement.md](Settings/Announcement.md) | | Admin Panel / Settings / Accessibility | [Accessibility.md](Settings/Accessibility.md) | | Admin Panel / Settings / Translation | [Translation.md](Settings/Translation.md) | | Admin Panel / Settings / PWA | [PWA.md](Settings/PWA.md) | | Admin Panel / Settings / Global Webhooks | [Global-Webhooks.md](Settings/Global-Webhooks.md) | +| Admin Panel / Settings / Shared labels | [Shared-Labels.md](Settings/Shared-Labels.md) | ## People @@ -33,7 +53,6 @@ Who may sign in, who they belong to, and what they may do. | Menu path | Page | | --- | --- | -| Admin Panel / People / Login | [Login.md](People/Login.md) | | Admin Panel / People / E-mail | [E-mail.md](People/E-mail.md) | | Admin Panel / People / Notifications | [Notifications.md](People/Notifications.md) | | Admin Panel / People / Domains | [Domains.md](People/Domains.md) | @@ -41,8 +60,14 @@ Who may sign in, who they belong to, and what they may do. | Admin Panel / People / Teams | [Teams.md](People/Teams.md) | | Admin Panel / People / People | [People.md](People/People.md) | | Admin Panel / People / Locked Users | [Locked-Users.md](People/Locked-Users.md) | +| Admin Panel / People / Audit log | [Audit-Log.md](People/Audit-Log.md) | | Admin Panel / People / Roles | [Roles.md](People/Roles.md) | | Admin Panel / People / Shared templates | [Shared-Templates.md](People/Shared-Templates.md) | +| Admin Panel / People / Login | [Login.md](People/Login.md) | +| Admin Panel / People / SAML, LDAP, OAuth2, CAS, Header login, OAuth login providers, Passwordless login | [Login.md](People/Login.md#provider-settings) | + +The People, Teams and Organizations tables also show the +[feature profile](Settings/Feature-Profiles.md) that applies. ## Attachments @@ -55,10 +80,11 @@ in menu order, starting with **Backup**, which is also the pane that opens. Instance health: what is broken, what is running, and the paginated report tables. [Section index](Problems/README.md). -The left menu is two named groups. **Settings** — Security and Notifications, the -two panes that came from the removed Features tab. **Reports** — Security Report, -Impersonation Report, Performance, Speed, Tests, CPU usage, Broken Cards, Files, -Rules, Boards, Cards and Recovery. Every report is one shared +**Summary** first, then **Backup** (did the backup work), then the **Reports** +group: Security Report, Impersonation Report, Password length, Performance, Speed, +Tests, CPU usage, Memory usage, Disk usage, Instrumentation, Broken Cards, Files +Report, Rules Report, Boards Report, Cards Report, Recovery, Offices, API, +Database problems, Filesystem integrity and Email. Every report is one shared [table page](../General/Table.md): a search box, a total, `page X / N` and prev/next. @@ -69,20 +95,28 @@ Auth) and SMTP are handled by Sandstorm itself: you add and remove users there. is no longer a **Sandstorm** pane in Attachments — see [Attachments](Attachments/README.md#sandstorm--removed-from-the-menu). -## Two panes that are gone +## Panes that moved or are gone -- **Features** — removed. Performance, Security and Notifications are panes of - Admin Panel / Problems now. -- **Accounts** — removed. Its three settings live with what they are about: Allow - e-mail change in [People / E-mail](People/E-mail.md), Username change and Self - delete user account in [People / Login](People/Login.md). +When following an older link or bookmark - every old address redirects: -Renames to know when following an older link: **Layout** is -[PWA](Settings/PWA.md) — its branding and All Boards settings moved to -[Visibility](Settings/Visibility.md); **Boards visibility** is -[Visibility](Settings/Visibility.md); **Registration** is -[People / Login](People/Login.md); **Info** is -[Settings / Version](Settings/Version.md). +- **Settings / Visibility** (2026-11-19) is [Appearance](Settings/Appearance.md); + its Features group is [Features](Settings/Features.md) and its feature profiles + are [Feature profiles](Settings/Feature-Profiles.md). +- **Problems / Security, Delete and Notifications** (2026-11-19) are + [Settings / Security](Settings/Security.md), + [Settings / Delete](Settings/Delete.md) and + [Settings / Activities and notifications](Settings/Activities-and-Notifications.md): + they are settings, not reports. +- **Features** tab — removed (2026-07); its panes went to Problems, and from there + to Settings as above. Performance is still a Problems report. +- **Accounts** tab — removed. Its three settings live with what they are about: + Allow e-mail change in [People / E-mail](People/E-mail.md), Username change and + Self delete user account in [People / Login](People/Login.md). +- **Layout** is [PWA](Settings/PWA.md) — its branding and All Boards settings moved + to [Appearance](Settings/Appearance.md). **Boards visibility** is + [Appearance](Settings/Appearance.md). **Registration** is + [People / Login](People/Login.md). **Info** is + [Settings / Version](Settings/Version.md). ## Related @@ -95,5 +129,5 @@ Renames to know when following an older link: **Layout** is ## Implementation validation -[Validation report](Validation.md): all 48 panes, backup fixes, test evidence -and external-service verification limits. +[Validation report](Validation.md): the panes, backup fixes, test evidence and +external-service verification limits. diff --git a/docs/Features/Admin-Panel/People/Organizations.md b/docs/Features/Admin-Panel/People/Organizations.md index 7cbe3deb99..5f3970eabd 100644 --- a/docs/Features/Admin-Panel/People/Organizations.md +++ b/docs/Features/Admin-Panel/People/Organizations.md @@ -48,7 +48,7 @@ branding and its own administrators. It is off unless the server is started with corner logo, the custom help link and the legal notice URL. Each one that is set replaces the instance value on this Organization's domains; each one left empty keeps the instance value. The **theme colour** is set in - [Settings / Visibility / Change color](../Settings/Visibility.md) instead, by that + [Settings / Appearance / Change color](../Settings/Appearance.md#change-color) instead, by that Organization's own admin. Deactivating an Organization takes its domains off the air without losing any of this. diff --git a/docs/Features/Admin-Panel/Problems/Boards-Report.md b/docs/Features/Admin-Panel/Problems/Boards-Report.md new file mode 100644 index 0000000000..42ef86b5c3 --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Boards-Report.md @@ -0,0 +1,36 @@ +# Admin Panel / Problems / Boards Report + +Every board on the instance, with its visibility, members, organizations and +teams. Address: `/admin/problems/boards`. Site administrators only, and over +the whole instance, not only the boards the administrator is a member of. + +## The table + +The shared [table page](../../General/Table.md), 10 rows a page, in the boards' +default sort order, fetched one page at a time from the server +(`boardsReport` publication, `getBoardsReportCount` method, +`server/publications/boards.js`): + +| Column | Holds | +| --- | --- | +| Title | shortened to 30 characters | +| Id | the board id | +| Permission | `public`, `instance` or `private` | +| Archived? | Yes or No | +| Members | user names of the active members; a removed member is not listed ([#5122](https://github.com/wekan/wekan/issues/5122)) | +| Organizations | the organizations the board is shared with | +| Teams | the teams the board is shared with | + +## Search and filter + +- The search box applies when Enter is pressed and matches the board title, + case-insensitively. +- **Permission** - All, Public, Instance or Private - narrows the list to boards + of that visibility and starts again from page 1. + +The pane is read-only. + +## Related + +- [Organizations](../People/Organizations.md) and [Teams](../People/Teams.md) +- [Cards Report](Cards-Report.md) diff --git a/docs/Features/Admin-Panel/Problems/Broken-Cards.md b/docs/Features/Admin-Panel/Problems/Broken-Cards.md new file mode 100644 index 0000000000..b8ed7920a0 --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Broken-Cards.md @@ -0,0 +1,36 @@ +# Admin Panel / Problems / Broken Cards + +Cards that cannot be shown on a board as they are. Address: +`/admin/problems/broken-cards`. Site administrators only, over every board of +the instance, whether or not the administrator is a member. + +## What counts as broken + +A card that has no board, no swimlane or no list (the field is missing or +empty), or whose type is not one of the card types WeKan knows +(`BROKEN_CARDS_SELECTOR` in `server/publications/cards.js`). + +## The table + +The shared [table page](../../General/Table.md), 10 rows a page, sorted by +board and then newest first, fetched one page at a time from the server +(`brokenCardsReport` publication, `getBrokenCardsReportCount` method): + +| Column | Holds | +| --- | --- | +| Card Title | shortened to 30 characters | +| Id | the card id | +| Board, Swimlane, List | the titles of those that exist; an empty cell is the part that is missing | +| Type | the card's type | +| Created at | when the card was created | + +The search box applies when Enter is pressed and matches the card title, +case-insensitively. + +## Repairing + +This pane only lists. The repair is on [Summary](Summary.md): the +**Broken cards** problem there has a **Repair broken cards** button, which runs +the repair over every board and says how many cards it fixed and how many have +no board at all and cannot be placed anywhere. Opening a board also repairs its +own cards ([Repairs.md](Repairs.md)). diff --git a/docs/Features/Admin-Panel/Problems/Cards-Report.md b/docs/Features/Admin-Panel/Problems/Cards-Report.md new file mode 100644 index 0000000000..b2040f8f84 --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Cards-Report.md @@ -0,0 +1,30 @@ +# Admin Panel / Problems / Cards Report + +Every card on the instance, with where it is and who is on it. Address: +`/admin/problems/cards`. Site administrators only, over every board, whether or +not the administrator is a member. + +## The table + +The shared [table page](../../General/Table.md), 10 rows a page, sorted by +board and then newest first, fetched one page at a time from the server +(`cardsReport` publication, `getCardsReportCount` method, +`server/publications/cards.js`). Only the columns below are sent, not whole +card documents: + +| Column | Holds | +| --- | --- | +| Card Title | shortened to 30 characters | +| Board, Swimlane, List | the titles of each | +| Members | user names of the card's members | +| Assignees | user names of the card's assignees | + +The search box applies when Enter is pressed and matches the card title, +case-insensitively. The total is counted once when the pane opens or the search +changes, not on every page. The pane is read-only. + +## Related + +- [Broken Cards](Broken-Cards.md) - the cards that are missing a board, swimlane + or list. +- [Boards Report](Boards-Report.md) diff --git a/docs/Features/Admin-Panel/Problems/Database-problems.md b/docs/Features/Admin-Panel/Problems/Database-problems.md new file mode 100644 index 0000000000..5f225de36a --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Database-problems.md @@ -0,0 +1,62 @@ +# Admin Panel / Problems / Database problems + +What the database said, read for the administrator: which database said it, +what it means, and what to do. Address: `/admin/problems/database`. Site +administrators only. + +## Where the rows come from + +The `database` stream of the `eventlog` collection, written by +`server/lib/databaseProblems.js`: + +- **What the database said.** Every uncaught error of a method or publication + passes `Meteor._debug`; one whose text looks like a database or process + resource failure (MongoDB, SQLite, PostgreSQL, MySQL, MariaDB, SAP HANA, + `SQLSTATE`, out of memory, `EMFILE`, read-only filesystem, a malformed + database image, an oversized document) is recorded. The startup, process + error and busy-write retry handlers record theirs too. +- **What WeKan measured.** The database health probe + (`server/lib/databaseHealth.js`, at startup and every five minutes on one + server of the installation) records restarts, a data directory on a network + filesystem, storage latency and disk space running out; startup records an + index it had to create (`server/lib/mongoStartup.js`). + +Each message is classified by the pure rules in `models/lib/databaseErrors.js` +(for example `connection-lost`, `disk-full`, `auth-failed`, `mysql-syntax`, +`deadlock`, `timeout`, `duplicate-key`, `database-corrupt`, +`memory-exhausted`, and `unclassified` for anything no rule knows). The same +problem on the same database is recorded at most once a minute. + +A FerretDB **canary** - an operation WeKan never issues, such as server-side +JavaScript, dropping a database or SQL that looks injected - is not a database +problem: it goes to the [Security Report](Security-Report.md) instead. + +## The table + +The same read-only event table as the other streams +([Security Report](Security-Report.md)), newest first, 10 rows a page, with a +search box that filters as you type. On this stream: + +| Column | Holds | +| --- | --- | +| Category | which database: `mongodb`, `sqlite`, `postgresql`, `mysql`, `mariadb`, `hana` or `unknown` | +| Name | the kind of problem, for example `disk`, `auth`, `syntax`, `timeout` or `health` | +| Severity | the rule's severity | +| Action | the classifier's rule id | +| Source | the operation, or `Meteor._debug`, or `health` | +| Detail | what it means and what to do, then `—` and what the database itself said | + +The search also finds the database name, the rule id and words of the +database's own message. + +Acknowledge or clear the stream on [Summary](Summary.md). Rows older than +`EVENTLOG_RETENTION_DAYS` (default 90) are deleted daily. The rows are also on +`GET /api/admin/problems/database` +([REST API](../../../API/REST-API.md#admin-panel-problems)). + +## Related + +- [Supported databases](../../../Databases/Supported.md) +- [Recovery.md](Recovery.md) - SQLite corruption and the recovery history. +- [FerretDB remediation design](../../../Security/Remediation/FerretDB.md) - + the database canaries. diff --git a/docs/Features/Admin-Panel/Problems/Filesystem-integrity.md b/docs/Features/Admin-Panel/Problems/Filesystem-integrity.md new file mode 100644 index 0000000000..35aa430648 --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Filesystem-integrity.md @@ -0,0 +1,56 @@ +# Admin Panel / Problems / Filesystem integrity + +Whether this server stopped cleanly, what crashed it, and whether the +continuous backup failed - plus the read-only file status checks. Address: +`/admin/problems/integrity`. Site administrators only. + +## File status checks + +At the top of the pane, the same checks as on the Files Report and Recovery +panes: **Check files and history**, **Check file types and extensions** and +**Check missing and untracked files**, with **Cancel check** while one runs and +**Download status summary** when one has finished. They change no file and no +record. See [File-status.md](File-status.md). + +## Where the rows come from + +The `integrity` stream of the `eventlog` collection: + +| Name | Severity | Recorded when | Written by | +| --- | --- | --- | --- | +| `DowntimeBleed` (category `availability`) | `high` | the previous run left no clean-shutdown mark and the server was down for more than three minutes: a crash | `server/lib/uptimeWatch.js` | +| `DowntimeBleed` (category `availability`) | `low` | no clean-shutdown mark, but back within three minutes: a quick restart | `server/lib/uptimeWatch.js` | +| `CrashBleed` (category `crash`) | `critical` | an uncaught exception or an unhandled promise rejection, with its message | `server/lib/uptimeWatch.js` | +| `ContinuousBackup` (category `backup`) | `high` | the continuous backup stream failed | `server/continuousBackup.js` | + +WeKan writes a heartbeat every minute and marks a clean stop on `SIGTERM` or +`SIGINT`; the next start compares the two. A clean stop and a first run are not +recorded. A database that is only momentarily unreachable is not a crash: it is +recorded on [Database problems](Database-problems.md) instead. + +The daily scan of stored files (same name, size, modification time, md5, +sha256 and sha512, signed with ed25519) and the hourly change history audit +report what they find to the [Security Report](Security-Report.md), as +**StorageBleed** and **HistoryIntegrity**, not to this stream. They can be +turned off with `WEKAN_INTEGRITY_SCAN=false` and +`WEKAN_HISTORY_INTEGRITY_SCAN=false`; `WEKAN_INTEGRITY_PRIVATE_KEY` supplies the +signing key instead of one generated and kept in the database. + +## The table + +The same read-only event table as the other streams +([Security Report](Security-Report.md)): Date and time, Category, Name, +Severity, Action, Source, Username, IPv4, Location, IPv6, Location, Attempts +and Detail, newest first, 10 rows a page, with a search box that filters as you +type. + +Acknowledge or clear the stream on [Summary](Summary.md). Rows older than +`EVENTLOG_RETENTION_DAYS` (default 90) are deleted daily. The rows are also on +`GET /api/admin/problems/integrity` +([REST API](../../../API/REST-API.md#admin-panel-problems)). + +## Related + +- [Security remediation design](../../../Security/Remediation/WeKan.md), + section 13. +- [Continuous backup](../../../Backup/Backup.md) diff --git a/docs/Features/Admin-Panel/Problems/Impersonation-Report.md b/docs/Features/Admin-Panel/Problems/Impersonation-Report.md new file mode 100644 index 0000000000..f91656adf6 --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Impersonation-Report.md @@ -0,0 +1,41 @@ +# Admin Panel / Problems / Impersonation Report + +Every time an administrator acted as another user, and why. Address: +`/admin/problems/impersonation`. Site administrators only: the publication +sends nothing, and the count method refuses, for anybody who is not +`isAdmin`. + +## Where the rows come from + +The `impersonatedUsers` collection. A row is written when: + +| Reason | Written when | +| --- | --- | +| `clickedImpersonate` | an administrator impersonates a user from Admin Panel / People (the `impersonate` method) | +| `restCreateToken: ` | an administrator creates a login token for another user through the REST API; the reason is required and kept, up to 500 characters | +| `exportJSON`, `exportJSONattachment`, `exportExcel`, `exportExcelCard`, `exportCardPDF`, or the export type | a board, card or attachment is exported while impersonating, with the board it was exported from | + +Nothing in this pane deletes or changes a row. + +## The table + +The shared [table page](../../General/Table.md), newest first, 10 rows a page, +fetched one page at a time from the server (`impersonationReport` publication, +`getImpersonationReportCount` method): + +| Column | Holds | +| --- | --- | +| Date | when it happened | +| Admin | the administrator; click the name for the Edit user popup | +| Impersonated user | the user acted as, when there was one; click for Edit user | +| Board | the board id, for exports | +| Reason | one of the reasons above | + +The search box applies when Enter is pressed. It matches, case-insensitively, +the admin, user, board and attachment ids and the reason +(`models/lib/impersonationReportQuery.js`) - ids, not user names. + +## Related + +- [People](../People/People.md) - where impersonation starts. +- [REST API](../../../API/REST-API.md) diff --git a/docs/Features/Admin-Panel/Problems/Performance.md b/docs/Features/Admin-Panel/Problems/Performance.md new file mode 100644 index 0000000000..fe6f9dd3d5 --- /dev/null +++ b/docs/Features/Admin-Panel/Problems/Performance.md @@ -0,0 +1,36 @@ +# Admin Panel / Problems / Performance + +How WeKan loads a board's cards. Address: `/admin/problems/performance`. Site +administrators only. The pane is a description, with nothing to click or +save: it sits beside Speed, Tests and CPU usage because it is what decides how +much a big board costs to open. + +## What it says + +**Card loading** is automatic, per board, by size (`models/lib/cardsLoading.js`): + +- a board with more than the threshold of cards (default **500**) loads lazily: + each list loads only the cards that are visible (infinite scroll) and the + counts come from the server; +- a smaller board loads every card, for the simplest and fully featured + behaviour. + +## Environment variables + +There is no setting in the Admin Panel. Operators can force a mode: + +| Variable | Values | Default | +| --- | --- | --- | +| `CARDS_LOADING` | `auto`, `all` or `lazy`; anything else is `auto` | `auto` | +| `CARDS_LOADING_LAZY_THRESHOLD` | a card count; `0` makes every `auto` board lazy; an invalid or negative value is the default | `500` | + +`all` sends every non-archived card of a board to each viewer; filtering, +search, counts, sorting and drag and drop then run in the browser. `lazy` +sends only the visible window of each list, through a windowed publication per +list. + +## Related + +- [Large-Boards.md](Large-Boards.md) - what a large board loads, and the + measurements behind the threshold. +- [Speed](Speed.md) and [CPU usage](CPU-usage.md). diff --git a/docs/Features/Admin-Panel/Problems/README.md b/docs/Features/Admin-Panel/Problems/README.md index 6ff2c5687e..bc0bf547ad 100644 --- a/docs/Features/Admin-Panel/Problems/README.md +++ b/docs/Features/Admin-Panel/Problems/README.md @@ -18,60 +18,53 @@ stream, `GET /api/admin/problems/:stream` one page of a stream, and ## The Status overview (Problems → Summary) -The **Summary** tab shows a **Status** overview at the top: +The **Summary** pane ([Summary.md](Summary.md)) shows a **Status** overview at +the top: - **In progress** — every migration or repair running right now (database text - migration, board data-repair, recovery/maintenance, cron migration, attachment - migration), gathered from the persisted status collections so it is accurate even - across a restart. -- **Problems** — detected issues: broken cards, and any failing login-page check. -- **Login page checks** — the known causes that make the login page show - **"Must be logged in"** or sit on the logo + **"Loading, please wait."** spinner - (see **[Login-Problems.md](Login-Problems.md)**). + migration, board data-repair, recovery/maintenance, attachment migration), + gathered from the persisted status collections so it is accurate even across + a restart. +- **Problems** — detected issues: broken cards, lists missing their swimlane, a + failed or overdue backup, data health findings, and any failing login-page + check — the known causes that make the login page show **"Must be logged + in"** or sit on the logo + **"Loading, please wait."** spinner (see + **[Login-Problems.md](Login-Problems.md)**). -Below that is the acknowledge list of the Security / Speed / Tests problem streams. -The Security Report also records denied passwordless code requests after five -requests per source address in one minute. Meteor's per-connection Accounts -limit still applies independently. -Attempts that Meteor 3.5.3's security fixes refuse - a crashing DDP message, -a `__proto__` update field, a malformed `import()` request, an OAuth token of -another application - are recorded as **Meteor DDP**, **Meteor allow-deny**, -**Meteor dynamic-import** and **Meteor OAuth** -([details](../../../Security/Meteor-3.5.3-Security-Fixes-2026-10-22.md)). -An import or export refused by the transfer boundary (a cycle, a non-plain -object, a size limit) is **ImportExportValidation**. One that failed for -another reason - a library that threw, as sanitize-html 2.18.0 did on nested -`