-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[backend/frontend] enforce null consistency with executor and command (#1621) #1825
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1825 +/- ##
============================================
+ Coverage 32.08% 32.31% +0.22%
+ Complexity 1609 1605 -4
============================================
Files 561 562 +1
Lines 16850 17049 +199
Branches 974 1019 +45
============================================
+ Hits 5406 5509 +103
- Misses 11200 11291 +91
- Partials 244 249 +5 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
Signed-off-by: Antoine MAZEAS <[email protected]>
@@ -2680,6 +2681,7 @@ const i18n = { | |||
'Update the security platform': '更新安全平台', | |||
'Security Platforms': '安全平台', | |||
'Content should not be empty': '内容不可为空', | |||
'Cleanup command and executor must be defined together or none at all': '清理命令和执行器必须一起定义,否则根本无法定义', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deepl translation
Issue found: the new constraint prevents importing the atomic red team database |
fixed |
Proposed changes
Related issues
Checklist
Further comments
On the payload definition panel, it is now not possible to only define the cleanup executor or the cleanup command. Both must be defined at the same time or none of them (i.e. blank fields).
The backend part was done with a "pure" null philosophy, unfortunately the frontend is not yet able to handle null values in react field components: the frontend special cases empty string for fields to submit null instead.