go function failed to run with authentication enabled
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go, kubernetes
調査の方向性
Start with the Function resource's pulsar.authSecret configuration and the Go function connection setup; trace how test-auth is passed to the function and how the broker authentication settings are consumed. Use the reported connection log as the failure point, and consider the issue done when the Go function connects successfully with AuthenticationToken enabled.
索引モデルが issue の本文から書いたものです。
説明
Hi,
I have a pulsar cluster with auth enabled, using AuthenticationProviderToken.
authenticationEnabled: "true"
authenticationProviders: "org.apache.pulsar.broker.authentication.AuthenticationProviderToken"
However, the go function runs with this error.
go-function-sample-function-0 pulsar-function 2022/05/11 16:04:04.677 asm_amd64.s:1581: [info] [TCP connection established] remote_addr=pulsar://pulsar-broker.pulsar:6650 local_addr=172.20.11.22:51436
go-function-sample-function-0 pulsar-function 2022/05/11 16:04:04.682 connection.go:225: [warning] Failed to establish connection with broker: 'Unable to authenticate' remote_addr=pulsar://pulsar-broker.pulsar:6650 local_addr=172.20.11.22:51436
How does my go function use AuthenticationToken, provided in the test-auth secret, to connect the broker? Any examples?
Here's my config file:
apiVersion: compute.functionmesh.io/v1alpha1
kind: Function
metadata:
name: go-function-sample
namespace: default
spec:
image: lichuan33/pulsar-go-function:t1
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
maxReplicas: 1
logTopic: persistent://public/default/go-function-logs
input:
topics:
- persistent://public/default/go-function-input-topic
output:
topic: persistent://public/default/go-function-output-topic
resources:
requests:
cpu: "0.1"
memory: 1G
limits:
cpu: "0.2"
memory: 1.1G
pulsar:
pulsarConfig: "test-go-pulsar"
authSecret: "test-auth"
golang:
go: /pulsar/examples/go-function
goLocation: ""
clusterName: pulsar
autoAck: true
---
apiVersion: v1
kind: ConfigMap
metadata:
name: test-go-pulsar
data:
webServiceURL: http://pulsar-broker.pulsar:8080
brokerServiceURL: pulsar://pulsar-broker.pulsar:6650
---
apiVersion: v1
kind: Secret
metadata:
name: test-auth
stringData:
clientAuthenticationPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken"
clientAuthenticationParameters: "token:xxx.yyy.zzz"
Thanks.
- 主要言語
- Go
- スター
- 228
- フォーク
- 30
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
streamnative/function-mesh のほかの issue
-
support `BatchingConfig` for Function and Source再び着手できるかも @freeznet が 454 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
streamnative/function-mesh#811 · 担当者 1 名 ·
-
難易度 2/5 半日 初心者へのやさしさ 45/100
streamnative/function-mesh#806 ·
-
upgrade `autoscaler/vertical-pod-autoscaler` to v1.3.0再び着手できるかも @jiangpengcheng が 540 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
streamnative/function-mesh#801 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
streamnative/function-mesh#796 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
streamnative/function-mesh#769 ·
streamnative/function-mesh の issue をすべて見る
似ている issue
-
automation models
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
txn2/mcp-data-platform#1984 ·
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
kind/docs prio/P2
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
agent-substrate/substrate#1986 ·
メンテナーはふだん 1 日以内に返信