The security event log said what a guard DID - a request blocked, a filename
sanitized - which answers "is WeKan defending itself" and not the question an
admin asks next: who did that, and from where. It also could not tell a browser
that got confused from somebody working through the Hall of Fame one entry at a
time.
A CANARY is a tripwire at a point that only a permission-override attempt
reaches. Ordinary use never gets there - the code path runs when a request asks
for something the rules forbid - so a trip is not noise, and it is worth an
admin's attention with the actor attached. Design:
docs/Security/Remediation/WeKan.md §12.
Three properties, each enforced by a test:
SILENT. Tripping one changes NOTHING the caller can observe. tripCanary()
always returns false and tripCanaryDeny() always returns true, so a call site
reads as the refusal it replaces:
if (forbidden) return false; // before
if (forbidden) return tripCanary('card.vote-field', { userId });
The return value is decided before any reporting is attempted and the reporting
is wrapped, so a canary can never throw into, delay or disturb the request it
watches. The REST handler re-throws the ORIGINAL error object. This is not
politeness: a canary that announces itself is a map of which paths are watched,
and a probe would simply avoid them.
BOUNDED. A canary sits where an attacker can loop, so one row per attempt would
be a denial of service they get for free. models/lib/canaryTokens.js - pure, no
Meteor, no clock of its own - records the first trip of a (canary, actor) pair
at once, COUNTS the rest of the window, flushes one summary carrying the total
when the window closes, and stops writing after 60 summaries for a pair that
never gives up. The tracked-pair map is capped at 5000 and evicts the LEAST
RECENTLY seen, so a long-running attacker is not pushed out by a passing one and
a botnet varying its address cannot grow it. Idle pairs are swept on a timer. A
thousand attempts in a minute cost ONE row, and a suppressed trip costs one map
lookup. The username lookup is cached and capped, and neither it nor the insert
is awaited on the caller's path.
ATTRIBUTED. Every event carries userId, username, ip and count. The username is
denormalised at write time on purpose: it is what the account was CALLED when it
tried, so a rename does not rewrite history and a deletion does not erase it.
The address uses the same spoofing-safe resolver as the login throttle -
X-Forwarded-For only as far as HTTP_FORWARDED_COUNT says to trust it - or an
attacker could write a colleague's address into the security log by sending a
header. `detail` says what was attempted in the words of the feature, never the
payload.
Seventeen canaries are wired at the permission checks that refuse the attempts
behind BoardBleed, ParentBleed, ChecklistBleed, PathBleed and CommentBleed, plus
the direct vote/poker field writes and a stored path that points outside the
storage root. All server-side: no Playwright, no browser, nothing to install.
Admin Panel / Problems / Security gains Username, IP address and Attempts
columns, and both new columns are searchable - the thing an admin does with one
security event is pivot on it.
tests/canaryTokens.test.cjs (25 checks) drives the limiter through bursts, an
endless probe, eviction order and junk input; tests/canaryCoverage.test.cjs (18)
pins every canary to its call site and asserts none of them changes what the
caller gets back.
Thanks to xet7 !
Wekan is an open-source kanban board which allows a card-based task and to-do management.
Wekan allows to create Boards, on which Cards can be moved around between a number of Columns. Boards can have many members, allowing for easy collaboration, just add everyone that should be able to work with you on the board to it, and you are good to go! You can assign colored Labels to cards to facilitate grouping and filtering, additionally you can add members to a card, for example to assign a task to someone.
What is special about Wekan?
Wekan is distributed under the MIT License, allowing anyone to easily work with it and modify it. It is perfect for anyone that needs a slick kanban board but doesn't want to use third party services, which are out of user control. Wekan can be hosted on your own server with very little effort, guaranteeing that you have all the time full control over your data and can make sure no one else has access to it and that it won't just vanish from one day to another, that is, if you do backups.
Install
SaaS
Support
- Free Public Open Source Support, bugs and feature requests: https://github.com/wekan/wekan/issues
- Paid Private Commercial Support, paid features/fixes/support/hosting: https://wekan.fi/commercial-support/
General
- WeKan Features: Deep Dive Into WeKan (WeKan now runs on Meteor 3.x and Node.js 24.x)
- WeKan Roadmap kanban board - board at Wekan demo
- Future WeKan prototypes: Multiverse WeKan Roadmap
- Change Language
- Forgot Password
- WeKan Design Principles
- FAQ
- IRC FAQ - answers to questions asked at IRC
- Team
- Press
- Blog
- Wekan vs Trello vs Restyaboard
- Results of Survey 2020-01
Fake: Not WeKan kanban
Security
- Allow private boards only: Disable Public Boards
- Security Disclosure and details of Security in Wekan
- Password Hashing
Scaling
- Cron: Hourly restart WeKan, because of memory leaks
- Maybe: Add more RAM to Node.js to prevent crash
- Clustering AWS etc
- Scaling
- Multitenancy: one server per tenant, and the alternatives
- Kubernetes
- Helm Chart https://artifacthub.io/packages/helm/wekan/wekan
- Issues https://github.com/wekan/charts/issues
- Pull Requests https://github.com/wekan/charts/pulls
- Redis Oplog
- Scaling at Meteor forums
Migrating
- From Previous Export, paste big WeKan JSON
- Progress: Import/Export/Sync
- From CSV/TSV
- From Excel (.xlsx)
- From Trello
- From Jira
- From / To Kanboard
- From / To NextCloud Deck, OpenProject, GitHub, GitLab, Gitea, Forgejo
- From Asana
- From Zenkit
- From old Wekan manually
Backup
Repair
- Repair MongoDB
- Using Meteor MongoDB to repair files
- If board does not open and keeps loading
- Repair Docker
Themes
Markdown Syntax
- Wekan Markdown
- Emoji
- Mermaid Diagram DOES NOT WORK ANYMORE
- Numbered text
Login Auth
- Automatic login
- Disable Password Login
- Forgot Password
- Admin: Impersonate user
- Adding Users
- Active users Presence
- Accounts Lockout: Brute force login protection
- LDAP
- LDAP AD Simple Auth
- Keycloak
- Google login
- Azure
- OAuth2, Auth0, GitLab, RocketChat
- Oracle OIM on premise using OAuth2
- ADFS 4.0 using OAuth2 and OpenID
- Azure AD B2C using OAuth2
- Nextcloud
- CAS Please test
- SAML Please test
- Zitadel
Metrics, Logs, Stats
Integrations
Time
Features
- All Features index
- Boards
- Lists
- Cards
- Members and Permissions
- WIP Limits
- Keyboard Shortcuts
- Accessibility
- Rules (Automation)
- Card Dependencies — "Red Strings" / PI Program Board
- IFTTT / Rules overview
- Admin Panel — every pane, one page per menu entry
- Multiline
- Linked Cards
- Drag Drop on Mobile and Desktop
- Python based features
- Burndown and Velocity Chart
- Wait Spinners
- Translations
- Customize Translations
- Default Language for All Users
- Planning Poker
- Scaling
- Custom Logo
- Subtasks
- Templates
- Shared Templates (Admin view)
- Card Cover Image
- Stickers
- Card Locations
- Board Background Images
- Attachments and File Storage
- Right-to-Left (RTL) UI
- Archive and Delete
- Custom Fields
- Fix Export board menu not visible on some boards
- RAM usage
- Swimlanes
Required Settings
Webservers
- Caddy
- Nginx
- Apache
- OpenLiteSpeed
- Local self signed TLS
- Let's Encrypt and Google Auth
- TLS with Node.js
- Traefik and self-signed SSL certs
REST API Docs
- API docs https://wekan.fi/docs/
- PHP Webhook receiver to WeKan API Python https://github.com/wekan/webhook/blob/main/public/index.php#L46
- API clients
- Python
- api.py
- https://github.com/wekan/wekan-python-api-client
- https://github.com/wekan/python-wekan
- Other Python features Python
- Go https://github.com/wekan/wego
- Python
- Other API
- REST API Code
- Login
- User
- Role
- Boards
- Lists
- Cards
- Checklists
- Swimlanes
- Custom Fields
- Integrations
REST API issue
REST API client code
- Example: New card with Python3 and REST API
- Python client to REST API
- Go client to REST API
- Wekan Sandstorm cards to CSV using Python
- Excel and VBA
Webhooks
- Per-board events sending at board right sidebar / Board Settings / Webhooks
- Check that webhook immediately responds with HTTP 200 OK, otherwise WeKan slows down
- Global Webhook
- PHP Webhook receiver to WeKan API Python https://github.com/wekan/webhook/blob/main/public/index.php#L46
- Limiting Webhook data
- Receiving Webhooks
- Java Webhooks
- Outgoing Webhook to Discord/Slack/RocketChat/Riot
- Outgoing Webhook to NodeRed
- Outgoing Webhook to PowerShell
- Outgoing Webhooks, CA and Let's Encrypt
- Outgoing Webhooks Data
- Outgoing Webhooks Original Pull Request, multiple Webhooks, more parameters and response order
Development
- Kadira integration
- Debugging
- Developer Docs for Standalone Wekan
- Developer Docs for Sandstorm Wekan
- Adding new Snap setting to code
- Directory Structure
- Beginner
- Maintainer FAQ