mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
A fetch grant for a host name, or for any host, let a component reach this machine and the local network whenever the name resolved there. A granted name could therefore be pointed by DNS at loopback, link-local metadata or private services. The runtime now resolves each destination itself. It passes only the allowed addresses to the HTTP client, so the address checked is the one connected to. Names and the wildcard reach only public unicast addresses. An IPv4 address named in a grant is still reached as declared. Credentials in a URL are refused. tests/runtime/check_grants.py runs the real component and checks these refusals: the local server through the wildcard, the name localhost, and credentials in a URL. The server records that none of the refused requests reached it. |
||
|---|---|---|
| .. | ||
| src | ||
| wit | ||
| Cargo.toml | ||