FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CLOUDSTACK-10271 maven plugin for owasp dependency check added by DaanHoogland · Pull Request #2446 · apache/cloudstack · GitHub

Repository navigation

CLOUDSTACK-10271 maven plugin for owasp dependency check added - #2446

Merged
DaanHoogland merged 1 commit into
apache:masterfrom
shapeblue:owasp-dep-tjek
Mar 9, 2020
Merged

DaanHoogland merged 1 commit into
apache:masterfrom
shapeblue:owasp-dep-tjek

Conversation

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread pom.xml Outdated
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>3.1.1</version>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you move in the properties the version number, thanks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

of course, good point

Copy link
Copy Markdown
Member

Is there a property to fail the build in case we find a vulnerable component?

Copy link
Copy Markdown
Contributor Author

@rafaelweingartner i don't want to think about that yet.. :(

rafaelweingartner commented Feb 7, 2018 •
edited
Loading

Copy link
Copy Markdown
Member

because it might start breaking our builds and then we will have to fix it?
I wonder if this report will be something like the Coverity report that we had or even the sonar report that we had (do we still have them?) that people just ignore.

Copy link
Copy Markdown
Contributor Author

yes, they are ignorable, just a help but afcourse we can set them to block the build. You don't want to do that in the present state though

Copy link
Copy Markdown
Member

@DaanHoogland Can't you try to address the dependencies CVE too in this PR by updating them to the fixed ones? Then you'll be able to put flag the build as failed if any new CVE happens.
Just to note that a same build can then start to fail even though it did not in the past!

Copy link
Copy Markdown
Contributor Author

No @marcaurele, we need to go there I agree, but it is a bridge to far now

Copy link
Copy Markdown
Contributor Author

Let me add to that:
I think a PR should be stopped on a dependency CVE but a build should not fail. Builds must be reproducible even (or especially) when there are vulnerabilities in it.

Copy link
Copy Markdown
Member

So, what we need is a jenkins job to report the "sanity/quality" of a PR's dependencies as a status in the Github's PR page.

Copy link
Copy Markdown
Contributor Author

I think it would be best to have a apache jenkins job that reports to sec@
that doesn't exclude your idea btw, @rafaelweingartner

Copy link
Copy Markdown
Contributor

@blueorangutan package

Copy link
Copy Markdown

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-1705

Copy link
Copy Markdown
Contributor

@blueorangutan test

Copy link
Copy Markdown

@borisstoyanov a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Copy link
Copy Markdown

Trillian test result (tid-2251)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 30372 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2446-t2251-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 66 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_hostha_enable_ha_when_host_in_maintenance Error 0.83 test_hostha_kvm.py

Copy link
Copy Markdown
Contributor Author

@marcaurele are you -1 on this chance as is?

rafaelweingartner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Everything seems to be ok. However, I believe the commits can be squashed.

borisstoyanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Contributor Author

yes of course @rafaelweingartner , let's squash on merge. I am kind of worried that three of the travis jobs time out. not sure if that is related.

Copy link
Copy Markdown
Member

I restarted travis job, if it turns out green I will proceed and merge this one

Copy link
Copy Markdown
Member

@DaanHoogland I pulled your branch and I tried to compile it here, but I got the following error:

Failed to execute goal org.owasp:dependency-check-maven:3.1.1:check (default) on project cloudstack: A type incompatibility occured while executing org.owasp:dependency-check-maven:3.1.1:check: org.sonatype.aether.util.DefaultRepositorySystemSession cannot be cast to org.eclipse.aether.RepositorySystemSession

This is the command I am using:
mvn clean install -P developer -Dsimulator -Dmaven.test.skip=false

Copy link
Copy Markdown
Member

Never mind, I found the problem. It is caused due to maven version [1]. Now I see the need for PR #2343.
@khos2ow I think we need to revisit and move that PR forward.

Travis is already using Maven 3.5, so the problem is not due to maven version there. I believe the problem is due to "dependency-check-maven" first run, when it downloads and processes CVEs to populate its local database.

@DaanHoogland we need to add travis_wait <someValueBiggerThan10> in front of install: ./tools/travis/install.sh directive. Something like install: travis_wait 30 ./tools/travis/install.sh

[1] http://maven.40175.n5.nabble.com/Re-Build-failed-in-Jenkins-maven-plugins-ITs-m3-972-td5755380.html

khos2ow commented Feb 20, 2018

Copy link
Copy Markdown
Contributor

@rafaelweingartner I'm still in favor of proceeding with that PR, because it will make build jobs immutable and reproducible as well.

yadvr commented Mar 23, 2018

Copy link
Copy Markdown
Member

@DaanHoogland can you check and fix Travis failures?

yadvr commented Sep 18, 2018

Copy link
Copy Markdown
Member

@DaanHoogland is this good to go? let me re-kick travis.

Copy link
Copy Markdown
Contributor

@rafaelweingartner @GabrielBrascher how are we doing with this PR? /CC @DaanHoogland

dhlaluku left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

DaanHoogland merged commit 2d63ed5 into apache:master Mar 9, 2020
DaanHoogland deleted the owasp-dep-tjek branch March 9, 2020 11:32
DaanHoogland added a commit that referenced this pull request Mar 9, 2020
This reverts commit 2d63ed5. (PR #2446)
fails when network causes CVE DB not being able to be downloaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL