[Security Solution] Migrate rules management endpoints to OpenAPI and code generation#165091
[Security Solution] Migrate rules management endpoints to OpenAPI and code generation#165091xcrzx merged 1 commit intoelastic:mainfrom xcrzx:zod-migration
Conversation
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
x-pack/plugins/security_solution/server/utils/build_validation/route_validation.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
I didn't know about this, thanks! 🙂
...onitoring/rule_execution_logs/get_rule_execution_results/get_rule_execution_results_route.ts
Outdated
Show resolved
Hide resolved
...gins/security_solution/common/api/detection_engine/rule_monitoring/model/execution_status.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Rule Schemas, completely generated. This is beautiful @xcrzx... 🥹
...oring/rule_execution_logs/get_rule_execution_results/get_rule_execution_results_route.gen.ts
Outdated
Show resolved
Hide resolved
spong
left a comment
There was a problem hiding this comment.
Checked out, code reviewed, and smoke tested the updated endpoints locally. Seeing an error WRT the page/per_page params on the GET /internal/detection_engine/rules/{ruleId}/execution/results route, but other than that everything LGTM! 👍
Will want to get that route fixed before merging, but approving for now. Great work @xcrzx, everything is coming together quite nicely! 🙌 🙂
logeekal
left a comment
There was a problem hiding this comment.
Investigation changes look good. LGTM 🚀
dhurley14
left a comment
There was a problem hiding this comment.
detection engine area code lgtm
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @xcrzx |
Part of: https://github.com/elastic/security-team/issues/7491
Summary
Migrated Detection Engine APIs to OpenAPI schema and code generation:
PUT /api/detection_engine/rules/prepackagedPOST /api/detection_engine/rules/_exportPOST /api/detection_engine/rules/_importGET /api/detection_engine/tagsGET /internal/detection_engine/rules/{ruleId}/execution/results