“Blocks private and link-local IP addresses before fetching user-provided preview URLs.”
After the PR shipped, a security scan submitted a preview request for an ordinary public https:// URL. Moments later, the cloud metadata service at 169.254.169.254 logged a request from the preview service. validate_public_url rejects that address when it is checked directly.
Review client.py. Flag the line where the trust decision is lost, explain how the scan reached the metadata service, and fix PreviewClient.