Skip to content

Commit a96309a

Browse files
lhotarizymap
authored andcommitted
[Security] Exclude grpc-okhttp dependency (#2735)
Fixes #2733 ### Motivation The okhttp dependency version 2.7.4 is old and vulnerable. This dependency isn't needed and it causes Bookkeeper to be flagged for security vulnerabilities. ### Changes - exclude grpc-okhttp dependency which pulls in okhttp 2.7.4 - update license files (cherry picked from commit 4621883)
1 parent 8c68924 commit a96309a

File tree

9 files changed

+12
-51
lines changed

9 files changed

+12
-51
lines changed

Diff for: bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt

-5
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ Apache Software License, Version 2.
264264
- lib/io.opencensus-opencensus-api-0.24.0.jar [30]
265265
- lib/io.opencensus-opencensus-contrib-http-util-0.24.0.jar [30]
266266
- lib/io.opencensus-opencensus-proto-0.2.0.jar [30]
267-
- lib/com.squareup.okhttp-okhttp-2.7.4.jar [31]
268-
- lib/com.squareup.okio-okio-1.13.0.jar [32]
269267
- lib/io.grpc-grpc-all-1.33.0.jar [33]
270268
- lib/io.grpc-grpc-alts-1.33.0.jar [33]
271269
- lib/io.grpc-grpc-api-1.33.0.jar [33]
@@ -274,7 +272,6 @@ Apache Software License, Version 2.
274272
- lib/io.grpc-grpc-core-1.33.0.jar [33]
275273
- lib/io.grpc-grpc-grpclb-1.33.0.jar [33]
276274
- lib/io.grpc-grpc-netty-1.33.0.jar [33]
277-
- lib/io.grpc-grpc-okhttp-1.33.0.jar [33]
278275
- lib/io.grpc-grpc-protobuf-1.33.0.jar [33]
279276
- lib/io.grpc-grpc-protobuf-lite-1.33.0.jar [33]
280277
- lib/io.grpc-grpc-services-1.33.0.jar [33]
@@ -333,8 +330,6 @@ Apache Software License, Version 2.
333330
[28] Source available at https://github.com/googleapis/googleapis
334331
[29] Source available at https://github.com/google/gson/tree/gson-parent-2.8.6
335332
[30] Source available at https://github.com/census-instrumentation/opencensus-java/tree/v0.24.0
336-
[31] Source available at https://github.com/square/okhttp/tree/parent-2.7.4
337-
[32] Source available at https://github.com/square/okio/tree/okio-parent-1.13.0
338333
[33] Source available at https://github.com/grpc/grpc-java/tree/v1.33.0
339334
[34] Source available at https://github.com/apache/curator/releases/tag/apache.curator-5.1.0
340335
[35] Source available at https://github.com/inferred/FreeBuilder/tree/v2.7.0

Diff for: bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt

-5
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ Apache Software License, Version 2.
244244
- lib/io.opencensus-opencensus-api-0.24.0.jar [29]
245245
- lib/io.opencensus-opencensus-contrib-http-util-0.24.0.jar [29]
246246
- lib/io.opencensus-opencensus-proto-0.2.0.jar [29]
247-
- lib/com.squareup.okhttp-okhttp-2.7.4.jar [30]
248-
- lib/com.squareup.okio-okio-1.13.0.jar [31]
249247
- lib/io.grpc-grpc-all-1.33.0.jar [32]
250248
- lib/io.grpc-grpc-alts-1.33.0.jar [32]
251249
- lib/io.grpc-grpc-api-1.33.0.jar [32]
@@ -254,7 +252,6 @@ Apache Software License, Version 2.
254252
- lib/io.grpc-grpc-core-1.33.0.jar [32]
255253
- lib/io.grpc-grpc-grpclb-1.33.0.jar [32]
256254
- lib/io.grpc-grpc-netty-1.33.0.jar [32]
257-
- lib/io.grpc-grpc-okhttp-1.33.0.jar [32]
258255
- lib/io.grpc-grpc-protobuf-1.33.0.jar [32]
259256
- lib/io.grpc-grpc-protobuf-lite-1.33.0.jar [32]
260257
- lib/io.grpc-grpc-services-1.33.0.jar [32]
@@ -303,8 +300,6 @@ Apache Software License, Version 2.
303300
[27] Source available at https://github.com/googleapis/googleapis
304301
[28] Source available at https://github.com/google/gson/tree/gson-parent-2.8.6
305302
[29] Source available at https://github.com/census-instrumentation/opencensus-java/tree/v0.24.0
306-
[30] Source available at https://github.com/square/okhttp/tree/parent-2.7.4
307-
[31] Source available at https://github.com/square/okio/tree/okio-parent-1.13.0
308303
[32] Source available at https://github.com/grpc/grpc-java/tree/v1.33.0
309304
[33] Source available at https://github.com/apache/curator/tree/apache-curator-5.1.0
310305
[34] Source available at https://github.com/inferred/FreeBuilder/tree/v2.7.0

Diff for: bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt

-5
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ Apache Software License, Version 2.
264264
- lib/io.opencensus-opencensus-api-0.24.0.jar [30]
265265
- lib/io.opencensus-opencensus-contrib-http-util-0.24.0.jar [30]
266266
- lib/io.opencensus-opencensus-proto-0.2.0.jar [30]
267-
- lib/com.squareup.okhttp-okhttp-2.7.4.jar [31]
268-
- lib/com.squareup.okio-okio-1.13.0.jar [32]
269267
- lib/io.grpc-grpc-all-1.33.0.jar [33]
270268
- lib/io.grpc-grpc-alts-1.33.0.jar [33]
271269
- lib/io.grpc-grpc-api-1.33.0.jar [33]
@@ -274,7 +272,6 @@ Apache Software License, Version 2.
274272
- lib/io.grpc-grpc-core-1.33.0.jar [33]
275273
- lib/io.grpc-grpc-grpclb-1.33.0.jar [33]
276274
- lib/io.grpc-grpc-netty-1.33.0.jar [33]
277-
- lib/io.grpc-grpc-okhttp-1.33.0.jar [33]
278275
- lib/io.grpc-grpc-protobuf-1.33.0.jar [33]
279276
- lib/io.grpc-grpc-protobuf-lite-1.33.0.jar [33]
280277
- lib/io.grpc-grpc-services-1.33.0.jar [33]
@@ -331,8 +328,6 @@ Apache Software License, Version 2.
331328
[28] Source available at https://github.com/googleapis/googleapis
332329
[29] Source available at https://github.com/google/gson/tree/gson-parent-2.8.6
333330
[30] Source available at https://github.com/census-instrumentation/opencensus-java/tree/v0.24.0
334-
[31] Source available at https://github.com/square/okhttp/tree/parent-2.7.4
335-
[32] Source available at https://github.com/square/okio/tree/okio-parent-1.13.0
336331
[33] Source available at https://github.com/grpc/grpc-java/tree/v1.33.0
337332
[34] Source available at https://github.com/apache/curator/releases/tag/apache.curator-5.1.0
338333
[35] Source available at https://github.com/inferred/FreeBuilder/tree/v2.7.0

Diff for: bookkeeper-dist/src/main/resources/NOTICE-all.bin.txt

-12
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ Copyright 2010 Cedric Beust [email protected]
124124
- lib/io.grpc-grpc-context-1.33.0.jar
125125
- lib/io.grpc-grpc-core-1.33.0.jar
126126
- lib/io.grpc-grpc-netty-1.33.0.jar
127-
- lib/io.grpc-grpc-okhttp-1.33.0.jar
128127
- lib/io.grpc-grpc-protobuf-1.33.0.jar
129128
- lib/io.grpc-grpc-protobuf-lite-1.33.0.jar
130129
- lib/io.grpc-grpc-stub-1.33.0.jar
@@ -144,17 +143,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
144143
See the License for the specific language governing permissions and
145144
limitations under the License.
146145

147-
This product contains a modified portion of 'OkHttp', an open source
148-
HTTP & SPDY client for Android and Java applications, which can be obtained
149-
at:
150-
151-
* LICENSE:
152-
* okhttp/third_party/okhttp/LICENSE (Apache License 2.0)
153-
* HOMEPAGE:
154-
* https://github.com/square/okhttp
155-
* LOCATION_IN_GRPC:
156-
* okhttp/third_party/okhttp
157-
158146
This product contains a modified portion of 'Netty', an open source
159147
networking library, which can be obtained at:
160148

Diff for: bookkeeper-dist/src/main/resources/NOTICE-bkctl.bin.txt

-12
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ Copyright 2010 Cedric Beust [email protected]
5252
- lib/io.grpc-grpc-context-1.33.0.jar
5353
- lib/io.grpc-grpc-core-1.33.0.jar
5454
- lib/io.grpc-grpc-netty-1.33.0.jar
55-
- lib/io.grpc-grpc-okhttp-1.33.0.jar
5655
- lib/io.grpc-grpc-protobuf-1.33.0.jar
5756
- lib/io.grpc-grpc-protobuf-lite-1.33.0.jar
5857
- lib/io.grpc-grpc-stub-1.33.0.jar
@@ -72,17 +71,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
7271
See the License for the specific language governing permissions and
7372
limitations under the License.
7473

75-
This product contains a modified portion of 'OkHttp', an open source
76-
HTTP & SPDY client for Android and Java applications, which can be obtained
77-
at:
78-
79-
* LICENSE:
80-
* okhttp/third_party/okhttp/LICENSE (Apache License 2.0)
81-
* HOMEPAGE:
82-
* https://github.com/square/okhttp
83-
* LOCATION_IN_GRPC:
84-
* okhttp/third_party/okhttp
85-
8674
This product contains a modified portion of 'Netty', an open source
8775
networking library, which can be obtained at:
8876

Diff for: bookkeeper-dist/src/main/resources/NOTICE-server.bin.txt

-12
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ Copyright 2010 Cedric Beust [email protected]
107107
- lib/io.grpc-grpc-context-1.33.0.jar
108108
- lib/io.grpc-grpc-core-1.33.0.jar
109109
- lib/io.grpc-grpc-netty-1.33.0.jar
110-
- lib/io.grpc-grpc-okhttp-1.33.0.jar
111110
- lib/io.grpc-grpc-protobuf-1.33.0.jar
112111
- lib/io.grpc-grpc-protobuf-lite-1.33.0.jar
113112
- lib/io.grpc-grpc-stub-1.33.0.jar
@@ -127,17 +126,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127126
See the License for the specific language governing permissions and
128127
limitations under the License.
129128

130-
This product contains a modified portion of 'OkHttp', an open source
131-
HTTP & SPDY client for Android and Java applications, which can be obtained
132-
at:
133-
134-
* LICENSE:
135-
* okhttp/third_party/okhttp/LICENSE (Apache License 2.0)
136-
* HOMEPAGE:
137-
* https://github.com/square/okhttp
138-
* LOCATION_IN_GRPC:
139-
* okhttp/third_party/okhttp
140-
141129
This product contains a modified portion of 'Netty', an open source
142130
networking library, which can be obtained at:
143131

Diff for: metadata-drivers/etcd/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
<groupId>org.bouncycastle</groupId>
5555
<artifactId>bcpkix-jdk15on</artifactId>
5656
</exclusion>
57+
<exclusion>
58+
<groupId>io.grpc</groupId>
59+
<artifactId>grpc-okhttp</artifactId>
60+
</exclusion>
5761
</exclusions>
5862
</dependency>
5963

Diff for: stream/common/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
<groupId>org.bouncycastle</groupId>
4949
<artifactId>bcpkix-jdk15on</artifactId>
5050
</exclusion>
51+
<exclusion>
52+
<groupId>io.grpc</groupId>
53+
<artifactId>grpc-okhttp</artifactId>
54+
</exclusion>
5155
</exclusions>
5256
</dependency>
5357
<dependency>

Diff for: stream/tests-common/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
<groupId>org.bouncycastle</groupId>
4141
<artifactId>bcpkix-jdk15on</artifactId>
4242
</exclusion>
43+
<exclusion>
44+
<groupId>io.grpc</groupId>
45+
<artifactId>grpc-okhttp</artifactId>
46+
</exclusion>
4347
</exclusions>
4448
</dependency>
4549
<dependency>

0 commit comments

Comments
 (0)