You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "beelis (via GitHub)" <gi...@apache.org> on 2024/08/16 11:18:58 UTC
[I] [Bug] Token is not updated if a function is updated [pulsar]
beelis opened a new issue, #23183:
URL: https://github.com/apache/pulsar/issues/23183
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Read release policy
- [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.
### Version
Pulsar 3.2.3 in a kubernetes env (v1.29.6)
### Minimal reproduce step
Create a GO function using a token
`/bin/pulsar-admin \
--admin-url $ADMIN_URL \
--auth-params TOKEN_A\
--auth-plugin org.apache.pulsar.client.impl.auth.AuthenticationToken \
functions create \
--function-config-file $CONFIG_FILE \
--go $BIN_PATH \
--name $FUNCTION_NAME \
--parallelism $PARALLELISM \
--cpu $CPU \
--ram $RAM \
--user-config "$USER_CONFIG_JSON"`
The function is created and the TOKEN_A is placed unter /etc/auth/token
Update the function using TOKEN_B
`/bin/pulsar-admin \
--admin-url $ADMIN_URL \
--auth-params TOKEN_B\
--auth-plugin org.apache.pulsar.client.impl.auth.AuthenticationToken \
functions update \
--function-config-file $CONFIG_FILE \
--go $BIN_PATH \
--name $FUNCTION_NAME \
--parallelism $PARALLELISM \
--cpu $CPU \
--ram $RAM \
--user-config "$USER_CONFIG_JSON"`
### What did you expect to see?
The function is updated and the TOKEN_B is placed unter /etc/auth/token
### What did you see instead?
The function is updated and the TOKEN_A is placed unter /etc/auth/token
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org