Commit db700dd3 authored by Stan Hu's avatar Stan Hu

Merge branch '241815-enable-site-validation-ff' into 'master'

Enable site validation feature flag by default

See merge request gitlab-org/gitlab!50847
parents 53b3c8d5 216565f3
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/241815 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/241815
milestone: '13.4' milestone: '13.4'
type: development type: development
group: group::dynamic analysis group: group::dynamic analysis
default_enabled: false default_enabled: true
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Projects module Projects
class OnDemandScansController < Projects::ApplicationController class OnDemandScansController < Projects::ApplicationController
before_action do before_action do
push_frontend_feature_flag(:security_on_demand_scans_site_validation, @project) push_frontend_feature_flag(:security_on_demand_scans_site_validation, @project, default_enabled: :yaml)
push_frontend_feature_flag(:security_dast_site_profiles_additional_fields, @project, default_enabled: :yaml) push_frontend_feature_flag(:security_dast_site_profiles_additional_fields, @project, default_enabled: :yaml)
push_frontend_feature_flag(:dast_saved_scans, @project, default_enabled: :yaml) push_frontend_feature_flag(:dast_saved_scans, @project, default_enabled: :yaml)
end end
......
...@@ -5,7 +5,7 @@ module Projects ...@@ -5,7 +5,7 @@ module Projects
class DastProfilesController < Projects::ApplicationController class DastProfilesController < Projects::ApplicationController
before_action do before_action do
authorize_read_on_demand_scans! authorize_read_on_demand_scans!
push_frontend_feature_flag(:security_on_demand_scans_site_validation, @project) push_frontend_feature_flag(:security_on_demand_scans_site_validation, @project, default_enabled: :yaml)
end end
feature_category :dynamic_application_security_testing feature_category :dynamic_application_security_testing
......
...@@ -46,7 +46,7 @@ module Mutations ...@@ -46,7 +46,7 @@ module Mutations
private private
def allowed?(project) def allowed?(project)
Feature.enabled?(:security_on_demand_scans_site_validation, project) Feature.enabled?(:security_on_demand_scans_site_validation, project, default_enabled: :yaml)
end end
def error_response(errors) def error_response(errors)
......
...@@ -56,7 +56,7 @@ module Mutations ...@@ -56,7 +56,7 @@ module Mutations
private private
def allowed?(project) def allowed?(project)
Feature.enabled?(:security_on_demand_scans_site_validation, project) Feature.enabled?(:security_on_demand_scans_site_validation, project, default_enabled: :yaml)
end end
def error_response(errors) def error_response(errors)
......
...@@ -18,7 +18,7 @@ module Resolvers ...@@ -18,7 +18,7 @@ module Resolvers
private private
def allowed? def allowed?
::Feature.enabled?(:security_on_demand_scans_site_validation, project) ::Feature.enabled?(:security_on_demand_scans_site_validation, project, default_enabled: :yaml)
end end
end end
end end
...@@ -30,7 +30,7 @@ module DastSiteTokens ...@@ -30,7 +30,7 @@ module DastSiteTokens
def allowed? def allowed?
container.feature_available?(:security_on_demand_scans) && container.feature_available?(:security_on_demand_scans) &&
Feature.enabled?(:security_on_demand_scans_site_validation, container) Feature.enabled?(:security_on_demand_scans_site_validation, container, default_enabled: :yaml)
end end
def normalize_target_url(target_url) def normalize_target_url(target_url)
......
...@@ -23,7 +23,7 @@ module DastSiteValidations ...@@ -23,7 +23,7 @@ module DastSiteValidations
def allowed? def allowed?
container.feature_available?(:security_on_demand_scans) && container.feature_available?(:security_on_demand_scans) &&
Feature.enabled?(:security_on_demand_scans_site_validation, container) && Feature.enabled?(:security_on_demand_scans_site_validation, container, default_enabled: :yaml) &&
dast_site_token.project == container dast_site_token.project == container
end end
......
...@@ -25,7 +25,7 @@ module DastSiteValidations ...@@ -25,7 +25,7 @@ module DastSiteValidations
def allowed? def allowed?
container.feature_available?(:security_on_demand_scans) && container.feature_available?(:security_on_demand_scans) &&
Feature.enabled?(:security_on_demand_scans_site_validation, container) Feature.enabled?(:security_on_demand_scans_site_validation, container, default_enabled: :yaml)
end end
def dast_site_validation def dast_site_validation
......
---
title: Add ability to validate DAST site profiles
merge_request: 50847
author:
type: added
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment