Commit 995b70d9 authored by Patrick Bair's avatar Patrick Bair

Merge branch 'philipcunningham-spike-out-dast-on-demand-ci-composition-336195' into 'master'

Disable DAST joins in Ci::Build and Ci::Pipeline

See merge request gitlab-org/gitlab!66709
parents 08d2baf8 63777dad
---
name: dast_profile_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66709
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336944
milestone: '14.2'
type: development
group: group::dynamic analysis
default_enabled: true
---
name: dast_scanner_profile_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66709
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336946
milestone: '14.2'
type: development
group: group::dynamic analysis
default_enabled: true
---
name: dast_site_profile_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66709
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336945
milestone: '14.2'
type: development
group: group::dynamic analysis
default_enabled: true
......@@ -33,10 +33,10 @@ module EE
has_many :security_scans, class_name: 'Security::Scan'
has_one :dast_site_profiles_build, class_name: 'Dast::SiteProfilesBuild', foreign_key: :ci_build_id
has_one :dast_site_profile, class_name: 'DastSiteProfile', through: :dast_site_profiles_build
has_one :dast_site_profile, class_name: 'DastSiteProfile', through: :dast_site_profiles_build, disable_joins: -> { ::Feature.enabled?(:dast_site_profile_disable_joins, default_enabled: :yaml) }
has_one :dast_scanner_profiles_build, class_name: 'Dast::ScannerProfilesBuild', foreign_key: :ci_build_id
has_one :dast_scanner_profile, class_name: 'DastScannerProfile', through: :dast_scanner_profiles_build
has_one :dast_scanner_profile, class_name: 'DastScannerProfile', through: :dast_scanner_profiles_build, disable_joins: -> { ::Feature.enabled?(:dast_scanner_profile_disable_joins, default_enabled: :yaml) }
after_commit :track_ci_secrets_management_usage, on: :create
delegate :service_specification, to: :runner_session, allow_nil: true
......
......@@ -21,7 +21,7 @@ module EE
has_many :security_findings, class_name: 'Security::Finding', through: :security_scans, source: :findings
has_one :dast_profiles_pipeline, class_name: 'Dast::ProfilesPipeline', foreign_key: :ci_pipeline_id
has_one :dast_profile, class_name: 'Dast::Profile', through: :dast_profiles_pipeline
has_one :dast_profile, class_name: 'Dast::Profile', through: :dast_profiles_pipeline, disable_joins: -> { ::Feature.enabled?(:dast_profile_disable_joins, default_enabled: :yaml) }
has_one :source_project, class_name: 'Ci::Sources::Project', foreign_key: :pipeline_id
......
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