profile
viewpoint
Adnan Hajdarević adnanh @saburly Sarajevo, Bosnia & Herzegovina https://www.linkedin.com/in/adnan-h Software engineer from Sarajevo, Bosnia & Herzegovina

adnanh/detachkify 6

Remove the ugly dots...

adnanh/mikro 6

simple micro (b)log in ruby

adnanh/hookman 1

manage webhook hooks file

adnanh/hookman-web 1

Web interface for managing webhook hooks.json file

adnanh/imgbin 1

Simple web service for temporary image sharing with an easy to use API

adnanh/mergeify 1

configifiy

adnanh/moody 1

Track your daily mood

adnanh/rump 1

Hot sync two Redis servers using dumps.

adnanh/rye 1

Store links for later

adnanh/scroll 1

cli tool to scroll a given string

startedadnanh/webhook

started time in 4 hours

startedfippo/webrtc-dump-importer

started time in 8 hours

startedadnanh/webhook

started time in 11 hours

startedadnanh/webhook

started time in 14 hours

PR closed adnanh/webhook

Add support to ppc64le

This PR adds CI support for the IBM Power Little Endian (ppc64le) architecture. The idea is to ensure that the builds on this architecture are continuously tested along with the Intel builds (amd64) as this is part of the ubuntu distro on that architecture as well and detecting (and fixing) any issues or failures early would help to ensure that we are always up to date. For more info tag @gerrith3

+6 -0

2 comments

1 changed file

gururajrkatti

pr closed time in 14 hours

pull request commentadnanh/webhook

Add support to ppc64le

Thanks for the response. We are still working on the Github actions support for the ppc64le. will get back to you when we have that support added.

gururajrkatti

comment created time in 14 hours

push eventtoxinu/pyhn

toxinu

commit sha e72701d8f52e3e22140099a21f5ab919a43a1232

Update private information

view details

push time in 16 hours

issue closedadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

I tried to set up a webhook rule to be triggered when the payload signature is verified with any one of multiple secrets, but I found that any unsatisfied payload signature sub-rule that appears before other sub-rules in the or rule will cause the parent rule be evaluated to false.

example config:

"trigger-rule": {
      "or": [
        {
          "match": {
            "type": "payload-hash-sha512",
            "secret": "secret-1",
            "parameter": {
              "source": "header",
              "name": "X-Signature"
            }
          }
        },
        {
          "match": {
            "type": "payload-hash-sha512",
            "secret": "secret-2",
            "parameter": {
              "source": "header",
              "name": "X-Signature"
            }
          }
        }
      ]
    },

requests signed by "secret-2" will never trigger the hook because an error will occurred:

error evaluating hook: invalid payload signatures [...]

closed time in a day

zry98

issue commentadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

Closing as a duplicate of #234.

zry98

comment created time in a day

issue commentadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

Ok. I don't think this is a duplicate of #471 then.

I think this is, instead, a duplicate of #234. It's been a while since I've looked at #234. @zry98, what are you thoughts on that issue, especially my last comment?

That sounds great.

zry98

comment created time in a day

issue commentadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

Ok. I don't think this is a duplicate of #471 then.

I think this is, instead, a duplicate of #234. It's been a while since I've looked at #234. @zry98, what are you thoughts on that issue, especially my last comment?

zry98

comment created time in a day

issue commentadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

What version of webhook are you using? If 2.7.0, I suspect this is a duplicate of #471.

Yes, I'm using 2.7.0, please check my reply, if Evaluate returned error will immediately evaluate the parent rule to false.

zry98

comment created time in a day

issue commentadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

I've located the reason: https://github.com/adnanh/webhook/blob/9c7f8c1ac4993c56658c4afacda5f3d40630d11e/internal/hook/hook.go#L797-L800

zry98

comment created time in a day

issue commentadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

What version of webhook are you using? If 2.7.0, I suspect this is a duplicate of #471.

zry98

comment created time in a day

issue openedadnanh/webhook

unsatisfied payload signature sub-rule in OR rule

I tried to set up a webhook rule to be triggered when the payload signature is verified with any one of multiple secrets, but I found that any unsatisfied payload signature sub-rule that appears before other sub-rules in the or rule will cause the parent rule be evaluated to false.

example config:

"trigger-rule": {
      "or": [
        {
          "match": {
            "type": "payload-hash-sha512",
            "secret": "secret-1",
            "parameter": {
              "source": "header",
              "name": "X-Signature"
            }
          }
        },
        {
          "match": {
            "type": "payload-hash-sha512",
            "secret": "secret-2",
            "parameter": {
              "source": "header",
              "name": "X-Signature"
            }
          }
        }
      ]
    },

requests signed by "secret-2" will never trigger the hook because an error will occurred:

error evaluating hook: invalid payload signatures [...]

created time in a day

created repositoryBenLand100/dune-raw-data

Fork of https://cdcvs.fnal.gov/redmine/projects/dune-raw-data/ for new WIB

created time in a day

startedStefanScherer/packer-windows

started time in a day

fork laoyuerCC/webhook

webhook is a lightweight incoming webhook server to run shell commands

fork in a day

fork hoanglvh/webhook

webhook is a lightweight incoming webhook server to run shell commands

fork in 2 days

startedadnanh/webhook

started time in 2 days

startedadnanh/webhook

started time in 2 days

startedadnanh/webhook

started time in 2 days

startedadnanh/webhook

started time in 3 days

issue closedadnanh/webhook

How to response json output?

Hi, I'm trying to receive docker hub webhook using the tool. It looks like docker hub is expecting some json response to determine request should considered successful or not. How can I send response as json?

Example json response would look like:

{
  "state": "success",
  "description": "387 tests PASSED",
  "context": "Continuous integration by Acme CI",
  "target_url": "https://ci.acme.com/results/afd339c1c3d27"
}

closed time in 3 days

shinebayar-g

issue commentadnanh/webhook

How to response json output?

Nevermind .. Turns out Docker hub webhook doesn't even check webhook response. It's always success.. I didn't have to send any response at all..

shinebayar-g

comment created time in 3 days

issue openedadnanh/webhook

How to response json output?

Hi, I'm trying to receive docker hub webhook using the tool. It looks like docker hub is expecting some json response to determine request should considered successful or not. How can I send response as json?

Example json response would look like:

{
  "state": "success",
  "description": "387 tests PASSED",
  "context": "Continuous integration by Acme CI",
  "target_url": "https://ci.acme.com/results/afd339c1c3d27"
}

created time in 3 days

startedadnanh/webhook

started time in 3 days

pull request commentadnanh/webhook

Add service package

@adnanh, This PR is a preview of something I've been slowly whittling on. It all started by wanting to fix #393. I needed to be able to access the http.Server from the signal handlers.

This PR doesn't fix #393, but it does lay the groundwork to make that rather easy (see the KPR in the security package). However, there's a lot of changes here which may mean that I need to split this up into smaller steps so that it's easier to review, but I wanted to let you see where I'm headed.

It looks like adding the TLS Curves is a problem in Go 1.14 since the CurveID type didn't support the Stringer interface until Go 1.15. Instead of trying to work around that will build tags, I'll probably wait until Go 1.16 ships, and we can drop Go 1.14. 😃

No rush, but comments are welcome.

moorereason

comment created time in 3 days

PR opened adnanh/webhook

Add service package

To help facilitate new features, begin moving the main webhook service properties to a Service struct.

+370 -127

0 comment

6 changed files

pr created time in 3 days

startedadnanh/webhook

started time in 3 days

more