Comments (9)
from event-streams-samples.
I'm facing the same issue as well.
from event-streams-samples.
I pivoted my approach since no solution has been provided yet. I used the Kafka REST API's provided by Event Stream in NodeJS. The endpoint is POST --- <broker_hostname>/topics/' + topicName + '/records
It's an authenticated endpoint so follow the instructions to add your credentials to the header. This is what happens under the covers anyway, so it's the most direct approach.
Although, it would greatly help if someone could provide assistance so that I could use the Kafka libraries. :)
from event-streams-samples.
Hi @jried31 and @mataralhawiti
Our certificates are signed by a trusted CA so the built-in certificates in most operating systems should be all you need.
We've listed the default locations of certificates for common operating systems in https://github.com/ibm-messaging/event-streams-samples/blob/master/kafka-nodejs-console-sample/docs/Local.md#running-the-sample
from event-streams-samples.
How would the certificate apply to using IBM Event Streams Cloud Service? Itd used as an example there.
IBM cloud doesnt allow you to download any certificate and how can i pin any of my personal certificates if i cannot upload a certificate when a credential is created?
I guess i dont understand the process that you took to create a credential where one can piggyback a certificate vs basic user/password auth.
from event-streams-samples.
To connect to Event Streams on Cloud, you need both the user/apikey and CA certificate.
If you're getting started, I recommend running our docker image locally or in IBM Kubernetes Service to see how it works
from event-streams-samples.
I used the HTTPS library in Node.js to use kafka's REST api as an interim approach. I would presume that library automatically references the CA location so it does not need to be specified (where you manually specify it).
I understand in Ubuntu there is a directory where all the parent CA certificates are placed. Am I correct that you are simply telling the program where to find those CA's so that the program can execute?
from event-streams-samples.
Your initial question was about the Kafka client, hence why I'm explaining how to provide certificates.
If you're using the REST API you should not have to worry about certificates. You just need to pass your apikey using the Authorization
header, see https://cloud.ibm.com/docs/EventStreams?topic=EventStreams-rest_producer_using#rest_produce_messages
from event-streams-samples.
Did that answer your question? Can we close this issue?
from event-streams-samples.
Related Issues (20)
- Server returned HTTP response code: 403 for URL HOT 2
- any way to avoid the ca_location flag? HOT 4
- ModuleNotFoundError: No module named 'confluent_kafka' HOT 2
- node-rdkafka build/run: dyld: Symbol not found: _timespec_get - MacOS
- Does the event-stream support the schema-registry in IBM public cloud? HOT 2
- starting node sample on windows
- Error: Cannot create 1 partition(s) for topic kafka-nodejs-console-sample-topic HOT 1
- Clarification regarding SASL Authentication with Event Streams HOT 6
- Connectors not listed HOT 2
- Does Event Stream support Spark Kafka Streaming? HOT 2
- Docker build fails for kafka-nodejs-console-sample due to ubuntu:latest base image HOT 2
- improve UX for kubernetes samples by creating secret using --from-file
- k8s lab kafka-java-console-schema-sample fails because image is not on dockerhub HOT 1
- [Question] Out of curiosity, is `ssl.ca.location` now necessary to connect with Event Streams? HOT 8
- kafka-nodejs-console-sample does not build on MacOS Catalina 10.15.6
- Kafka Connect REST API Security HOT 1
- java sample doesn't build with gradle 7 which is latest version as of Apr 09, 2021 HOT 2
- Upgrade the examples to use the ibm supplied APIs
- NodeJS documentation for local confusing when using Cloud Pak for for Integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-streams-samples.