Skip to content

Security and compliance page - add corpus management row/link

Why are we doing this work

POC MR

!69302 (diffs)

This issue tracks adding a corpus management menu/link to the security and configuration page. #231232[configuration-page-2.png]

Screen_Shot_2021-08-31_at_2.09.14_PM

Screen_Shot_2021-08-31_at_4.11.03_PM

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

POC - Working Merge Request - getting team input on approach !69302 (diffs)

  • Based on Frontend -> Backend analysis

  • In app/assets/javascripts/security_configuration/components/constants.js add constants for corpus management

  • In app/assets/javascripts/security_configuration/components/constants.js update the coverage fuzzing config object to include:

    secondary: {
      type: REPORT_TYPE_COVERAGE_FUZZING,
      name: CORPUS_MANAGEMENT_NAME,
      description: CORPUS_MANAGEMENT_DESCRIPTION,
      configurationText: CORPUS_MANAGEMENT_CONFIG_TEXT,
    },
  • In app/assets/javascripts/security_configuration/components/feature_card.vue update conditional render logic to account for a duplicate configuration path in the secondary button, to not show the primary button.

  • In ee/app/presenters/projects/security/configuration_presenter.rb add an entry for the corpus mangement configuration path for coverage fuzzing scan type.

Provide/Inject feature flag plan:

  • Add feature flag in html data attribute here: ee/app/views/projects/security/configuration/show.html.haml

  • Provide feature flag here: app/assets/javascripts/security_configuration/index.js

  • Inject feature flag here: app/assets/javascripts/security_configuration/components/feature_card.vue

  • Use feature flag in render logic.

coverage_fuzzing: project_security_configuration_corpus_management_path(project)
Edited by -