You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/01/06 11:07:33 UTC
[GitHub] [pulsar] YanshuoH opened a new issue #13648: Spawned function worker pod does not have auth related params while downloading functions
YanshuoH opened a new issue #13648:
URL: https://github.com/apache/pulsar/issues/13648
Hi team,
**Describe the bug**
Recently try to use Pulsar's function worker, encountered some problems.
I enable the function worker in a k8s pulsar cluster and create a function. The created pod does not have the `auth-params`
with the `pulsar-admin download functions` command.
I've checked both the worker config printed in logs and the source code, normally the auth params should be well injected.
This is the partial of `WorkerConfig`, and the `functionRuntimeFactoryConfigs` contains the same fragment.
```
"authenticationEnabled" : true,
"authenticationProviders" : [ "org.apache.pulsar.broker.authentication.AuthenticationProviderToken" ],
"authorizationEnabled" : true,
"authorizationProvider" : "org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider",
"clientAuthenticationParameters": "token:omitted for safety reason",
```
**To Reproduce**
Steps to reproduce the behavior:
1. Start a pulsar cluster in k8s with authentication & authorization enabled
2. Enable function workers with the following settings in `ConfigMap`:
```
PF_functionAuthProviderClassName: org.apache.pulsar.functions.auth.KubernetesSecretsTokenAuthProvider
PF_clientAuthenticationEnabled: "true"
PF_brokerClientAuthenticationEnabled: "true"
PF_clientAuthenticationPlugin: org.apache.pulsar.client.impl.auth.AuthenticationToken
PF_clientAuthenticationParameters: "token:eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiJ9.yfT7CjbixiXwLFY7lgjwSainc6Sh0W5BIzalj-TS75A"
PF_configurationStoreServers: "zookeeper.pulsar:2181" # auth requires a connection to zookeeper
PF_authenticationProviders: "org.apache.pulsar.broker.authentication.AuthenticationProviderToken"
PF_authorizationEnabled: "true"
PF_authenticationEnabled: "true"
```
(I know the clientAuthentication and brokerClientAuthentication are the same, well I've added both of them desperately.)
3. Create a function
4. Check the pod created and the command does not have expected `auth` params
**Expected behavior**
With `PF_authenticationEnabled: "true"` enabled, the pod designated to execute the function shall have `--auth-plugin` and `--auth-params` options for the `pulsar-admin download functions` command.
**Screenshots**
<img width="1792" alt="Screen Shot 2022-01-06 at 7 04 40 PM" src="https://user-images.githubusercontent.com/6973092/148373371-39a70848-6b91-462c-a415-5707a8d1ca38.png">
**Environment**
- Pulsar 2.8.2 deployed in Kubernetes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #13648: Spawned function worker pod does not have auth related params while downloading functions
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #13648:
URL: https://github.com/apache/pulsar/issues/13648#issuecomment-1051437233
The issue had no activity for 30 days, mark with Stale label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org