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

ISSUE-451: [user.management.enable=false] - default user/password is not admin #254

Open
sijie opened this issue Mar 16, 2022 · 0 comments

Comments

@sijie
Copy link
Member

sijie commented Mar 16, 2022

Original Issue: apache#451


I've already seen the issue apache#347, which says it has been solved by apache#351 but that doesn't work.
The default user/password continues to not be an admin user.

If I have my application.properties as follows:

If user.management.enable is true, the following account and password will no longer be valid.

pulsar-manager.account=pulsar
pulsar-manager.password=pulsar

If true, the database is used for user management

user.management.enable=false

default environment configuration

default.environment.name=pulsar_local
default.environment.service_url=http://172.25.147.191:8080

And then login with pulsar/pulsar, the default environment configuration is not even loaded.
If I try to add a new environment, it says "User does not have permission to operate".

Please solve this issue.
I believe that maybe, it needs to be added "headers.add("role", "admin");" in LoginController when user.management.enable=false.

Thanks

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

1 participant