Skip to content

Comments

[Build/Security] Upgrade Freebuilder version and fix the dependency#2734

Merged
Ghatage merged 2 commits intoapache:masterfrom
lhotari:lh-fix-freebuilder-dependency-issue
Jun 27, 2021
Merged

[Build/Security] Upgrade Freebuilder version and fix the dependency#2734
Ghatage merged 2 commits intoapache:masterfrom
lhotari:lh-fix-freebuilder-dependency-issue

Conversation

@lhotari
Copy link
Member

@lhotari lhotari commented Jun 10, 2021

Fixes #2732

Motivation

  • Freebuilder 1.14.9 contains an outdate jquery js file which causes the library to be flagged as vulnerable with the highest threat level in Sonatype IQ vulnerability scanner. This also flags Bookkeeper and Pulsar as vulnerable with the highest threat level although it is a false positive and not an actual threat.

  • Freebuilder shouldn't be exposed as a transitive dependency

Changes

  • upgrade Freebuilder from 1.14.9 to 2.7.0
  • make dependency optional in maven pom.xml
  • use compileOnly instead of implementation in gradle build

lhotari added 2 commits June 10, 2021 08:56
…ype in build

Fixes apache#2732

- Freebuilder shouldn't be exposed as a transitive dependency
  - it's an annotation processor which should be defined
    - optional in maven
    - compileOnly in gradle
@lhotari
Copy link
Member Author

lhotari commented Jun 10, 2021

rerun failure checks

@lhotari
Copy link
Member Author

lhotari commented Jun 18, 2021

@sijie @merlimat Please review. This is part of the security fixes that were discussed in the Pulsar Community meeting.

@sijie sijie added this to the 4.15.0 milestone Jun 24, 2021
@Ghatage Ghatage merged commit a445728 into apache:master Jun 27, 2021
zymap pushed a commit that referenced this pull request Aug 18, 2021
Fixes #2732

### Motivation

- Freebuilder 1.14.9 contains an outdate jquery js file which causes the library to be flagged as vulnerable with the highest threat level in Sonatype IQ vulnerability scanner. This also flags Bookkeeper and Pulsar as vulnerable with the highest threat level although it is a false positive and not an actual threat.

- Freebuilder shouldn't be exposed as a transitive dependency
  - it's an annotation processor which should be defined
    - [optional in maven](https://github.com/inferred/FreeBuilder#maven)
    - [compileOnly in gradle](https://github.com/inferred/FreeBuilder#gradle)

### Changes

- upgrade [Freebuilder](https://github.com/inferred/FreeBuilder) from 1.14.9 to 2.7.0
- make dependency optional in maven pom.xml
- use `compileOnly` instead of `implementation` in gradle build

Reviewers: Sijie Guo <None>

This closes #2734 from lhotari/lh-fix-freebuilder-dependency-issue

(cherry picked from commit a445728)
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Fixes apache#2732

### Motivation

- Freebuilder 1.14.9 contains an outdate jquery js file which causes the library to be flagged as vulnerable with the highest threat level in Sonatype IQ vulnerability scanner. This also flags Bookkeeper and Pulsar as vulnerable with the highest threat level although it is a false positive and not an actual threat.

- Freebuilder shouldn't be exposed as a transitive dependency
  - it's an annotation processor which should be defined
    - [optional in maven](https://github.com/inferred/FreeBuilder#maven)
    - [compileOnly in gradle](https://github.com/inferred/FreeBuilder#gradle)

### Changes

- upgrade [Freebuilder](https://github.com/inferred/FreeBuilder) from 1.14.9 to 2.7.0
- make dependency optional in maven pom.xml
- use `compileOnly` instead of `implementation` in gradle build

Reviewers: Sijie Guo <None>

This closes apache#2734 from lhotari/lh-fix-freebuilder-dependency-issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security] org.inferred:freebuilder:1.14.9 dependency causes Bookkeeper to be flagged for jQuery vulnerabilities

4 participants