Commit 624f498
Phase 2: Unknown app detection with aggregation
- 5-second aggregation window collects all ports an unknown app tries
before emitting a consolidated summary
- Daemon logs blocked apps at INFO level with port list and suggested
`afw add` command to allow them
- `afw pending` shows all blocked unknown apps sorted by attempt count,
with ports, destination IPs, and copy-paste add commands
- UnknownConnectionSummary generates suggested_command() for easy approval
- Periodic 2-second tick in daemon checks aggregation windows
Example daemon output:
BLOCKED: 'myapp' tried 2 port(s): 443/tcp, 8080/tcp (5 attempts, 2 destinations)
To allow: afw add myapp myapp 443/tcp 8080/tcp
Example `afw pending` output:
myapp (5 attempts, 12s ago) [aggregated]
-> 443/tcp
-> 8080/tcp
IPs: 1.2.3.4, 5.6.7.8
Suggest: afw add myapp myapp 443/tcp 8080/tcp
Phase 2 of .idea/README.md roadmap complete.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a42ece2 commit 624f498
3 files changed
Lines changed: 129 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
89 | | - | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
95 | | - | |
96 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
97 | 117 | | |
98 | 118 | | |
99 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
84 | 116 | | |
85 | 117 | | |
86 | 118 | | |
| |||
221 | 253 | | |
222 | 254 | | |
223 | 255 | | |
| 256 | + | |
224 | 257 | | |
225 | 258 | | |
226 | 259 | | |
| |||
257 | 290 | | |
258 | 291 | | |
259 | 292 | | |
260 | | - | |
| 293 | + | |
261 | 294 | | |
262 | 295 | | |
263 | 296 | | |
264 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
265 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
266 | 307 | | |
267 | | - | |
268 | | - | |
| 308 | + | |
| 309 | + | |
269 | 310 | | |
270 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
271 | 315 | | |
272 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
273 | 342 | | |
274 | 343 | | |
275 | 344 | | |
276 | 345 | | |
277 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
278 | 374 | | |
279 | 375 | | |
280 | 376 | | |
| |||
0 commit comments