379 Commits
Author SHA1 Message Date
github-actions[bot] f8bd3f21ae Bump versions for v10.39 2026-07-26 17:34:45 +00:00
github-actions[bot] dfb2ae2957 Bump versions for v10.38 2026-07-26 12:25:27 +00:00
Lauri Ojansivu 36b899b9d6 Multitenancy: one WeKan server for many domains, with Organizations as tenants.
Implements option D of docs/Design/Multitenancy/Multitenancy.md, which that
document now describes as shipped.

An Organization may claim hostnames (Admin Panel / People / Organizations ->
Edit), carry its own branding - product name, logos, help link, legal notice and
theme colour - and have its own Organization admins, appointed from the row's
"..." menu. The request's host picks the Organization; its branding replaces the
instance branding for that request, and the client bundle that host serves points
its DDP connection back at that host instead of at the one ROOT_URL.

An Organization admin administers their own Organization and nothing else: its
people, its Organizations row, its theme colour and its backups. They can never
grant the site-wide Admin flag, never manage a site admin, and never see another
Organization's people or archives.

Per-tenant backup and restore is one new control in Admin Panel / Attachments /
Backup - Scope. An Organization's archive holds its boards and everything on them
plus the attachments those boards use, and no accounts, no instance settings and
no org/team documents, because those are shared. A restore may only write to
boards that Organization owns: the board ids are the intersection of what the
archive claims with what the Organization really owns, every document is checked
against that, and "replace all" replaces that Organization's documents rather
than everyone's.

Admin Panel / Settings / Visibility gains a Change color section above Logo: the
site theme, rendered by the SAME shared picker as Board Settings and Member
Settings - one template for all three, the way one shared table page serves every
table. Its design is the new docs/Design/Page/Theme.md. The order of themes is
WeKan's default theme, then the site theme (an Organization's own value on its own
hosts), then a user's own override; a board's own colour still owns the board page.

All of it is OFF unless the server is started with MULTITENANCY=true (plus
MULTITENANCY_TRUST_PROXY_HOST=true when a trusted proxy sets X-Forwarded-Host), so
an instance that has never heard of tenants answers exactly as before. One WeKan
server per customer remains the supported topology for customers who must not
share a process, and the design says plainly what this does NOT isolate.

The decisions are three pure modules - models/lib/tenants.js, tenantAdmin.js and
tenantBackup.js - so the same rules run on the client, on the server and in the
tests. Four new suites pin the separation rather than the plumbing: forged Host
headers, cross-tenant queries, privilege escalation and cross-tenant restores.

Thanks to xet7 !
2026-07-26 07:48:18 +03:00
Lauri Ojansivu fd12199e9d Design: one WeKan server for many domains, and what each alternative costs.
docs/Design/Multitenancy/Multitenancy.md. The shipped topology
(docs/Platforms/FOSS/Docker/Meteor3/) runs one WeKan Node.js server per customer:
one ROOT_URL, one database, one uws.port and one upgrade each. This designs the
alternatives to that - one server serving many domains - and says what each one
would cost, from WeKan's own code rather than in the abstract.

Six things one process must solve, with the Meteor 3 API for each: resolving the
tenant from the Host header (Meteor.onConnection gives httpHeaders, cookies
excluded; behind a proxy it is X-Forwarded-Host, and a forgeable header is a data
leak); the client bundle's baked-in ROOT_URL (WebApp.addRuntimeConfigHook rewrites
__meteor_runtime_config__ per request - and was broken in Meteor 3.0 alpha/beta/rc
until meteor#13156, which any use of it has to state a minimum version for);
server-side absolute URLs (Meteor.absoluteUrl's {rootUrl} override, and the handful
of WeKan call sites - universalUrlGenerator.js already builds relative URLs and is
the model); the data itself; accounts; and the eight settings singletons plus the
~102 process.env reads that are per-process today.

Four alternatives, compared in a table: one process per tenant (today), one
database with a tenant field (mizzao:partitioner from Meteor-Community-Packages,
Meteor 3 async), a database per tenant in one process (MongoInternals.
RemoteCollectionDriver), and Organizations as tenants - which is the one WeKan
already half has, since orgs, teams, their membership and the same-Organization /
same-Team board restriction all exist and are enforced server-side.

The recommendation is to keep one process per tenant as the supported topology and
reach for Organizations when the tenants are groups of one organisation: the other
two trade an operational cost that is merely tedious for a failure mode - a missed
selector on one of 46 collections or 66 publications - that is silent
cross-tenant disclosure. With, if it is ever attempted, the order that keeps it
honest: resolve the tenant once, do the settings singletons first because they
prove the pattern end to end, content collections only then with a test per
publication, and accounts last or not at all.

Linked from the two guides it is about and from the Scaling section of
docs/README.md.

Thanks to xet7 !
2026-07-26 05:43:37 +03:00
github-actions[bot] 90d9fb99e4 Bump versions for v10.37 2026-07-24 23:58:19 +00:00
github-actions[bot] 917a484ff3 Bump versions for v10.36 2026-07-24 21:54:51 +00:00
github-actions[bot] 66fb87a3fa Bump versions for v10.35 2026-07-24 18:20:12 +00:00
Lauri Ojansivu c29f5c7a66 Rename the dev helper rebuild-wekan.sh/.bat -> build.sh/.bat (shorter name).
Renames rebuild-wekan.sh -> build.sh, rebuild-wekan.bat -> build.bat, and the
guard test tests/rebuildWekanDevServer.test.cjs -> tests/buildDevServer.test.cjs,
and updates every reference across the repo: the docs (Build-from-source, Windows,
Sandstorm, Raspberry Pi, virtual-appliance, Debugging, Developer-Documentation,
FerretDB, OpLog, Rclone, Emoji, Multiverse roadmap, Security remediation, Tests),
README.md, CONTRIBUTING.md, CLAUDE.md, package.json (test:unit:node), the release
scripts (release-all.sh, fix-changelog-hashes.sh, node-update.sh), the disabled
playwright workflow, playwright.config.js, the REST spec comment, tools/forge-mirror.js,
and the CHANGELOG. The menu and every option are unchanged; only the filename and
its references. The website has no references.

Thanks to xet7 !
2026-07-24 19:32:24 +03:00
github-actions[bot] d2a80eacf4 Bump versions for v10.34 2026-07-24 07:20:00 +00:00
github-actions[bot] de1819ff53 Bump versions for v10.33 2026-07-23 19:25:30 +00:00
github-actions[bot] 4f0906691f Bump versions for v10.32 2026-07-23 17:23:51 +00:00
github-actions[bot] ce10cda9a9 Bump versions for v10.31 2026-07-23 13:48:46 +00:00
github-actions[bot] 37b0017c3d Bump versions for v10.30 2026-07-23 11:13:55 +00:00
github-actions[bot] 463be75174 Bump versions for v10.29 2026-07-23 09:36:16 +00:00
github-actions[bot] 05cdf5d4b2 Bump versions for v10.28 2026-07-23 08:04:37 +00:00
github-actions[bot] 8303c68c53 Bump versions for v10.27 2026-07-22 21:58:15 +00:00
github-actions[bot] 1697584693 Bump versions for v10.26 2026-07-22 18:55:17 +00:00
github-actions[bot] 0c5208cf73 Bump versions for v10.25 2026-07-22 17:55:31 +00:00
github-actions[bot] f47b7cb78a Bump versions for v10.24 2026-07-22 15:37:29 +00:00
github-actions[bot] a1f93c8015 Bump versions for v10.23 2026-07-22 15:12:36 +00:00
github-actions[bot] 8a8ef49c4a Bump versions for v10.22 2026-07-22 14:21:11 +00:00
github-actions[bot] 14b54e3066 Bump versions for v10.21 2026-07-22 10:42:59 +00:00
github-actions[bot] 9287596a72 Bump versions for v10.20 2026-07-22 10:05:55 +00:00
github-actions[bot] 586620e329 Bump versions for v10.19 2026-07-22 09:40:18 +00:00
github-actions[bot] 45e5401936 Bump versions for v10.18 2026-07-22 09:18:08 +00:00
github-actions[bot] 6be85973b3 Bump versions for v10.17 2026-07-22 08:29:36 +00:00
github-actions[bot] 8f2189a66f Bump versions for v10.16 2026-07-22 07:38:52 +00:00
github-actions[bot] ad9e7752b8 Bump versions for v10.15 2026-07-22 07:17:28 +00:00
github-actions[bot] 3e1a1f4917 Bump versions for v10.14 2026-07-22 06:23:12 +00:00
github-actions[bot] f32e389cef Bump versions for v10.13 2026-07-21 21:05:02 +00:00
github-actions[bot] af57799765 Bump versions for v10.12 2026-07-21 20:44:52 +00:00
github-actions[bot] 5b8dae9b3f Bump versions for v10.11 2026-07-21 10:05:13 +00:00
Lauri Ojansivu 3d7ef849ba Sandstorm: fix "cannot open embedded page" error during grain migration
On a grain's first launch after upgrade, sandstorm-src/start.js migrates the old
MongoDB data to FerretDB v1 (SQLite) before starting WeKan. While nothing was
listening on the grain's app port (during migration and the handoff to WeKan),
sandstorm-http-bridge got connection-refused and the browser showed "This page
can not be displayed embedded in another page"; the user had to close the grain
and open it again.

start.js now runs migration-bridge.js as a child process on the app port that
answers every URL with a small auto-refreshing "please wait" page (HTTP 503), so
the grain stays framed until WeKan is up. It is a separate process on purpose:
start.js runs the migration with blocking spawnSync, so it could neither service
an in-process server nor release its listening socket before the importer/Meteor
bind the port -- killing a child is a definitive socket close. The bridge starts
before migration, YIELDS the port around the importer (which serves its own
progress dashboard there), resumes for the handoff, and is released just before
Meteor binds the port. Every use is best-effort (guarded by existsSync, error
handlers, killed on grain exit) so it can never break grain startup.
build-deps.sh ships migration-bridge.js next to start.js in the deps payload.

Thanks to xet7 !
2026-07-21 10:06:41 +03:00
github-actions[bot] d5ffad31ac Bump versions for v10.10 2026-07-21 03:35:20 +00:00
github-actions[bot] 9f861e071f Bump versions for v10.09 2026-07-21 02:15:00 +00:00
github-actions[bot] 4200b6cfc1 Bump versions for v10.08 2026-07-20 23:29:51 +00:00
github-actions[bot] 0d3f3b9788 Bump versions for v10.07 2026-07-20 20:07:34 +00:00
github-actions[bot] f358d19adc Bump versions for v10.06 2026-07-20 17:38:19 +00:00
github-actions[bot] 5e9d030c91 Bump versions for v10.05 2026-07-20 16:33:43 +00:00
github-actions[bot] a47805bc83 Bump versions for v10.04 2026-07-20 13:07:06 +00:00
Lauri Ojansivu 54cc0ec614 docs: organize docs/Features into categories and update all links
Move the flat feature docs and feature subdirectories under category
parents: Admin-Panel/ (+ Problems/), Board/, Cards/, Editor/, Reports/,
Automation/, Lists/, Troubleshooting/. Every relative markdown link in
docs/ (and the docs GitHub URLs in CHANGELOG.md and the code-span path
in Undo.md) is recomputed so it still resolves to the same target after
the move.

Done with a scripted move + relative-link rewriter that verifies link
integrity: all 160 rewritten links resolve, and a full scan confirms the
reorg introduces zero new broken docs-internal links (the pre-existing
53 unrelated to the move are unchanged).
2026-07-20 13:37:44 +03:00
github-actions[bot] 0114181115 Bump versions for v10.03 2026-07-19 19:47:10 +00:00
github-actions[bot] bbcbee41c9 Bump versions for v10.02 2026-07-19 01:16:57 +00:00
Lauri Ojansivu 48a60a1141 Docs: move the auto-update dev docs into Design/Autoupdate/. 2026-07-18 23:22:19 +03:00
Lauri Ojansivu 3bfc6cce56 Docs: Windows install & update platforms (manual vs automatic, like Snap). 2026-07-18 23:22:19 +03:00
Lauri Ojansivu 8cf7dd68cc Docs: move Mac.md into Propietary/Mac/ and update all links to the new path. 2026-07-18 23:22:19 +03:00
Lauri Ojansivu 742fc9221a Docs: why ppc64el/s390x snap builds fail on core24 (multiarch action caps at core22). 2026-07-18 23:22:19 +03:00
github-actions[bot] add47dc065 Bump versions for v10.01 2026-07-18 19:01:13 +00:00
github-actions[bot] 356b1152bb Bump versions for v10.00 2026-07-18 05:11:26 +00:00
Lauri Ojansivu 50dd05ceee Updated Sandstorm Backup docs.
Thanks to robertdahlem and xet7 !

Fixes #6475
2026-07-17 18:13:53 +03:00