[api] Expose available services, attacks, models and scenarios
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by reading the existing API and the related #209 status snapshot, then inspect default.yaml, opencda/core/application/behavior/services/, adversary_framework/attacks/, the CoP model assets, and the SUMO assets directory. Add GET /v1/capabilities to report the version and requested available resources with their parameters or requirements. Done when the endpoint returns those node-specific lists and configuration data for clients to use.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem or motivation
A client that builds configs needs to know what the node supports: the default.yaml its config is merged with, behavior service types and their parameters, attacks and their requirements, CoP models and SUMO scenarios. None of this is available through the API; capabilities in the #209 status snapshot is an empty list.
Scenario Manager hardcodes these lists in its UI, so they drift from the OpenCDA version deployed on the node.
Proposed solution
Add GET /v1/capabilities that returns:
- the OpenCDA version and the contents of
default.yaml; - behavior service types from
opencda/core/application/behavior/services/with their parameters; - attack names from
adversary_framework/attacks/with theirrequirements; - CoP model ids available on the node;
- scenario names in the SUMO assets directory.
Area
Scenario management
Additional context
Related to #209.
- Ngôn ngữ chính
- Python
- Star
- 11
- Fork
- 11
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 CAVISE/OpenCDA
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
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 54/100
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 47/100
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 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[attacks_research] Research additional service-level attacks for AttackFrameworkCó thể đã có người làm @Austin610 đã nhận 16 ngày trước. Đang mởenhancement
CAVISE/OpenCDA#218 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CAVISE/OpenCDA
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
-
frontend testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vendrabuck/HERD#1588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Lessons: record the second case of L14 (security updates cover only pip)Có thể đã có người làm @vishwanathj đã nhận hôm nay. Đang mởarea/docs no-test-needed type/docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vishwanathj/ocp_lab.ai#39 · 1 bình luận ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
laaielichter/Gulliver#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
nyjc-computing/campus#1338 ·
Maintainer thường phản hồi trong vòng 1 ngày