Commit 3b0e364
Neo
refactor(security): excise Telegram from owner identity + marketplace appeals (Phase 5 step 6b)
Telegram did nothing real for auth — no bot, no token, no send. Owner is identified by
Apple ID; the Telegram-ID branch in userType() compared against "7161847911", which an
Apple Sign-In id never equals (unreachable on device). Removed:
- ownerTelegramID (AgentAccessControl + Secrets/Secrets.example)
- the Telegram branch in userType() — owner now via the Apple-ID branch only
- the dead Scenario3 telegramApproval factor (Scenario3 never invoked; initiate/verify
have zero callers across all repos)
- the "telegram:@dardan" marketplace appeal channel (appeals store locally, never sent) -> "owner-review"
Adversarial-verified behavior-preserving (3 lenses, no holes): every userType() call site
passes appState.currentUserID, sourced only from Apple's opaque credential.user (=== the
stored com.mtrx.appleUserId the surviving branch compares), never a Telegram id. Owner still
classifies as owner, non-owners as consumer — unchanged. Server core already migrated to OTP.
This class is UX-only routing (server makes the binding owner call). Full 117-suite green.1 parent 3864816 commit 3b0e364
3 files changed
Lines changed: 8 additions & 25 deletions
File tree
- Blockchain/Components/Component24_Marketplace
- Config
- Core/Security
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 10 | | |
14 | 11 | | |
15 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| |||
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 57 | | |
68 | 58 | | |
69 | 59 | | |
| |||
179 | 169 | | |
180 | 170 | | |
181 | 171 | | |
182 | | - | |
183 | 172 | | |
184 | 173 | | |
185 | 174 | | |
186 | 175 | | |
187 | 176 | | |
188 | | - | |
| 177 | + | |
189 | 178 | | |
190 | 179 | | |
191 | 180 | | |
| |||
202 | 191 | | |
203 | 192 | | |
204 | 193 | | |
205 | | - | |
206 | | - | |
207 | 194 | | |
208 | 195 | | |
209 | 196 | | |
| |||
327 | 314 | | |
328 | 315 | | |
329 | 316 | | |
330 | | - | |
331 | 317 | | |
332 | 318 | | |
333 | 319 | | |
0 commit comments