Dump basic auth password #7266
Replies: 5 comments
-
Related to #1237 - to be able to re-export the basic auth credentials, they would need to be symmetrically encrypted. |
Beta Was this translation helpful? Give feedback.
-
Also worth noting that basic-auth passwords are currently salted with the ID of that credential's |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
Wouldn't you want to manage this like any other application-data and back it up on the DB level, not through REST APIs? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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
)Beta Was this translation helpful? Give feedback.
All reactions