Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sourabh Jain
    @_aailaa_twitter
    Hi Adnan
    Adnan Hajdarević
    @adnanh
    hello :-)
    Samuel El-Borai
    @dgellow
    hi 🖖
    Does one of you have an example of hook definition for gitlab push?
    I'm not sure how I'm supposed to use the rule "type": "payload-hash-sha1"
                    {
                        "match":
                        {
                            "type": "payload-hash-sha1",
                            "secret": "<SECRET>",
                            "parameter":
                            {
                                "source": "header",
                                "name": "X-Gitlab-Token"
                            }
                        }
                    }
    Samuel El-Borai
    @dgellow

    I'm trying to use it like this:

    • <SECRET> is the source for my HMAC SHA1 token
    • in GitLab webhook interface I specified the token to be added as X-Gitlab-Token (generated with echo -n "<SECRET>" | openssl sha1 -hmac "key")

    Does that seem correct?

    Adnan Hajdarević
    @adnanh
    payload-hash-sha1 is a special type, it computes SHA1 digest of the payload from the incoming webhoo using the secret as the key and compares the computed hash to the value of the specified parameter
    So X-Gitlab-Token should be generated as the sha1 digest of the payload gitlab will send to the webhook, using the secret as the key
    It ia used as security measure because someone who does not know the secret cannot generate the signature for the payload
    If you configured gitlab to send your secret token in the header you will have to use match string rule instead :)
    Hope this makes it a little bit clearer for you
    Adnan Hajdarević
    @adnanh
    If you still have problems setting it up, maybe I could help if you provide more details on what exactly are you trying to achieve :-)
    Rui Q Huang
    @hrqiang
    Can webhook get file stream request and response a file? If not, 2
    If not, which application can?
    Ian Walker
    @tonesfrommars
    Hey all, hoping for some pointers on what is likely a no-brainer. I'm getting the old fork/exec /path/to/executable.sh: permission denied error. I have ensured that the file is indeed executable and the first line of my script contains #!/bin/sh. It's located in the home directory of the user under which I installed golang and webhooks. I'm setting this up on an AWS EC2 instance of the Linux AMI.
    I'm successfully triggering the webhook, getting this error on attempted execution of the execute-command. I'm also running the webhook command under the previously mentioned user account.
    Adnan Hajdarević
    @adnanh
    Now that's weird
    could you give us the output of the ls -la /path/to/executable.sh command
    maybe by accident you created the file as root, instead of the given user
    which would result in the file being owned by the root user
    also
    try running the script manually as the given user
    see if it will error on you
    Ian Walker
    @tonesfrommars
    Hey @adnanh: Thanks for replying. I discovered that my command-working-directory value was set to another user’s home folder, so that’s why permission was denied. Haha, pretty obvious in hindsight. Your suggestions led me straight to it, however so thank you. And thanks for webhooks!
    Adnan Hajdarević
    @adnanh
    Awesome! :-)
    @hrqiang try a classical web server like nginx?
    Manjesh V
    @manjeshpv
    bhook] 2017/01/14 16:21:07 os signal watcher ready Jan 14 16:21:16 ubuntu webhooks[14938]: [webhook] 2017/01/14 16:21:16 bitbucket got matched Jan 14 16:21:16 ubuntu webhooks[14938]: [webhook] 2017/01/14 16:21:16 error parsing JSON parameters: couldn't retrieve argument for {Source:payload Name:payload EnvName:} Jan 14 16:21:16 ubuntu webhooks[14938]: [webhook] 2017/01/14 16:21:16 bitbucket got matched, but didn't get triggered because the trigger rules were not satisfied Jan 14 16:21:16 ubuntu webhooks[14938]: [webhook] 2017/01/14 16:21:16 2017-01-14T16:21:16Z | 200 | 260.824762ms | prodeers.com:9999 | POST /hooks/bitbucket Jan 14 16:21:57 ubuntu webhooks[14938]: [webhook] 2017/01/14 16:21:57 bitbucket got matched
    error parsing JSON parameters: couldn't retrieve argument for
    not able to match hooks
    Adnan Hajdarević
    @adnanh
    Could you please provide the example payload that is being sent to the hook
    also
    provide the hook definition you are using
    My first hunch is that you are misusing configuration option, most likely a parse-parameters-as-json?
    Adnan Hajdarević
    @adnanh
    This message was deleted
    @/all I have launched a SaaS version of webhook, if you'd like to check out the BETA, let me know. Find out more at www.hookdoo.com
    Saloni Garg
    @saloni-garg
    Hello people. I am a sophomore girl. Can u help me with a node.js webhook please?
    Saloni Garg
    @saloni-garg
    Anyone plz...help me understand how do I start building one. I have prior knowledge of JavaScript
    Sabarish
    @_sabarish__twitter
    Hi
    if I wanted to pass the parameters to a command, for example, "--debug true" how can I do? Right now the parameters are passed to the command as json/dictionary? how can I make it to the form the command takes without a wrapper script?
    ScrumpyJack
    @ScrumpyJack
    o/
    Adnan Hajdarević
    @adnanh
    \o
    ScrumpyJack
    @ScrumpyJack
    @adnanh interesting concept (hookboo). What's the uptake?
    Also, I see focus on build triggers, but how about other uses? You could easily imagine hookdoo as a gateway between web hooks and other services.
    For example, monitoring provider A doesn't support alerting integration with, say Discord, but does provide a webhook alert. Enter hookboo gateway
    ScrumpyJack
    @ScrumpyJack
    IOT device B doesn't provided event notifications to, say twilio , but does provide and webhook notice scheme. Enter hookboo gateway
    MarcyMarcy
    @ironsalsa
    @adnanh Just popping in to let you know your Webhook tool is fantastic, and really speeds up exposing API endpoints for operational folks like me.
    Adnan Hajdarević
    @adnanh
    @ironsalsa glad you like it :)
    ScrumpyJack
    @ScrumpyJack
    How is hookboo coming on?
    ehab aboudaya
    @ehab2012
    hello all, how to pass remoteAddr to pass-arguments-to-command ? my go skills are 0 and i started to add another hook sourceRemoteAddr but didn't finish. Would appreciate if someone already implemented this if not present. Thanks
    ScrumpyJack
    @ScrumpyJack
    @adnanh how are you getting on with https://hookdoo.com/ does it work yet?