Commit bcd03ff
authored
feat(trust): gateway echo-on-deny (Phase 2) + trust-none default (Phase 3) (#1273)
* feat(trust): gateway echo-on-deny (Phase 2) + deny-all default (Phase 3)
- Phase 2: on Decision::DenyIdentity, echo the sender their ID via
adapter.send_message so they can request access (request-access UX).
Throttled to 1 echo per (platform,sender) per 5min (LazyLock map) to
prevent amplification. DenyScope stays silent (not a security boundary).
- Phase 3 (gateway): flip GATEWAY_ALLOW_ALL_USERS default true→false, so
gateway L3 is trust-none by default. L2 (channels) stays open. Admit via
GATEWAY_ALLOWED_USERS or GATEWAY_ALLOW_ALL_USERS=true.
Ships in pre-beta (self-use). emilie unaffected (own image + WS path, which
doesn't use this registry/echo). Discord/Slack registry entries unchanged
(still behavior-preserving allow-all).
Refs #1264 #1269
* test(trust): echo throttle regression test
---------
Co-authored-by: chaodu-agent <chaodu-agent@users.noreply.github.com>1 parent c72c86a commit bcd03ff
2 files changed
Lines changed: 76 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1143 | 1165 | | |
1144 | 1166 | | |
1145 | 1167 | | |
| |||
1174 | 1196 | | |
1175 | 1197 | | |
1176 | 1198 | | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
1187 | 1240 | | |
1188 | 1241 | | |
1189 | 1242 | | |
| |||
1420 | 1473 | | |
1421 | 1474 | | |
1422 | 1475 | | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
1423 | 1485 | | |
1424 | 1486 | | |
1425 | 1487 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
| |||
0 commit comments