This issue is being used to collate all the security report warnings that should be fixed before %15.0 lest they become errors and prevent the reports from being ingested.
@dappelt, IIRC you were involved with package hunter. It looks like it's using a very old version of the schema, and GitLab %15.0 will reject those reports. If I create an issue to handle this, do you know who should I assign it to?
It looks like it's using a very old version of the schema, and GitLab %15.0 will reject those reports. If I create an issue to handle this, do you know who should I assign it to?
I'm not sure to understand this change @gonzoyumo: These 2 analyzers are coming from the official template so removing them from the gitlab-org/gitlab project will just silent the warnings there. Anyone else using dependency scanning and either ruby and/or html (cf rules) will have the same issue, right?
Hi, @bcarranza. Thanks for the mention and the links.
TL;DR: the change in %15.0 does not affect this scenario.
Indeed VALIDATE_SCHEMA is now deprecated but, regardless of that, this setting doesn't affect whether or not the warnings are produced. These errors have likely always been happening, but since %14.9 we have visibility on them.
No errors were reported, which confirms that the error - at least for this report - is not due to schema validation. A previous report might still have contained invalid entries, but I don't know that for sure yet, otherwise I would hand this over to the groupstatic analysis team.
Since the error we're seeing is not related to this issue, could you please create a new one to track it? The following information would be useful:
Is the report in Zendesk from the same pipeline where the error was seen?
If the user runs a new pipeline on the same branch/commit, does it consistently report the same error?
As part of the new issue, we may tweak the error message to explain the difference between schema validation and JSON parsing errors. I believe the error in this case is not related to schema validation, but we mention it in the error message because, in theory, if schema validation passes, then the JSON must be valid.
That is interesting. The customer let me know that setting VALIDATE_SCHEMA: "true" did not resolve the errors. I will double-check on this and follow-up if I learn anything of note.
Since the error we're seeing is not related to this issue, could you please create a new one to track it? The following information would be useful:
Is the report in Zendesk from the same pipeline where the error was seen?
If the user runs a new pipeline on the same branch/commit, does it consistently report the same error?
Absolutely! I will work with the customer to collect this info and will follow back up on this thread with a link to that issue.
As part of the new issue, we may tweak the error message to explain the difference between schema validation and JSON parsing errors.
That sounds like a great idea.
wondering aloud Would it make more sense for me to create two issues?:
One to tweak the error message to make the difference between schema validation and JSON parsing errors clearer
One to better understand the specific JSON parsing errors that this customer is encountering
Are there security issues with our code that is not being identified due to this error?
Possibly. However, when I imported the report supplied by the customer, I didn't get any errors. This tells me that if they re-run the pipeline and don't get errors either, all findings should be ingested by GitLab and appear in the Vulnerability Report.
So if anyone ever gets this error, retries the same pipeline, and gets no errors, it's almost certain that they haven't missed anything (I say "almost" because there could be other external factors, but it's not worth worrying about these).
We'll be adjusting this error message to make it clear whether the problem was caused by an invalid report.
In this case, I believe that there was some other underlying issue (a DB timeout perhaps) that caused the error message. (FYI @minac)
Is there something on our end that we need to do to correct the issue?
Since there were no schema validation problems with the report that they gave me, there's nothing to follow-up with the analyzer teams at this stage.
If they continue to experience this, I'd like to engage to collect more information to help us diagnose the problem.
I checked with the customer and they do continue to see the issue if they rerun the pipeline. Is there specific information you would like me to request from the customer?
@abuerer, yes please. Could they please confirm that the artifact in the Zendesk ticket generates the error? I tried it myself and didn't get any errors.
To be sure, we could ask them to upload all the artifacts from the latest pipeline that generated errors. This will rule-out any problems with the reports themselves.
If that doesn't bring anything up, we'll move-on to investigating their instance - it might be more efficient to do it on a screen-sharing session.
Would you mind creating a confidential issue for this customer so we can freely discuss their setup and exchange files?
@thiagocsf@abuerer Thank you both for your work on this. The customer followed up and let us know that the recent fix worked! I believe that the fix they are referring to is !87702 (merged). We are marking the ticket Solved! Thanks!
@gonzoyumo, there's a disproportionate number of DS validation failures. I can't tell you yet what analyzer/scanner version is producing the reports just yet (waiting for !84522 (merged)), so I'm not sure if you can do anything about it.
Most failures are using schema version 14.0.0, so perhaps this is an older version of a DS analyzer?
@thiagocsf that could indeed be any older version of any analyzer. Though that sounds odd to have such a distinct behavior for DS vs the other categories
We've identified a non-official analyzer that could be a source of these warnings but can't tell how it's used.
Is there a way to get the raw data and see if these comes from the same account/namespace?
EDIT: Just saw the more recent messages in the other thread :/
@gonzoyumo, the MR to add scanner id/version to kibana has been set to MWPS (!84522 (merged)). This should help us figure-out where it's coming from. I'll update when we have more data.
Thanks @thiagocsf, this is awesome data! It is definitely re-assuring as we can see the vast majority of failures come from Retire.JS and bundler audit, which is expected
We still see a few erros from the gemnasium analyzer and even on very recent version. It might be worth having a quick look at it.
The Deprecated schema usage reported for gemnasium are for versions that are a year old or more so I see no concern here.
@dappelt, IIRC you were involved with package hunter. It looks like it's using a very old version of the schema, and GitLab %15.0 will reject those reports. If I create an issue to handle this, do you know who should I assign it to?
@gonzoyumo, FYI the yarn DS warnings are now errors since the enforce_security_report_validation FF is enabled on gitlab-org/gitlab. It will be enabled globally on production on the week of 16/May.
mhhh ... If I am interpreting the warning above correctly it looks as if the reports were generated by dast ... If this is the case than this issue won't be addressed by !86459 (closed) which only addresses the report generation for the npm-audit dependency scanning analyzer.