-
Notifications
You must be signed in to change notification settings - Fork 9
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
Store login credentials in encrypted form #81
Comments
Yes, this is indeed a problem, I probably warn that in the README (or in https://lerax.me/mal). The problem overall is: there is no Oauth or other more secure way to communicate our credentials with the currently MAL API. It's pretty horrible. Probably you can implement that, but sincerely I'm not very happy to depend to gpg, the GNU PGP client, to mal works. I use gpg a quite often, but I know that some people don't use it and some of them don't even understand how to deal with PGP keys. I don't want obey people get into all the mess because the MAL API fault. However, yes, I care about my own credentials and as well the other users of mal. If would possible implement that as optional behavior... I don't know, probably mal/config.py stuff? This is stored at I have some hope to MyAnimeList release a better API with oauth in some day... but probably I'm just dreaming a lot about it. But, anyway, it's free software. If this really bother you, you can fork freely, implement it as default behavior and use your own version. Thanks for your thoughts @taktoa, this is a important thing. Since you implement a nice optional feature don't being the default behavior, I probably can merge it on master (or at least in some other branch of the repository). |
Instead of living with GPG-only world, why not make an eval option for ini file that can be used while reading our passwords?
That way, we -even so-called Windows users- can define whatever command we want. Besides, as default, other than storing as a plain text file, I'm even okay with ROT13. It just shouldn't be that easy to get. Also,
They need to rebuild the whole website from scratch. There are a lot of things that wrong about it. API is just one of them. But, well, at least there is an API. |
This might also be an option: https://github.com/Netflix-Skunkworks/go-jira/blob/master/README.md#keyring-password-source
|
We can implement that as well: Which will be done with no costs about relying on encrypt software, external dependency or hacky configurations for evaluating encrypt commands. |
@ryukinix I really want to have |
I don't have any plans to implement something as Moreover, reducing always the number of dependencies and config we'll have more control of our software... we have until a bug with argparse (#79), this is quite awful. But, if you really want this, and you want implement this, you are free to implement that by yourself. Since you show your point and we like it, we can merge it. Otherwise, I don't have plans on that, as I said. I think this issue is already sufficient to discuss about that. |
My point was provide a simple algorithm as a default security model and apart from that let them have |
Okay, since this your point and I get it right now, I'm ok with that. Probably, if I implement the tea, I'd add it as a especial tag like Are you ok with that, @kutsan? Probably everyone will be happy with that... 🤔 I guess. |
I recommend read about tea that I attached here, it's nice and simple. A think as default can be great since we can embed directly without relying on conf/dep of environment of the users, with that we don't have problems with windows users as well, since this can implemented as portable really easily. |
Do you have any plan to help implement that @kutsan ? Or anyone on this thread. |
I can try look implement the |
password_eval btw I think it's better since we already have |
Yes, you are right. I agree with that.
I think IMO make
If I see that option and read the docs about it, I can fill it with my own commands to activate that functionality?
I checked out and got the general idea. It looks cool, thanks for sharing!
I wish I could but as I said before I don't have any motivation to learn Python right now. :( |
Ok, this makes sense and it's even better don't mention tea on the config, can facility hacking.
Yes, this indeed is something that the user can look at it and think "hey, there is something strange here... Should I look to the docs". Or they will try so weird thing and break the software and will need read the docs anyway :v -- btw, we need improve this docs... https://mal.readthedocs.io is a lie hahah I just used pandoc to translate the README! So evil... we need change that.
Yes... I remember that. That is okay. I probably will delay this a little since I'm pretty busy on college and with a new job... Actually I should being on the bed right now xD ~ I have a cold. Thanks for all this discussion, I hope this fill your use-case @taktoa |
That's okay too. Take care of yourself. >< |
I noticed that after running
mal login
,~/.config/mal/myanimelist.ini
contains my MyAnimeList login credentials in plaintext. I think there should at least be an option to store it as a GPG encrypted blob (so whenever I runmal
it will ask the GPG agent to decrypt the blob, prompting me for a password to my GPG private key every so often). I may take a look at implementing this myself.The text was updated successfully, but these errors were encountered: