Skip to content

fix(security): query documented radar api with token and mark failed lookups unverified - #2289

Merged
dan-petty merged 1 commit into
mainfrom
implement_issue_fourteen_twenty_nine
Oct 26, 2026
Merged

dan-petty merged 1 commit into
mainfrom
implement_issue_fourteen_twenty_nine

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Cloudflare Radar lookups now query the documented v4 domain endpoint with the configured Cloudflare API token. Lookups report failed and unavailable responses accurately without asserting that a domain is verified or safe.

Closes #1429

Changes

  • Configured CloudflareRadarClient to query the documented endpoint https://api.cloudflare.com/client/v4/radar/ranking/domain/{domain}.
  • Authenticated requests using Authorization: Bearer <token> when a token is configured.
  • Marked lookups as unavailable when no token is configured without sending network traffic.
  • Set outcome status to ok, unavailable (429 or missing token), or failed (403, 500, network errors).
  • Reported unverified and unchecked status in review pipeline and builtin tools, removing misleading verified claims.
  • Extracted _determine_network_security_status helper in review pipeline to keep AST nesting within limits.

Fail-to-Pass Verification

Verified with devops ci fail-to-pass --base origin/main:

7 failed on base (7 failed and 53 passed in tests/test_security_threat_intel.py, tests/test_vulnerability_lookup.py; 0 errored).

Change:
openspec/changes/archive/2026-10-26-1429-cloudflare-radar-documented-api/

…lookups unverified

## Summary

Cloudflare Radar lookups now query the documented v4 domain endpoint with
the configured Cloudflare API token. Lookups report failed and unavailable
responses accurately without asserting that a domain is verified or safe.

Closes #1429

## Changes

- Configured CloudflareRadarClient to query the documented endpoint
  https://api.cloudflare.com/client/v4/radar/ranking/domain/{domain}.
- Authenticated requests using Authorization Bearer header when a token is
  configured.
- Marked lookups as unavailable when no token is configured without sending
  network traffic.
- Set outcome status to ok, unavailable (429 or missing token), or failed
  (403, 500, network errors).
- Reported unverified and unchecked status in review pipeline and builtin
  tools, removing misleading verified claims.
- Extracted _determine_network_security_status helper in review pipeline to
  maintain AST nesting limits.

## Fail-to-Pass Evidence

Verified with devops ci fail-to-pass --base origin/main:
7 failed on base (7 failed and 53 passed in tests/test_security_threat_intel.py, tests/test_vulnerability_lookup.py; 0 errored).

Change:
openspec/changes/archive/2026-10-26-1429-cloudflare-radar-documented-api/
@dan-petty
dan-petty marked this pull request as ready for review October 26, 2026 13:55
@dan-petty
dan-petty merged commit c52af09 into main Oct 26, 2026
17 checks passed
@dan-petty
dan-petty deleted the implement_issue_fourteen_twenty_nine branch October 26, 2026 13:56
dan-petty pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.6.2](v0.6.1...v0.6.2)
(2026-10-26)


### Bug Fixes

* **ai:** the claude provider sends what current Claude models accept,
built by the anthropic SDK
([#2285](#2285))
([59471a4](59471a4))
* **ai:** the openai provider without ai.api_base_url calls the OpenAI
API's /v1 routes, built by the openai SDK
([#2286](#2286))
([a7dd605](a7dd605)),
closes [#1427](#1427)
* **ci:** pin ty in the dev group so a new release cannot fail uv check
on main ([#2284](#2284))
([3936fe6](3936fe6)),
closes [#2281](#2281)
* **security:** query documented radar api with token and mark failed
lookups unverified
([#2289](#2289))
([c52af09](c52af09))
* **telemetry:** the project items gauge counts the items of the project
board by milestone, state, type and priority
([#2290](#2290))
([853296c](853296c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant