apache / pulsar-manager

Apache Pulsar Manager
https://pulsar.apache.org/
Apache License 2.0
518 stars 246 forks source link

pulsar manager enable jwt cause backend startup failed #543

Open ritaaaku opened 10 months ago

ritaaaku commented 10 months ago

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!

lhotari commented 8 months ago

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