-
Notifications
You must be signed in to change notification settings - Fork 392
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
[Improvement] In the Gravitino CLI/Java API you can delete the anoymous user #5932
Comments
Hey @justinmclean could I pick this up? |
@chenyuan99, how are you going with this? |
I am still reading through the code to identify where to change. |
@justinmclean It looks like anoymous users can be removed from the main branch for now |
Yes the idea is to stop that from happening |
@justinmclean IMHO, I think it's possible to check on the client side if the user is anoymous, give a prompt and quit if it is, and take action if it's not. |
Yes, that is one approach we could take. |
should we add some logic in command level ? |
I would add it in the verify method using AreYouSure if possible. |
Fix the CLI delete the anonymous user
What would you like to be improved?
The Gravitino CLI allows you to delete the anonymous user. It does ask if are you sure, but this can have bad side effects.
If you try to create a role after this you get the error:
You can recreate a user called anonymous to fix this error, but I'm not sure if that has other side effects. I'm assuming this may be an issue with the REST interface and Java API and not just the CLI.
How should we improve?
Change the Java API so this is not possible?
The text was updated successfully, but these errors were encountered: