Update .NET dependencies [ALLOW INTERMEDIATE BUILDS] #422
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Snyk reported some vulnerabilities in our .NET dependencies. This updates them to their latest versions. The result was an overall reduction in vulnerabilities and a decrease in the size of the OPENCV container (by ~100MB) and ONVIF broker (by ~100MB).
Special notes for your reviewer:
Summary of .NET vulnerabilities in samples
akri/samples/brokers/onvif-video-broker
No vulnerabilities
Output of
snyk test
akri/samples/brokers/opcua-monitoring-broker
Before updating, Snyk found 12 issues. This was reduced to 4 after updating dependencies.
All 4 vulnerabilities come from
OPCFoundation.NetStandard.Opc.Ua
. Some persisted even after updating to the latest version.OPCFoundation.NetStandard.Opc.Ua
must update the versions of System.Text.RegularExpressions, System.IO.Pipelines, and System.Text.Encodings.Web to remove some of the vulnerabilities. And the first vulnerability recommends a use pattern. This OPC UA broker is only used for samples/demos and is not for production cases.Output of
snyk test
:akri/samples/opcua-certificate-generator
One additional pipeline dependency was added by increasing the dependency
OPCFoundation.NetStandard.Opc.Ua
version. As with the opcua-monitoring-broker, all dependencies come fromOPCFoundation.NetStandard.Opc.Ua
.If applicable:
./version.sh
)