Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
camel-kafka-scram
camel-kafka-tls
kube
.gitignore
README.md
pom.xml

README.md

camel-kafka-authz

Requirements

Preparing

Install the AMQ Streams "Cluster Operator" according to the "Getting Started" documentation.

Notes:

  • Assume all steps are run as a user with "clusteradmin" privileges for simplicity.
  • The provided configs assume that the broker will be installed in an OpenShift namespace named "strimzi", and that the Fuse/Spring Boot apps will be deployed in an OpenShift namespace named "fuse".
  • The application in camel-kafka-tls contains a client that uses TLS to authenticate (as user "alice") and produce messages.
  • The application in camel-kafka-scram contains a client that uses SCRAM-SHA-512 to authenticate (as user "bob") and consume messages.

Create a Kafka broker cluster, topic, and users

cd $PROJECT_ROOT
oc apply -f ./kube/strimzi/

Create the "fuse" project and the "secret sync" CronJobs

cd $PROJECT_ROOT
oc new-project fuse
oc apply -f ./kube/fuse/

Build the project source code and deploy to OpenShift

cd $PROJECT_ROOT
mvn clean install
oc project fuse
cd $PROJECT_ROOT/camel-kafka-scram
mvn -P openshift fabric8:deploy
cd $PROJECT_ROOT/camel-kafka-tls
mvn -P openshift fabric8:deploy
You can’t perform that action at this time.