GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-nodejs

Receive CloudEvent and URL query parameters

オープン
#606 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
P3 question
主要言語
TypeScript
スター
1.4k
フォーク
181
PR マージ指標
30日以内にマージされた PR はありません

説明

CloudEvent signature type function is really useful.

I'm working on build a flow as below.
```
Pub/Sub topic A -> Eventarc A -v
Pub/Sub topic B -> Eventarc B ---> Function
Pub/Sub topic C -> Eventarc C -^
```
I would like to receive CloudEvents from several topics in the same Function instance and adjust the processing somewhat for each topic.

Eventarc allows to specify a service URL path when invoking a destination Function. So, I adjust the behavior of Function to fit the Pub/Sub Topic by using URL query parameters like `/?mailTo=foo@example.com`, `/?mailTo=bar@example.com` and so on.
This service URL path can be easily edited from the Cloud Console for ease of operation.

The current CloudEvent signature Function does not seem to have a way to obtain URL query parameters.
So I use the http signature type Function and unmarshall the Pub/Sub message and control the http response myself.

If we can use URL query parameters in CloudEvent signature type, we can build a more convenient and flexible system.
Is there a way to recieve URL query parameters in CloudEvent signature Function?
Or is there another better way?

Thanks.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue にはファイルもテストも記載されていません。まず functions-framework-nodejs における CloudEvent 署名リクエストの処理を追跡し、URL クエリパラメータが公開されているかどうかを確認してください。アクセスするための文書化およびテスト済みの方法、または maintainer が確認した代替手段が得られれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
google-cloud, nodejs, typescript
領域
api, backend, cloud
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。