Nicolae Rotaru activity https://gitlab.com/nrotaru 2026-03-19T09:59:53Z tag:gitlab.com,2026-03-19:5221312544 Nicolae Rotaru commented on merge request !227028 at GitLab.org / GitLab 2026-03-19T09:59:53Z nrotaru Nicolae Rotaru

Hey @gkatz1, I addressed the feedback, feel free to give it another look.

tag:gitlab.com,2026-03-18:5218670407 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-18T16:56:51Z nrotaru Nicolae Rotaru

Hey @rossfuhrman could you please take a look at this MR as backend maintainer? Thank you!

tag:gitlab.com,2026-03-18:5218664367 Nicolae Rotaru pushed to project branch nrotaru/593130-add-security-scan-profile-source at GitLab.org / GitLab 2026-03-18T16:55:46Z nrotaru Nicolae Rotaru

Nicolae Rotaru (77572ce3) at 18 Mar 16:55

Address the feedback

tag:gitlab.com,2026-03-18:5217783404 Nicolae Rotaru commented on merge request !227028 at GitLab.org / GitLab 2026-03-18T14:02:48Z nrotaru Nicolae Rotaru

The scan_profile_eligibility_service accessor on the external context is a leftover from before I consolidated everything into scan_profile_context. I removed it in the last commit.

tag:gitlab.com,2026-03-18:5217749457 Nicolae Rotaru pushed to project branch nrotaru/593130-add-security-scan-profile-source at GitLab.org / GitLab 2026-03-18T13:56:17Z nrotaru Nicolae Rotaru

Nicolae Rotaru (05f6b543) at 18 Mar 13:56

Get rid of scan_profile_eligibility_service accessor

tag:gitlab.com,2026-03-18:5217454327 Nicolae Rotaru pushed to project branch nrotaru/593131-create-scan_profile_project_statuses at GitLab.org / GitLab 2026-03-18T12:56:10Z nrotaru Nicolae Rotaru

Nicolae Rotaru (279ca7c2) at 18 Mar 12:56

Address the feedback on the spec style

... and 1614 more commits

tag:gitlab.com,2026-03-18:5217171958 Nicolae Rotaru pushed to project branch nrotaru/593130-add-security-scan-profile-source at GitLab.org / GitLab 2026-03-18T11:56:55Z nrotaru Nicolae Rotaru

Nicolae Rotaru (9928307c) at 18 Mar 11:56

Fix failing specs

tag:gitlab.com,2026-03-18:5216869323 Nicolae Rotaru commented on merge request !227028 at GitLab.org / GitLab 2026-03-18T10:47:02Z nrotaru Nicolae Rotaru

Hey @gkatz1

Pretty solid points. I addressed them both. Please let me know if the implementation looks better now.

tag:gitlab.com,2026-03-18:5216869303 Nicolae Rotaru commented on merge request !227028 at GitLab.org / GitLab 2026-03-18T10:47:02Z nrotaru Nicolae Rotaru

Agreed, the regex matching was brittle. Switched to the _metadata pattern you suggested - profile ID now travels with the job config through ScanPipelineService / CiAction::Template, same flow as scan execution policies. Removed build_job_name_to_profile_id_mapping entirely.

Please let me know if the implementation looks better now.

tag:gitlab.com,2026-03-18:5216869254 Nicolae Rotaru commented on merge request !227028 at GitLab.org / GitLab 2026-03-18T10:47:01Z nrotaru Nicolae Rotaru

Good call, fixed. scan_profile_context is now the only entry point on the command.
The eligibility service is accessed via scan_profile_context.eligibility_service where needed.

tag:gitlab.com,2026-03-18:5216840437 Nicolae Rotaru pushed to project branch nrotaru/593130-add-security-scan-profile-source at GitLab.org / GitLab 2026-03-18T10:41:16Z nrotaru Nicolae Rotaru

Nicolae Rotaru (5637bd75) at 18 Mar 10:41

Simplify and improve the implementation

tag:gitlab.com,2026-03-18:5216572307 Nicolae Rotaru pushed to project branch nrotaru/593131-create-scan_profile_project_statuses at GitLab.org / GitLab 2026-03-18T09:46:55Z nrotaru Nicolae Rotaru

Nicolae Rotaru (fdbaa54c) at 18 Mar 09:46

Address the feedback on the spec style

tag:gitlab.com,2026-03-18:5216379009 Nicolae Rotaru commented on merge request !227565 at GitLab.org / GitLab 2026-03-18T09:05:02Z nrotaru Nicolae Rotaru

Looks good, works as expected.

tag:gitlab.com,2026-03-18:5216377813 Nicolae Rotaru approved merge request !227565: Add default DS scan profile at GitLab.org / GitLab 2026-03-18T09:04:45Z nrotaru Nicolae Rotaru

What does this MR do and why?

Add default DS scan profile based on #591553

Changelog: changed
EE: true

How to set up and validate locally

  1. Select a root group g without DS security scan profiles.
  2. Use this GraphQL query to get the available (default) profiles:
    query test {
      group(fullPath: "<g.full_path>") {
        availableSecurityScanProfiles(type: DEPENDENCY_SCANNING) {
          id
          scanType
          name
          description
          gitlabRecommended
          triggers
        }
      }
    }
  3. Verify there is no DEPENDENCY_SCANNING profiles available.
  4. Use this mutation to attach the default dependency_scanning profile to the projects under group g, and verify it fails with The resource that you are attempting to access does not exist:
        mutation {
       securityScanProfileAttach(
         input: {
           securityScanProfileId: "gid://gitlab/Security::ScanProfile/dependency_scanning"
           groupIds: ["gid://gitlab/Group/<g.id>"]
         }
       ) {
         errors
       }
     }
  5. Turn :security_scan_profiles_dependency_scanning feature flag on:
    Feature.enable(:security_scan_profiles_dependency_scanning)
  6. Using the same query, verify that default DEPENDENCY_SCANNING profile is returned with the correct name, description and triggers.
  7. Using the same mutation, verify you are able to attach the default DEPENDENCY_SCANNING profile to projects under g.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #593009

tag:gitlab.com,2026-03-17:5213786314 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-17T16:23:19Z nrotaru Nicolae Rotaru

Hey @gkatz1 I addressed your feedback and left a few comments. Feel free to give it a second look.

tag:gitlab.com,2026-03-17:5213782312 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-17T16:22:23Z nrotaru Nicolae Rotaru

tag:gitlab.com,2026-03-17:5213782293 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-17T16:22:23Z nrotaru Nicolae Rotaru

tag:gitlab.com,2026-03-17:5213782272 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-17T16:22:23Z nrotaru Nicolae Rotaru

The counters reset on every state change (success resets failure count, failure resets success count), so they won't grow unbounded in practice. smallint max of 32,767 is safe. A defensive cap can be added in MR 3's UpdateService if preferred.

tag:gitlab.com,2026-03-17:5213782253 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-17T16:22:23Z nrotaru Nicolae Rotaru

tag:gitlab.com,2026-03-17:5213780505 Nicolae Rotaru commented on merge request !227103 at GitLab.org / GitLab 2026-03-17T16:21:56Z nrotaru Nicolae Rotaru