-
- Downloads
There was an error fetching the commit references. Please try again later.
Add `container_policy` to policies controller
For MVC, we would like for the policies controller to be able to return both `scan_execution_policy` and `container_policy` types. Until the container runtime policies are migrated to use a security policy project, we will call out to the NetworkPolicies::FindResourceService as a workaround, using some of the same logic as the ThreatMonitoringController. The ThreatMonitoringController will be deleted when all of the functionality in this controller is completed.
Showing
- ee/app/controllers/projects/security/policies_controller.rb 41 additions, 12 deletionsee/app/controllers/projects/security/policies_controller.rb
- ee/app/helpers/projects/security/policies_helper.rb 17 additions, 0 deletionsee/app/helpers/projects/security/policies_helper.rb
- ee/app/services/security/security_orchestration_policies/policy_configuration_validation_service.rb 9 additions, 2 deletions...ation_policies/policy_configuration_validation_service.rb
- ee/app/views/projects/security/policies/edit.html.haml 2 additions, 4 deletionsee/app/views/projects/security/policies/edit.html.haml
- ee/spec/requests/projects/security/policies_controller_spec.rb 48 additions, 1 deletion...ec/requests/projects/security/policies_controller_spec.rb
- ee/spec/services/security/security_orchestration_policies/policy_configuration_validation_service_spec.rb 18 additions, 1 deletion..._policies/policy_configuration_validation_service_spec.rb
- locale/gitlab.pot 3 additions, 0 deletionslocale/gitlab.pot
Please register or sign in to comment