Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulsar manager enable jwt cause backend startup failed #543

Open
ritaaaku opened this issue Dec 15, 2023 · 1 comment
Open

pulsar manager enable jwt cause backend startup failed #543

ritaaaku opened this issue Dec 15, 2023 · 1 comment

Comments

@ritaaaku
Copy link

ritaaaku commented Dec 15, 2023

Hi,
I'm using pulsar helm chart pulsar-3.1.0-candidate-1 with specified pulsar manager tag v0.4.0

When I enable the jwt authentication and also set the JWT_TOKEN、SECRET_KEY
but the pulsar backend didn't start up and keep restart, so I checked the entrypoint.sh in container found somthing
strange. the entrypoint.sh didn't get env on pulsar deployment, so I try to edit the container command with "/bin/bash" then it works fine.

Another question is the PULSAR_MANAGER_OPTS env which is set in the template like this:
image

but it's unavaliable in pulsar manager , still have to set in values again:

pulsar_manager:
  restartPodsOnConfigMapChange: true
  configData:
    SPRING_CONFIGURATION_FILE: "/pulsar-manager/pulsar-manager/application.properties"
    PULSAR_MANAGER_OPTS: "-Dlog4j2.formatMsgNoLookups=true"
    JWT_TOKEN: "xxxxxxxxxxxxxxxxxxxxxxx"
    SECRET_KEY: "file:///pulsar-manager/keys/token/secret.key"
  service:
    type: NodePort

Would somebody tell me why or it is a bug will be figure out in future?
Thanks!

@ritaaaku ritaaaku changed the title pulsar manager enable jwt but always get 401 return pulsar manager enable jwt cause backend startup failed Dec 15, 2023
@lhotari
Copy link
Member

lhotari commented Feb 21, 2024

The next release of Apache Pulsar Helm chart will support JWT auth with Pulsar Manager. thanks to this contribution: apache/pulsar-helm-chart#219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants