Add zone traffic analytics and Security Events (WAF/rate-limit) commands
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- graphql, typescript
Hướng nghiên cứu
Trace the existing cf analytics query, analytics sql, and cf OAuth login entry points first, then compare their handling of zone-scoped analytics and the httpRequestsAdaptiveGroups and firewallEventsAdaptive datasets. Done means discoverable zone traffic and security-events commands, the required analytics OAuth scope, and a clear 4xx for unsupported datasets.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version: cf 1.0.0-beta.10
Problem: There is no way to answer "is my site OK right now?" from the CLI. Zone HTTP traffic analytics (requests, status codes, cache hit ratio, top countries/paths) and Security Events (WAF / rate-limit / bot blocks) can't be queried.
What I tried:
cf cli searchfor zone traffic, security events, WAF blocks, and country breakdown returns only Zero Trust, Spectrum, Analytics Engine, or Cloudforce One commands.cf analytics query top-n http-requests --zone <zone> ...(andfirewall-events) goes to the account-scoped/analytics/query/<dataset>endpoint. It returns500 art.api.internal_server_errorinstead of an "unknown dataset" error.cf analytics sql post --zone <zone>withhttp_requests/firewall_events(bare, or with anevents.orlogs.prefix) returns "table not found".information_schemaisn't enabled, andanalytics sql introspection getreturns 403 for an account owner logged in throughcfOAuth.
Why it matters: During a traffic spike, the first questions are where the traffic comes from (country, bot vs human, paths) and whether Cloudflare is blocking real users. Right now that needs the dashboard or a separately scoped API token.
Request:
- A zone traffic command, for example
cf zones analytics --since 6h --group-by status|country|path|botClass(backed byhttpRequestsAdaptiveGroups). - A security events command, for example
cf zones security-events list --since 1h --action block,challenge --group-by rule|country|path(backed byfirewallEventsAdaptive). - The
cfOAuth login should include the analytics read scope these commands need. analytics queryshould return a clear 4xx for unsupported datasets instead of a 500.
Related: #171 (generic GraphQL command) would also unblock this, but first-class commands for these two incident-response queries would be much easier to discover.
- Ngôn ngữ chính
- TypeScript
- Star
- 853
- Fork
- 42
- Merge trung bình
- 17 giờ 57 phút
- Pull request đã merge (30 ngày)
- 146
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudflare/cf
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
cloudflare/cf#344 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#262 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templateCó thể đã có người làm @jamesopstad đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
cloudflare/cf#223 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cloudflare/cf#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
cloudflare/cf#347 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cloudflare/cf
Issue tương tự
-
bug priority: P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
wayfinder:task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug customer-reported data-plane question Service Attention Storage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Azure/azure-rest-api-specs#47397 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Claude thinking budget can shrink capped Haiku responses to 2,048 tokensCó thể đã có người làm @DavyMassoneto đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
diegosouzapw/OmniRoute#17109 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
paperclipai/paperclip#16785 ·
Maintainer thường phản hồi trong vòng 1 ngày