Skip to content

Fix feature flag check for security policy project

Sashi Kumar Kumaresan requested to merge sk/335661-fix-feature-flag into master

What does this MR do?

Addresses: #335661 (closed)

This MR fixes the feature flag check while creating a security policy project. The feature flag should be checked for already existing project (security_policy_target_project) and not for the newly created security policy project.

This feature is still behind feature flag security_orchestration_policies_configuration, so this change will not cause any issues.

Screenshots or Screencasts (strongly suggested)

How to setup and validate locally (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports