pulsar-helm-chart icon indicating copy to clipboard operation
pulsar-helm-chart copied to clipboard

Pulsar manager always uses default user/password

Open sloan-dog opened this issue 4 years ago • 3 comments

Expected behavior

Providing non default username and password for Pulsar Admin Manager component should actually change the username and password

Actual behavior

Pulsar admin manager always uses the default username and password (not secure)

Steps to reproduce

helm upgrade --install --set pulsar_manager.admin.password=myspecialpassword --set pulsar_manager.admin.user=myspecialuser --set initialize=true --values examples/values-minikube.yaml --namespace pulsar pulsar-mini apache/pulsar

*I am aware that default chart does not restart pods if the secret changes, but lets say this is fresh install (also the case).

System configuration

Helm chart commit: c059ea25d80d6165b67ee163252a682198d8933f

Using all default values for minkube

sloan-dog avatar Mar 15 '21 02:03 sloan-dog

hi @sloan-dog , this report looks a lot like #31 to me :)

jeantil avatar Mar 16 '21 08:03 jeantil

Please review PR #212, it should fix this issue.

lhotari avatar Jan 26 '22 08:01 lhotari

Hi @lhotari ,

As a workaround, I managed to create a simple k8s-job that performed the steps described in

  • https://pulsar.apache.org/docs/en/administration-pulsar-manager/#set-administrator-account-and-password

Here is the gist of it:

  • https://gist.github.com/mkoertgen/a3c45689e78b88f71d2c373a243c95d7

Please have a look. It should be straight-forward to add it to the helm chart as a post-install helm-hook

Note: Not sure whether the pod also needs to persist state. Might be the configuration gets lots on restarts (not sure where this is persisted).

mkoertgen avatar Feb 19 '22 12:02 mkoertgen

solved by #457

lhotari avatar Feb 14 '24 18:02 lhotari