You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cef9045
Browse filesBrowse the repository at this point in the historyBrowse files
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
Copy file name to clipboardExpand all lines: docs/en/changes/changes.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
* 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.
13
13
* 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.
14
14
* 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.
15
16
16
17
#### OAP Server
17
18
* 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.
Copy file name to clipboardExpand all lines: docs/en/setup/backend/backend-k8s-monitoring-cilium.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ cilium-fetcher:
33
33
2. `sslConnection`: should be set to `true`.
34
34
3. `sslPrivateKeyFile`: the path of the private key file.
35
35
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.
37
37
3. Configure the cilium rules please configure the following configuration:
38
38
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.
39
39
2. `cilium-rules/metadata-service-mapping.yaml`: Configure the service name and endpoint mapping.
Copy file name to clipboardExpand all lines: oap-server/server-fetcher-plugin/cilium-fetcher-plugin/src/main/java/org/apache/skywalking/oap/server/fetcher/cilium/nodes/GrpcStubBuilder.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,11 +41,13 @@ public GrpcStubBuilder(CiliumFetcherConfig config) {
// 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),
66
71
ClientOptions.RESPONSE_TIMEOUT_MILLIS.newValue(Long.MAX_VALUE), // For the cilium fetcher, we need to wait for the response(all the data from streaming)
67
72
ClientOptions.MAX_RESPONSE_LENGTH.newValue(0L) // For the cilium streaming fetcher, we should ignore the response length limit
0 commit comments