Repository navigation
Commit 7be5ddf
Drop the account-listing blocks that opaque usernames made pointless
A member's account name identifies nobody, and their address lives in `user_email` and the roster.
Three defences were built to keep a member's username, then their email address, out of sight. What
they still hide is that members exist, how many there are, and when one joined or was deactivated,
which we do not treat as confidential. They are dropped.
Two of them were also defects. `Special:Redirect` was closed whole and `Special:FilePath` redirects
through it, so every member following a file path landed on a permission error. And
`{{Special:ListUsers}}` rendered empty for everyone, staff included, since what a transclusion
renders is not kept to the reader who asked for it. Both work again.
The rename log stays closed. An entry there names what an account was called before, which for a
member can be their email address, and the entry is permanent, so no later change to how members are
named takes those names back out of it.
Removed:
* `UserListSpecialPageHandler`, `$wgMemberAccessBlockedSpecialPages` and the `SpecialPageBeforeExecute`
wiring, which restores to members `Special:ListUsers`, `Special:ActiveUsers`, `Special:BlockList`,
`Special:Redirect`, `Special:UserRights` read-only, `Special:FilePath`, and the `{{Special:ListUsers}}`
transclusion
* `UserListApiHandler`, `$wgMemberAccessBlockedApiModules` and the `ApiCheckCanExecute` wiring, which
restores the `allusers`, `users` and `blocks` query modules
* the `newusers` and `block` log restrictions, leaving both logs as the wiki has them
* `memberaccess-api-module-denied` and `memberaccess-special-page-denied`, whose last use went with
the handlers, and `getStringListConfig`, whose last caller did
* the two settings from the README's configuration table, and the pages, modules and logs from what
loading the extension changes; the roster section now states what still holds
Kept: the password veto and the password-reset filtering, the decoy codes and uniform responses, the
rate limits, the allowlist over single sign-on with its username minting and processors,
`$wgBlockDisablesLogin`, the session invalidation on removal, and the reserved `MemberAccess`
username.
Tests: the two handlers' suites are gone. `RegistrationHandlerTest` pins the rename log as the only
log the extension closes, across every route state. `MemberLogVisibilityTest` becomes
`RenameLogVisibilityTest`, covering the one log that is still restricted and losing the code-login
machinery it needed to make a member. `MemberReadAccessTest` pins the restored surfaces; restoring
the two handlers locally turns all five of its cases red, which is what it is there for.
Verified on a wiki with member access on, as a reader-group account: `Special:ListUsers` lists
accounts under their opaque names, `Special:FilePath/<file>` redirects through to the file,
`action=query&list=allusers` answers, `Special:Log/renameuser` is refused, and an administrator sees
all of it, the rename log included.
Worth weighing: a member the opaque-name update did not rename is now named by their address wherever
the wiki names accounts. The update skips an account whose rename fails and writes that to the log
channel, so a wiki that has one needs `update.php` to have finished before this is safe. Installation
already says to run it after every upgrade.
Largely reverts #23 and
#25, whose reason for existing went with
#29.
Considered, omitted:
* keeping the special pages blocked and the API modules open, or the reverse; both defended the same
thing and neither defends anything now
* keeping `Special:Redirect` closed for its user lookups: `Special:Redirect/user/<id>` answers with a
name that identifies nobody, and closing it is what broke `Special:FilePath`
* leaving the two settings in place with empty defaults, so a wiki could go on blocking pages or
modules of its own choosing: deciding who may open which page is the wiki's own access control,
not this extension's
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 53cd26c commit 7be5ddf
14 files changed
Lines changed: 263 additions & 871 deletions
File tree
- i18n
- src
- EntryPoints
- tests/phpunit/Integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
147 | 140 | | |
148 | | - | |
149 | | - | |
| 141 | + | |
| 142 | + | |
150 | 143 | | |
151 | 144 | | |
152 | 145 | | |
| |||
195 | 188 | | |
196 | 189 | | |
197 | 190 | | |
198 | | - | |
199 | | - | |
200 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
201 | 194 | | |
202 | 195 | | |
203 | 196 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 197 | + | |
208 | 198 | | |
209 | 199 | | |
210 | 200 | | |
| |||
354 | 344 | | |
355 | 345 | | |
356 | 346 | | |
357 | | - | |
358 | | - | |
359 | 347 | | |
360 | 348 | | |
361 | 349 | | |
| |||
427 | 415 | | |
428 | 416 | | |
429 | 417 | | |
430 | | - | |
431 | | - | |
| 418 | + | |
432 | 419 | | |
433 | 420 | | |
434 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
| |||
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
53 | | - | |
54 | | - | |
55 | 47 | | |
56 | 48 | | |
57 | 49 | | |
| |||
145 | 137 | | |
146 | 138 | | |
147 | 139 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | 140 | | |
157 | 141 | | |
158 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
97 | 96 | | |
98 | | - | |
| 97 | + | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 102 | + | |
| 103 | + | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments