Commit 45b0a2e
committed
feat(cli): surface deny-CIDR as DnsError and observe resolver decisions
When PolicyDnsResolver filters out every resolved address, reqwest wraps
the resulting error through a connect-kind layer so `err.is_connect()`
fires first and the guest sees ConnectionRefused. Walk the whole source()
chain up front and map to DnsError when any hop mentions dns / failed to
lookup / deny CIDR — policy denials are now attributable rather than
looking like a refused socket. Mirror the fix on p3.
Add a resolved/kept tracing::debug line to PolicyDnsResolver::resolve so
the count is inspectable under RUST_LOG=act=debug.
Drop default-features from wasmtime-wasi (explicit p2 + p3 only); carries
over from removing wasmtime-wasi-http's default-send-request earlier in
the reqwest switchover.1 parent b668ef3 commit 45b0a2e
3 files changed
Lines changed: 46 additions & 84 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 | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
| |||
272 | 281 | | |
273 | 282 | | |
274 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
275 | 300 | | |
276 | 301 | | |
277 | 302 | | |
278 | 303 | | |
279 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
280 | 313 | | |
281 | 314 | | |
282 | 315 | | |
| |||
295 | 328 | | |
296 | 329 | | |
297 | 330 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 331 | | |
310 | 332 | | |
311 | 333 | | |
| |||
363 | 385 | | |
364 | 386 | | |
365 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
366 | 396 | | |
367 | 397 | | |
368 | 398 | | |
| |||
0 commit comments