npearce/CaC-Github_Webhook_Server

Is this work with Github.com (not enterprise)

Closed this issue · 3 comments

myf5 commented

Or this only support enterprise?

myf5 commented

I set ghe setting as:

{
    "config": {
        "ghe_base_url": "https://api.github.com",
        "ghe_access_token": "a*******c7a",
        "queue_length": "2",
        "debug": "true"
    },
    "selfLink": "https://localhost:443/mgmt/shared/n8/ghe_settings",
    "kind": "shared:n8:ghe_settings:ghesettingsstate",
    "lastUpdateMicros": 1540133297943007,
    "generation": 2
}

Put the sample json file into: myrepo/deploy/sample.json OR myrepo/sample.json

But nothing was created and there is no any logs when commit in /var/log/restnoded/ restnoded.log.

github webhook logs show getting 200 Ok with
{"message":"[F5 iControl LX worker: GheListener] Thanks for the message, GitHub!"}

restjavad logs shows:
[I][635][21 Oct 2018 18:06:19 UTC][ForwarderPassThroughWorker] {"user":"local/admin","method":"POST","uri":"http://localhost:8100/mgmt/shared/n8/ghe_listener","status":200,"from":"192.30.252.36"}

My test network topology is :
github.com webhook push ----> FW(Doing PAT for internal F5 MGMT)----Internal target F5

BIG-IP 13.1.1 Build 0.0.4 Final
AS 3.5.0

myf5 commented

The issue was fixed. Wrongly set the webhook http header with url form format...

Was just reading this thread! Glad you got there. If there's anything I can do to improve docs, etc. let me know!