apache / pulsar-manager

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

`/pulsar-manager/users/superuser` can create multiple same superusers, login throws InternalServerError #563

Closed maranmaran closed 5 months ago

maranmaran commented 5 months ago

Hello 👋

Bug report,

Right now, you are able to PUT superuser multiple times which henceforth breaks client login as there's internal server error being thrown that there's more than 1 expected result.

Request or consideration:

I'm about 85% done with integrating Pulsar into Aspire, but I would like to provide a client next to it as a plugin.

However, this seeding of superusers is making it feel necessarily hacky. You need to wait for container to spin up and start accepting then make request to some /superuser endpoint

Can some defaults arrive with the config or envvars like rabbit management plugin would

maranmaran commented 5 months ago

https://github.com/apache/pulsar-manager/issues/537

maranmaran commented 5 months ago

Above PR's should solve this issue