Skip to content

Add FindingEvidenceResponse model

What does this MR do?

This MR creates a new model for Vulnerability Finding Evidence Responses. This model will be replacing metadata in the finding. We are not using this table yet, that will be handled by a future MR. Related to #239179

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] 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

Database

Migrate

rails db:migrate
== 20210416172516 CreateVulnerabilityFindingEvidenceResponses: migrating ======
-- create_table(:vulnerability_finding_evidence_responses, {})
-- quote_column_name(:reason_phrase)
   -> 0.0000s
   -> 0.0110s
-- quote_table_name("check_58b124ab48")
   -> 0.0000s
-- quote_table_name(:vulnerability_finding_evidence_responses)
   -> 0.0000s
-- execute("ALTER TABLE \"vulnerability_finding_evidence_responses\"\nADD CONSTRAINT \"check_58b124ab48\" CHECK (char_length(\"reason_phrase\") <= 2048)\n")
   -> 0.0017s
== 20210416172516 CreateVulnerabilityFindingEvidenceResponses: migrated (0.0206s)

Rollback

 rails db:rollback
== 20210416172516 CreateVulnerabilityFindingEvidenceResponses: reverting ======
-- drop_table(:vulnerability_finding_evidence_responses)
   -> 0.0024s
== 20210416172516 CreateVulnerabilityFindingEvidenceResponses: reverted (0.0184s)

Related to #239179

Edited by Jonathan Schafer

Merge request reports