-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply idea code analysis suggestions M-N
- Loading branch information
Showing
30 changed files
with
45 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,15 @@ | ||
# Table of Contents | ||
1. [Quarkus infinispan grpc kafka](#Quarkus-infinispan-grpc-kafka) | ||
2. [Quarkus SSL/TLS Infinispan scenario ](#Quarkus-SSL/TLS-Infinispan-scenario ) | ||
3. [Quarkus Grateful Shutdown for Kafka connectors](#Quarkus-Grateful-Shutdown-for-Kafka-connectors) | ||
2. [Kafka-client SSL SASL](#Kafka-client-SSL-SASL) | ||
|
||
## Quarkus infinispan grpc kafka | ||
Module that test whether gRPC, Infinispan and Kafka extensions work together: | ||
- for gRPC: there is a simple greetings endpoint. This example will use a `helloworld.proto` file to generate the required sources. | ||
- for Infinispan: to check whether the cache persistence is working fine | ||
- for Kafka: to verify the messages are working in a chain workflow. | ||
|
||
## Kafka-client SASL | ||
## Kafka-client SSL SASL | ||
Verifies SASL authentication through Quarkus Kafka client extension. | ||
Endpoint `SaslKafkaEndpoint` is able to produce events | ||
Endpoint `SaslSslKafkaEndpoint` is able to produce events | ||
and consume events and check topics through `AdminClient` and `KafkaConsumer`. | ||
|
||
## Quarkus Infinispan scenario | ||
|
||
##Infinispan server SSL/TLS | ||
TrustStore is used to store certificates from Certified Authorities (CA) that verify the certificate presented by the server | ||
in an SSL connection. While Keystore is used to store private key and identity certificates that a specific program should present to | ||
both parties (server or client) for verification. | ||
|
||
Security infinispan documentation: | ||
- https://infinispan.org/docs/stable/titles/server/server.html#authentication-mechanisms | ||
- https://infinispan.org/docs/stable/titles/server/server.html#security-realms | ||
|
||
We have used the following commands in order to generate the required certificates. | ||
|
||
Create the Keystore certificate | ||
```shell | ||
keytool -v -genkeypair -keyalg RSA -dname "cn=Quarkus, ou=Quarkus, o=Redhat, L=San Francisco, st=CA, c=US" -ext SAN="DNS:localhost,IP:127.0.0.1" -validity 3825 -alias 1 -keystore keystore.jks -keypass password -storepass password | ||
``` | ||
|
||
Export the Certificate to add it into Truststore | ||
```shell | ||
keytool -export -alias 1 -file localhost.cer -keystore keystore.jks -storepass password | ||
``` | ||
|
||
Create a Trustore certificate | ||
```shell | ||
keytool -import -v -trustcacerts -alias 1 -file localhost.cer -keystore truststore.jks -storepass password | ||
``` |
This file contains 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
This file contains 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
4 changes: 2 additions & 2 deletions
4
...main/java/io/quarkus/ts/messaging/infinispan/grpc/kafka/books/BookContextInitializer.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package io.quarkus.ts.messaging.infinispan.grpc.kafka.books; | ||
|
||
import org.infinispan.protostream.SerializationContextInitializer; | ||
import org.infinispan.protostream.annotations.AutoProtoSchemaBuilder; | ||
import org.infinispan.protostream.annotations.ProtoSchema; | ||
|
||
@AutoProtoSchemaBuilder(includeClasses = { Book.class }, schemaPackageName = "book_sample") | ||
@ProtoSchema(includeClasses = { Book.class }, schemaPackageName = "book_sample") | ||
interface BookContextInitializer extends SerializationContextInitializer { | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
1 change: 0 additions & 1 deletion
1
...e/src/test/java/io/quarkus/ts/micrometer/prometheus/kafka/reactive/KafkaAndMetricsIT.java
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.