We're using webhooks to listen to Jira issue events. Anytime activity on a ticket occurs, the JIRA API notifies an HTTP endpoint running inside a Google Cloud Function. In this Cloud Function, we are simply forwarding the request unaltered into Pub/Sub via:
def forward_to_pubsub(request):
publisher = pubsub_v1.PublisherClient()
topic_path = publisher.topic_path(project_id, topic_id)
# Request body contains user, project, issue basically everything we care about
jira_body = request.json
publisher.publish(topic_path, data=json.dumps(jira_body).encode('utf-8'))
This seems like an unneeded hop. Is there anyway to configure Pub/Sub to be the target of a HTTP webhook? Can't figure out from docs either way.
