Giter VIP home page Giter VIP logo

Comments (9)

linki avatar linki commented on June 21, 2024 1

@sathiyajith I don't know if authentication was ever implemented. I don't see it in the code. It could be part of the webhook URL.

Maybe @GaruGaru knows more about it?

from chaoskube.

sathiyajith avatar sathiyajith commented on June 21, 2024

@linki, Can you please tell me how to give the Authentication Bearer token to push messages to slack?

from chaoskube.

sathiyajith avatar sathiyajith commented on June 21, 2024

@linki Yeah, I too am doubtful. Simple curl command like : curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/XXXX seems to work fine. But, when I give the same webhook url here, I get this context deadline error. So, I thought we should give OAuth token as well in headers.

from chaoskube.

GaruGaru avatar GaruGaru commented on June 21, 2024

@sathiyajith Your error context deadline exceeded (Client.Timeout exceeded while awaiting headers) doesn't look related to an incorrect authentication (which shouldn't be needed for webhooks), more likely you are experiencing a timeout on the http request.

That looks like some connectivity issue either by your side or server side problem to me.
Can you try to call the same url on the same instance where the chaoskube is running ?

from chaoskube.

sathiyajith avatar sathiyajith commented on June 21, 2024

Okay. I tried the curl command in the same instance in which chaoskube is running. It is working.

from chaoskube.

GaruGaru avatar GaruGaru commented on June 21, 2024

Are you running chaoskube inside kubernetes or on a vm ? Are the dns resolution and networking working correctly ? Do you have any NetworkPolicy that may be creating issues ?
I'll make some tests and i'll let you know

from chaoskube.

sathiyajith avatar sathiyajith commented on June 21, 2024

Im running in kubernetes only. Networking is working fine. But I guess, this error is clearly because of something from my side kubernetes. Does cert-manager, MutatingWebhookConfiguration cause a problem? Because I have deployed them for other purpose. Can we please discuss this in any slack channel?

from chaoskube.

GaruGaru avatar GaruGaru commented on June 21, 2024

Can confirm that everything is working correctly on my side. I don't know if there is any slack channel for this project ( @linki ).
To my understanding of this project those services should be interfere but @linki may know better.ì

from chaoskube.

sathiyajith avatar sathiyajith commented on June 21, 2024

Okay, thanks. I will check from my side. I will close this issue too.

from chaoskube.

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.