Skip to content

Commit cef9045

Browse files
authored
Bump Armeria to 1.43.1 and align gRPC, Jackson and Micrometer to its versions (#14266)
* Bump Armeria to 1.43.1 and align gRPC, graphql-java, Jackson and Micrometer to its versions * Keep graphql-java at 25.2: graphql-java-tools 14.0.1 needs a class graphql-java 26 removed * Build the Cilium fetcher's gRPC stubs on its own client factory, so they keep its TLS settings on Armeria 1.43.1 * Verify Hubble's certificates against the Cilium fetcher's CA, without the host name check
1 parent 3d54482 commit cef9045

8 files changed

Lines changed: 101 additions & 43 deletions

File tree

‎.licenserc.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ dependency:
109109
version: 2.13.4
110110
license: Apache-2.0
111111
- name: com.fasterxml.jackson.datatype:jackson-datatype-jsr310
112-
version: 2.20.1
112+
version: 2.22.4
113113
license: Apache-2.0
114114
- name: com.fasterxml.jackson.datatype:jackson-datatype-jdk8
115-
version: 2.18.12,2.20.1
115+
version: 2.22.4
116116
license: Apache-2.0
117117
- name: com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
118118
version: 2.15.2
@@ -145,7 +145,7 @@ dependency:
145145
version: 1.3.0
146146
license: Apache-2.0
147147
- name: com.aayushatharva.brotli4j:service
148-
version: 1.20.0
148+
version: 1.24.0
149149
license: Apache-2.0
150150
- name: io.vertx:vertx-grpc
151151
version: 4.5.9

‎dist-material/release-docs/LICENSE‎

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -192,23 +192,23 @@ The text of each license is the standard Apache 2.0 license.
192192
https://mvnrepository.com/artifact/at.yawk.lz4/lz4-java/1.11.4 Apache-2.0
193193
https://mvnrepository.com/artifact/build.buf.protoc-gen-validate/pgv-java-stub/1.3.0 Apache-2.0
194194
https://mvnrepository.com/artifact/build.buf.protoc-gen-validate/protoc-gen-validate/1.3.0 Apache-2.0
195-
https://mvnrepository.com/artifact/com.aayushatharva.brotli4j/brotli4j/1.20.0 Apache-2.0
196-
https://mvnrepository.com/artifact/com.aayushatharva.brotli4j/service/1.20.0 Apache-2.0
195+
https://mvnrepository.com/artifact/com.aayushatharva.brotli4j/brotli4j/1.24.0 Apache-2.0
196+
https://mvnrepository.com/artifact/com.aayushatharva.brotli4j/service/1.24.0 Apache-2.0
197197
https://mvnrepository.com/artifact/com.alibaba.nacos/nacos-auth-plugin/2.3.2 Apache-2.0
198198
https://mvnrepository.com/artifact/com.alibaba.nacos/nacos-client/2.3.2 Apache-2.0
199199
https://mvnrepository.com/artifact/com.alibaba.nacos/nacos-encryption-plugin/2.3.2 Apache-2.0
200200
https://mvnrepository.com/artifact/com.ctrip.framework.apollo/apollo-client/1.8.0 Apache-2.0
201201
https://mvnrepository.com/artifact/com.ctrip.framework.apollo/apollo-core/1.8.0 Apache-2.0
202-
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations/2.18.12 Apache-2.0
203-
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core/2.18.12 Apache-2.0
204-
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.18.12 Apache-2.0
202+
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations/2.22 Apache-2.0
203+
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core/2.22.4 Apache-2.0
204+
https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind/2.22.4 Apache-2.0
205205
https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.15.2 Apache-2.0
206-
https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-guava/2.18.12 Apache-2.0
207-
https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jdk8/2.18.12 Apache-2.0
208-
https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.20.1 Apache-2.0
209-
https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-kotlin/2.18.12 Apache-2.0
206+
https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-guava/2.22.4 Apache-2.0
207+
https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jdk8/2.22.4 Apache-2.0
208+
https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310/2.22.4 Apache-2.0
209+
https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-kotlin/2.22.4 Apache-2.0
210210
https://mvnrepository.com/artifact/com.fasterxml/classmate/1.7.0 Apache-2.0
211-
https://mvnrepository.com/artifact/com.google.api.grpc/proto-google-common-protos/2.63.2 Apache-2.0
211+
https://mvnrepository.com/artifact/com.google.api.grpc/proto-google-common-protos/2.64.1 Apache-2.0
212212
https://mvnrepository.com/artifact/com.google.auto.service/auto-service-annotations/1.0.1 Apache-2.0
213213
https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305/3.0.2 Apache-2.0
214214
https://mvnrepository.com/artifact/com.google.code.gson/gson/2.9.0 Apache-2.0
@@ -219,12 +219,12 @@ The text of each license is the standard Apache 2.0 license.
219219
https://mvnrepository.com/artifact/com.google.guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava Apache-2.0
220220
https://mvnrepository.com/artifact/com.google.inject/guice/4.1.0 Apache-2.0
221221
https://mvnrepository.com/artifact/com.graphql-java/java-dataloader/6.0.0 Apache-2.0
222-
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria/1.34.2 Apache-2.0
223-
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-graphql/1.34.2 Apache-2.0
224-
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-graphql-protocol/1.34.2 Apache-2.0
225-
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-grpc/1.34.2 Apache-2.0
226-
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-grpc-protocol/1.34.2 Apache-2.0
227-
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-protobuf/1.34.2 Apache-2.0
222+
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria/1.43.1 Apache-2.0
223+
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-graphql/1.43.1 Apache-2.0
224+
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-graphql-protocol/1.43.1 Apache-2.0
225+
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-grpc/1.43.1 Apache-2.0
226+
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-grpc-protocol/1.43.1 Apache-2.0
227+
https://mvnrepository.com/artifact/com.linecorp.armeria/armeria-protobuf/1.43.1 Apache-2.0
228228
https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp/4.12.0 Apache-2.0
229229
https://mvnrepository.com/artifact/com.squareup.okio/okio/3.6.0 Apache-2.0
230230
https://mvnrepository.com/artifact/com.squareup.okio/okio-jvm/3.6.0 Apache-2.0
@@ -269,20 +269,20 @@ The text of each license is the standard Apache 2.0 license.
269269
https://mvnrepository.com/artifact/io.fabric8/kubernetes-model-scheduling/6.7.1 Apache-2.0
270270
https://mvnrepository.com/artifact/io.fabric8/kubernetes-model-storageclass/6.7.1 Apache-2.0
271271
https://mvnrepository.com/artifact/io.fabric8/zjsonpatch/0.3.0 Apache-2.0
272-
https://mvnrepository.com/artifact/io.grpc/grpc-api/1.80.0 Apache-2.0
273-
https://mvnrepository.com/artifact/io.grpc/grpc-context/1.80.0 Apache-2.0
274-
https://mvnrepository.com/artifact/io.grpc/grpc-core/1.80.0 Apache-2.0
275-
https://mvnrepository.com/artifact/io.grpc/grpc-grpclb/1.80.0 Apache-2.0
276-
https://mvnrepository.com/artifact/io.grpc/grpc-netty/1.80.0 Apache-2.0
277-
https://mvnrepository.com/artifact/io.grpc/grpc-protobuf/1.80.0 Apache-2.0
278-
https://mvnrepository.com/artifact/io.grpc/grpc-protobuf-lite/1.80.0 Apache-2.0
279-
https://mvnrepository.com/artifact/io.grpc/grpc-services/1.80.0 Apache-2.0
280-
https://mvnrepository.com/artifact/io.grpc/grpc-stub/1.80.0 Apache-2.0
281-
https://mvnrepository.com/artifact/io.grpc/grpc-util/1.80.0 Apache-2.0
282-
https://mvnrepository.com/artifact/io.micrometer/context-propagation/1.2.0 Apache-2.0
283-
https://mvnrepository.com/artifact/io.micrometer/micrometer-commons/1.16.8 Apache-2.0
284-
https://mvnrepository.com/artifact/io.micrometer/micrometer-core/1.16.8 Apache-2.0
285-
https://mvnrepository.com/artifact/io.micrometer/micrometer-observation/1.16.8 Apache-2.0
272+
https://mvnrepository.com/artifact/io.grpc/grpc-api/1.85.1 Apache-2.0
273+
https://mvnrepository.com/artifact/io.grpc/grpc-context/1.85.1 Apache-2.0
274+
https://mvnrepository.com/artifact/io.grpc/grpc-core/1.85.1 Apache-2.0
275+
https://mvnrepository.com/artifact/io.grpc/grpc-grpclb/1.85.1 Apache-2.0
276+
https://mvnrepository.com/artifact/io.grpc/grpc-netty/1.85.1 Apache-2.0
277+
https://mvnrepository.com/artifact/io.grpc/grpc-protobuf/1.85.1 Apache-2.0
278+
https://mvnrepository.com/artifact/io.grpc/grpc-protobuf-lite/1.85.1 Apache-2.0
279+
https://mvnrepository.com/artifact/io.grpc/grpc-services/1.85.1 Apache-2.0
280+
https://mvnrepository.com/artifact/io.grpc/grpc-stub/1.85.1 Apache-2.0
281+
https://mvnrepository.com/artifact/io.grpc/grpc-util/1.85.1 Apache-2.0
282+
https://mvnrepository.com/artifact/io.micrometer/context-propagation/1.2.1 Apache-2.0
283+
https://mvnrepository.com/artifact/io.micrometer/micrometer-commons/1.17.2 Apache-2.0
284+
https://mvnrepository.com/artifact/io.micrometer/micrometer-core/1.17.2 Apache-2.0
285+
https://mvnrepository.com/artifact/io.micrometer/micrometer-observation/1.17.2 Apache-2.0
286286
https://mvnrepository.com/artifact/io.netty/netty-buffer/4.2.19.Final Apache-2.0
287287
https://mvnrepository.com/artifact/io.netty/netty-codec/4.2.19.Final Apache-2.0
288288
https://mvnrepository.com/artifact/io.netty/netty-codec-base/4.2.19.Final Apache-2.0
@@ -379,7 +379,6 @@ CC0-1.0 licenses
379379
The following components are provided under the CC0-1.0 License. See project link for details.
380380
The text of each license is also included in licenses/LICENSE-[project].txt.
381381

382-
https://mvnrepository.com/artifact/org.latencyutils/LatencyUtils/2.0.3 CC0-1.0
383382
https://mvnrepository.com/artifact/org.reactivestreams/reactive-streams/1.0.3 CC0-1.0
384383

385384
========================================================================
@@ -400,7 +399,7 @@ The text of each license is also included in licenses/LICENSE-[project].txt.
400399
https://mvnrepository.com/artifact/com.graphql-java/graphql-java/25.2 MIT
401400
https://mvnrepository.com/artifact/com.graphql-java/graphql-java-extended-scalars/18.1 MIT
402401
https://mvnrepository.com/artifact/org.checkerframework/checker-qual/3.36.0 MIT
403-
https://mvnrepository.com/artifact/org.codehaus.mojo/animal-sniffer-annotations/1.26 MIT
402+
https://mvnrepository.com/artifact/org.codehaus.mojo/animal-sniffer-annotations/1.27 MIT
404403
https://mvnrepository.com/artifact/org.curioswitch.curiostack/protobuf-jackson/2.8.1 MIT
405404
https://mvnrepository.com/artifact/org.slf4j/slf4j-api/1.7.30 MIT
406405

‎docs/en/changes/changes.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Run every e2e case that stores in Elasticsearch on Elasticsearch 8.18.8 and 9.3.0; only the storage case ran on 9.3.0 before. The OTLP native trace case also keeps Elasticsearch 7.15.0. Outside the CI matrix, these cases default to 8.18.8.
1313
* Fix the mini-program e2e log check failing about 1 run in 4: a log whose content held a `'` broke the YAML of the expected log.
1414
* Bump graphql-java `21.5` → `25.2` and graphql-java-tools `13.0.1` → `14.0.1`. graphql-java shades its own copy of guava into its jar, and `21.5` carries guava `32.1.2-jre`, which scanners report as vulnerable even though the OAP manages its standalone guava to a newer version; `25.2` shades guava `33.8.0-jre`. graphql-java-tools `13.0.1` calls a graphql-java parser method that `24.0` removed, so it moves to `14.0.1`, which pulls in Kotlin `2.1.20`; its jackson-module-kotlin is pinned to the managed jackson version. `25.x` is also the graphql-java line armeria-graphql `1.34.2` is built against.
15+
* Bump Armeria `1.34.2` → `1.43.1`, and the managed versions of the libraries it is built against to its versions: gRPC `1.80.0` → `1.85.1`, Jackson `2.18.12` → `2.22.4` (jackson-annotations `2.22`, which has no patch versions since `2.20`) and Micrometer `1.16.8` → `1.17.2`. graphql-java stays at `25.2`, though armeria-graphql `1.43.1` is built against `26.1`: graphql-java `26` removed `graphql.schema.idl.DirectiveInfo`, which graphql-java-tools `14.0.1`, its latest release, still uses to build the schema, so the OAP failed to boot on it. Armeria `1.43.1` builds a gRPC stub on the client factory named in the stub's options instead of the one `newClient` is called on, so the Cilium fetcher's stubs fell back to Armeria's default factory and connected without the fetcher's TLS settings, and the fetcher read nothing from a TLS Hubble endpoint; it now names its factory in the options. Armeria `1.43.1` also applies a `tlsCustomizer` after `tlsNoVerify()`, so the Cilium fetcher's CA replaced the trust-all setting and Hubble's certificates failed the host name check. The fetcher now verifies Hubble's certificates against `SW_CILIUM_FETCHER_CA_FILE_PATH`, without checking host names; before, `tlsNoVerify()` won and the CA file was ignored, so a CA file that does not sign Hubble's server certificates no longer connects. jackson-datatype-jsr310, which Armeria pulls, is pinned to the managed Jackson version; it was `2.20.1` beside Jackson `2.18.12`. Transitively, brotli4j moves `1.20.0` → `1.24.0`, micrometer context-propagation `1.2.0` → `1.2.1`, proto-google-common-protos `2.63.2` → `2.64.1` and animal-sniffer-annotations `1.26` → `1.27`, and LatencyUtils is no longer shipped.
1516

1617
#### OAP Server
1718
* Fix the Cilium fetcher dropping or double-reading Cilium nodes. The Peer notify stream, the cluster watcher and the 10-second refresh timer rebuilt the shared node list without a lock, which could open two flow streams for one node or keep a closed node as in use. A node closed when this OAP's share of nodes moved away was reused, still closed, when the share moved back (e.g. after scaling the OAP cluster out and back in), so that node went unread while the assignment lasted. A `Receiver`-role OAP on a ZooKeeper, Consul, Nacos or etcd coordinator never finds itself in the cluster list and, when Cilium nodes and other OAPs were listed, threw on every refresh; it now skips Cilium fetching quietly, as the `Mixed` and `Aggregator` OAPs share all Cilium nodes among themselves.

‎docs/en/setup/backend/backend-k8s-monitoring-cilium.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cilium-fetcher:
3333
2. `sslConnection`: should be set to `true`.
3434
3. `sslPrivateKeyFile`: the path of the private key file.
3535
4. `sslCertChainFile`: the path of the certificate chain file.
36-
5. `sslCaFile`: the path of the CA file.
36+
5. `sslCaFile`: the path of the CA file. The OAP verifies Hubble's certificates against this CA, without checking their host names (Hubble names its certificates `*.<cluster name>.hubble-grpc.cilium.io`, not the address the OAP connects to), so it must be the CA that signs Hubble's server certificates, e.g. the `ca.crt` of the `hubble-server-certs` secret.
3737
3. Configure the cilium rules please configure the following configuration:
3838
1. `cilium-rules/exclude.yaml`: Configure the which endpoint should be excluded from the monitoring, Please read [exclude rules selection](#exclude-rules) for more detail.
3939
2. `cilium-rules/metadata-service-mapping.yaml`: Configure the service name and endpoint mapping.

‎oap-server-bom/pom.xml‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@
4949
<kubernetes.version>6.7.1</kubernetes.version>
5050
<hikaricp.version>3.1.0</hikaricp.version>
5151
<zipkin.version>2.24.1</zipkin.version>
52-
<jackson.version>2.18.12</jackson.version>
53-
<jackson-databind.version>2.18.12</jackson-databind.version>
52+
<jackson.version>2.22.4</jackson.version>
53+
<jackson-databind.version>2.22.4</jackson-databind.version>
54+
<!-- jackson-annotations has no patch versions since 2.20. -->
55+
<jackson-annotations.version>2.22</jackson-annotations.version>
5456
<simpleclient.version>0.6.0</simpleclient.version>
5557
<apollo.version>1.8.0</apollo.version>
5658
<nacos.version>2.3.2</nacos.version>
@@ -68,7 +70,7 @@
6870
<mariadb-java-client.version>3.5.11</mariadb-java-client.version>
6971
<jetcd.version>0.6.1</jetcd.version>
7072
<testcontainers.version>1.17.6</testcontainers.version>
71-
<armeria.version>1.34.2</armeria.version>
73+
<armeria.version>1.43.1</armeria.version>
7274
<awaitility.version>3.0.0</awaitility.version>
7375
<httpcore.version>4.4.16</httpcore.version>
7476
<httpasyncclient.version>4.1.5</httpasyncclient.version>
@@ -82,7 +84,7 @@
8284
<commons-net.version>3.9.0</commons-net.version>
8385
<maven-core.version>3.9.0</maven-core.version>
8486
<async-profiler-converter.version>3.0</async-profiler-converter.version>
85-
<micrometer.version>1.16.8</micrometer.version>
87+
<micrometer.version>1.17.2</micrometer.version>
8688
</properties>
8789

8890
<dependencyManagement>
@@ -346,7 +348,7 @@
346348
<dependency>
347349
<groupId>com.fasterxml.jackson.core</groupId>
348350
<artifactId>jackson-annotations</artifactId>
349-
<version>${jackson.version}</version>
351+
<version>${jackson-annotations.version}</version>
350352
</dependency>
351353
<dependency>
352354
<groupId>com.fasterxml.jackson.core</groupId>
@@ -366,6 +368,12 @@
366368
<artifactId>jackson-datatype-guava</artifactId>
367369
<version>${jackson.version}</version>
368370
</dependency>
371+
<!-- Armeria pulls jackson-datatype-jsr310; keep it on the managed version. -->
372+
<dependency>
373+
<groupId>com.fasterxml.jackson.datatype</groupId>
374+
<artifactId>jackson-datatype-jsr310</artifactId>
375+
<version>${jackson.version}</version>
376+
</dependency>
369377
<!-- graphql-java-tools pulls jackson-module-kotlin newer than the managed jackson; keep it on the managed version. -->
370378
<dependency>
371379
<groupId>com.fasterxml.jackson.module</groupId>

‎oap-server/server-fetcher-plugin/cilium-fetcher-plugin/src/main/java/org/apache/skywalking/oap/server/fetcher/cilium/nodes/GrpcStubBuilder.java‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ public GrpcStubBuilder(CiliumFetcherConfig config) {
4141
final ClientFactoryBuilder builder = ClientFactory.builder();
4242
if (config.isSslConnection()) {
4343
builder
44-
.tlsNoVerify() // skip the verification of the server's certificate(for the host checker)
4544
.useHttp2WithoutAlpn(true) // use HTTP/2 without ALPN(cilium not support for now)
4645
.tlsCustomizer(ctx -> {
4746
ctx.keyManager(new File(config.getSslCertChainFile()), new File(config.getSslPrivateKeyFile()));
4847
ctx.trustManager(new File(config.getSslCaFile()));
48+
// Hubble's certificates name *.<cluster>.hubble-grpc.cilium.io, not the address the fetcher dials,
49+
// so verify the chain against the CA but not the host name.
50+
ctx.endpointIdentificationAlgorithm(null);
4951
});
5052
}
5153

@@ -63,6 +65,9 @@ public <T> T buildClient(String host, int port, Class<T> stubClass) {
6365

6466
final URI url = new URI("gproto+" + proto, null, host, port, "/", null, null);
6567
return (T) clientFactory.newClient(ClientBuilderParams.of(url, stubClass, ClientOptions.of(
68+
// Armeria builds a gRPC stub on the factory in its options, not the one newClient is called on;
69+
// without this the stub uses the default factory and drops the TLS settings above.
70+
ClientOptions.FACTORY.newValue(clientFactory),
6671
ClientOptions.RESPONSE_TIMEOUT_MILLIS.newValue(Long.MAX_VALUE), // For the cilium fetcher, we need to wait for the response(all the data from streaming)
6772
ClientOptions.MAX_RESPONSE_LENGTH.newValue(0L) // For the cilium streaming fetcher, we should ignore the response length limit
6873
)));

0 commit comments

Comments
 (0)