Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we ping Bugzilla to see if the webhook is enabled? #181

Closed
grahamalama opened this issue Aug 2, 2022 · 7 comments · Fixed by #395
Closed

Can we ping Bugzilla to see if the webhook is enabled? #181

grahamalama opened this issue Aug 2, 2022 · 7 comments · Fixed by #395
Assignees
Labels
question Further information is requested

Comments

@grahamalama
Copy link
Contributor

grahamalama commented Aug 2, 2022

We've experienced a few system disruptions caused by Bugzilla disabling the webhook that we've set up to push events to our service.

Is there a way for us to send some request to Bugzilla to check on the status of the webhook? If so, this is something we could potentially incorporate into the healthcheck endpoint.

@grahamalama grahamalama added the question Further information is requested label Aug 2, 2022
@grahamalama grahamalama self-assigned this Aug 2, 2022
@bsieber-mozilla
Copy link
Contributor

Based on comment here: https://bugzilla.mozilla.org/show_bug.cgi?id=1767084#c2

There should be an option to have the account in a group that does not get disabled?

@bsieber-mozilla
Copy link
Contributor

If there is any Webhook Management API developed or in the works, that could be helpful--might be worth connecting with BMO to see what they're up to, in terms of webhook features, etc.

@leplatrem
Copy link
Contributor

https://bugzilla.mozilla.org/show_bug.cgi?id=1800750 requests an API endpoint to be added, so that we can introspect the state of webhooks

@bsieber-mozilla
Copy link
Contributor

related: #82

@bsieber-mozilla
Copy link
Contributor

@bsieber-mozilla
Copy link
Contributor

bsieber-mozilla commented Feb 8, 2023

Webhooks
========

These methods are used to access information about and update
your configured webhooks.

NOTE: You will need to pass in a valid API key with the 
`X-Bugzilla-API-Key` header to perform an operations.

List
----

Returns a list of your currently configured webhooks.

**Request**

.. code-block:: text
   GET /rest/webhooks/list
**Response**

.. code-block:: js
  {
    "webhooks": [
      {
        "component": "General",
        "creator": "admin@mozilla.bugs",
        "enabled": true,
        "errors": 0,
        "event": "create,change,attachment,comment",
        "id": 1,
        "name": "Test Webhooks",
        "product": "Firefox",
        "url": "http://server.example.com"
      }
    ]
  }
=========  =======  =================================================
name       type     description
=========  =======  =================================================
id         integer  The integer ID of the webhook.
creator    string   The account which created the webhook.
name       string   The name of the webhook.
url        string   The URL that is called when the webhook executes.
event      string   Comma delimited list of bug events that the 
                    webhook will execute. 
product    string   The product for which the webhook will execute.
component  string   The component for which the webhook will execute.
enabled    boolean  Whether the webhook is current enabled or not.
errors     integer  Current count of any errors encounted when
                    executing the webhook.
=========  =======  =================================================

@bsieber-mozilla
Copy link
Contributor

leplatrem added a commit that referenced this issue Mar 7, 2023
* Fix #181: check webhooks status in heartbeat

* Show warning if a hook has errors

* Remove comment about product==Any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants