Giter Site home page Giter Site logo

Comments (9)

jried31 avatar jried31 commented on July 29, 2024 1

from event-streams-samples.

mataralhawiti avatar mataralhawiti commented on July 29, 2024

I'm facing the same issue as well.

from event-streams-samples.

jried31 avatar jried31 commented on July 29, 2024

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.

mimaison avatar mimaison commented on July 29, 2024

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.

jried31 avatar jried31 commented on July 29, 2024

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.

mimaison avatar mimaison commented on July 29, 2024

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.

jried31 avatar jried31 commented on July 29, 2024

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.

mimaison avatar mimaison commented on July 29, 2024

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.

mimaison avatar mimaison commented on July 29, 2024

Did that answer your question? Can we close this issue?

from event-streams-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.