2 Commits
Author SHA1 Message Date
Lauri Ojansivu 92fc9b686a LOGIN_ADDRESS_RECORDED=false records no sign-in address, and USERS_ANONYMIZE_INACTIVE_AFTER_DAYS anonymises long-disabled accounts.
Two items of docs/Compliance/README.md's P3 list ([GDPR] Art. 5(1)(c) data
minimisation and 5(1)(e) storage limitation):

- LOGIN_ADDRESS_RECORDED=false: WeKan writes down no sign-in address at
  all - not on the account, not in Login locations or Offices; a sign-in
  with a short password is still listed, without where from. The lockout
  still counts failed sign-ins per address, to stop guessing.
- USERS_ANONYMIZE_INACTIVE_AFTER_DAYS: an account disabled for inactivity
  (USERS_DISABLE_INACTIVE_AFTER_DAYS) is anonymised that many days later,
  as Member Settings / Anonymize does - its data elsewhere erased first -
  in the same nightly run. Disabling now records loginDisabledAt, enabling
  clears it, and accounts disabled before it existed start their clock
  now. Never an administrator, an account disabled by hand or by LDAP, or
  one enabled again; off unless set.

Both on every platform, the snap and the Helm chart.

Thanks to xet7 !
2026-11-24 05:08:23 +02:00
Lauri Ojansivu b933a69cd4 People shows everyone's Last active; inactive users can be disabled; LDAP sync honours its search filter.
Admin Panel / People showed "Last active" as "-" for every user but the
administrator: the people publication did not carry lastConnectionDate.

USERS_DISABLE_INACTIVE_AFTER_DAYS disables, once a night, accounts that have
not used WeKan for that many days, and revokes their logins. Admins are
never disabled. An account with no recorded activity starts its count on the
first run rather than from createdAt, and re-enabling an account restarts it.
The setting is in Admin Panel / People / Login as well as in the
environment, and the job resolves it every night, so a change there needs no
restart. Every platform's settings file lists it.

LDAP background sync looked a user up by id without LDAP_USER_SEARCH_FILTER,
so an account the filter excludes - one disabled in Active Directory - could
not log in but was still "found". It was never disabled, and a manual
disable was undone on the next run. The filter is now ANDed into the lookup.
An account disabled for inactivity is not re-enabled by the sync.

From the patch by Raymond-Voogt, with the setting moved into the Admin
Panel's login settings. Tests: tests/inactiveUsers.test.cjs,
tests/ldapBackgroundSync.test.cjs, tests/ldapUserIdFilter.test.cjs,
tests/authConfigCatalog.test.cjs and
tests/playwright/specs/inactive-users-last-active.e2e.js.

Thanks to Raymond-Voogt and xet7 !

Fixes #6783,
Fixes #6784,
Fixes #6785.
2026-10-19 17:35:51 +03:00