Skip to content

RocketChat notifier - support for incoming webhookΒ #4772

@jrrdev

Description

@jrrdev

Proposal

Currently, the RocketChat notifier works directly with the RocketChat REST API and is not compatible with an Incoming Webhook configuration on the RocketChat side.

The issue with this setup is that it requires the use of a personal API key tied to a specific account.
This can limit usage because non-administrator users can only create an API key on their personal account. In a company setting, this becomes a problem if the employee leaves the organization.

As it stands, the payload sent is identical whether using the REST API or an Incoming Webhook.
The problem is that the notifier appends /api/v1/chat.postMessage to the configured URL, which makes it impossible to use in Webhook mode. See :

url := n.conf.APIURL.JoinPath("api/v1/chat.postMessage").String()

It would be desirable to have a configuration option to enable an Incoming Webhook mode.
In this case:

  • Do not alter the configured URL
  • Make the fields token, token_file, token_id, token_id_file optional

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions