-
Notifications
You must be signed in to change notification settings - Fork 4.8k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Dump basic auth password #4237
Comments
Related to #1237 - to be able to re-export the basic auth credentials, they would need to be symmetrically encrypted. |
Also worth noting that basic-auth passwords are currently salted with the ID of that credential's |
Got it, thanks for the clarification. Yes, you are right, it is a bit hard to access DB of kong directly from the CLI client and not sure if it is the appropriate way. I understand that this issue just a feature request, but in general, what do you think of the solution where it is possible specifying password hash, not only password itself? Is it conceptually right or not? |
Wouldn't you want to manage this like any other application-data and back it up on the DB level, not through REST APIs? |
For DB disaster backup is possible, you are right, but for tracking the config history or propagating similar config to other instances (dev/stage/prod) I am afraid it is not enough. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Summary
I am working on a CLI tool for exporting/importing kong configuration. It looks like it is not possible to export/import basic-auth password: when we run GET method on
/consumers/{consumer_id}/basic-auth
on it we only get a password hash, but we are not able to apply it for new kong instance.In this case, it looks like if kong DB has some disaster, it will not be possible to recreate basic-auth entities using API as it is not possible to dump passwords.
I understand that it is not a good practice to have API response with a plain password, so I think that the solution could be the possibility of creating
basic-auth
entities with specifying password hash, not password itself.Steps To Reproduce
Additional Details & Logs
0.14
)The text was updated successfully, but these errors were encountered: